진짜 요즘 리눅스가 좋아졌다는 생각이 드는게..


예전에 포워딩할때 iptables 로 어떻게 하고 했던것 같은데


우분투에서 iptables 어떻게 만지나해서 한참참고 있었는데 레드햇 계열은 sysconfig 에 다 있던걸로 기억하거든요 




간단히 되네요


testmaster@master:/usr/local/hadoop/conf$ apt-cache show rinetd

Package: rinetd

Priority: optional

Section: universe/net

Installed-Size: 144

Maintainer: Ubuntu MOTU Developers <ubuntu-motu@lists.ubuntu.com>

Original-Maintainer: Sam Hocevar (Debian packages) <sam+deb@zoy.org>

Architecture: i386

Version: 0.62-5.1

Depends: libc6 (>= 2.4)

Filename: pool/universe/r/rinetd/rinetd_0.62-5.1_i386.deb

Size: 23150

MD5sum: de2048281bc1d4753887be9309e16ceb

SHA1: dc6fbd334e94040a99276ed8a831e7860a8b103a

SHA256: 990588e18fef53c177f1afc7212a3fa0d2b7bfb2d65b42fc0651df965cb92341

Description: Internet TCP redirection server

 rinetd redirects TCP connections from one IP address and port to another,

 with basic IP-based access control.

 .

 rinetd is a single-process server which handles any number of connections

 to the address/port pairs specified in the file /etc/rinetd.conf. Since

 rinetd runs as a single process using nonblocking I/O, it is able to

 redirect a large number of connections without a severe impact on the

 machine. This makes it practical to run services on machines inside an IP

 masquerading firewall.

Bugs: https://bugs.launchpad.net/ubuntu/+filebug

Origin: Ubuntu


sudo apt-get install rinetd


sudo vim /etc/rinetd.conf


#

# this is the configuration file for rinetd, the internet redirection server

#

# you may specify global allow and deny rules here

# only ip addresses are matched, hostnames cannot be specified here

# the wildcards you may use are * and ?

#

# allow 192.168.2.*

# deny 192.168.2.1?



#

# forwarding rules come here

#

# you may specify allow and deny rules after a specific forwarding rule

# to apply to only that forwarding rule

#

# bindadress    bindport  connectaddress  connectport

   111.111.111.111 4040 222.222.222.222 80

하고서 시작하면됩니다.





저작자 표시 비영리 변경 금지
신고
크리에이티브 커먼즈 라이선스
Creative Commons License
1···176177178179180181182183184···759

+ Recent posts

티스토리 툴바