Port Forward Rinetd

From MS Computech
Jump to: navigation, search

วิธีการ Forward port ด้วย rinetd (ไม่ต้องใช้ iptables)

#apt-get install rinetd
#nano /etc/rinetd.conf
# bindadress bindport connectaddress connectport
192.168.0.101 80      192.168.0.100   80
#/etc/init.d/rinetd restart
# netstat -tap

Active Internet connections (servers and established) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 *:sunrpc *:* LISTEN 1956/portmap tcp 0 0 server2.example.com:www *:* LISTEN 2485/rinetd tcp 0 0 *:3025 *:* LISTEN 2347/rpc.statd tcp 0 0 *:auth *:* LISTEN 2306/inetd tcp 0 0 localhost.localdom:smtp *:* LISTEN 2294/exim4 tcp6 0 0 *:ssh *:* LISTEN 2326/sshd

tcp6 0 0 server2.example.com:ssh ::ffff:192.168.0.3:4776 ESTABLISHED2409/0

rinetd: http://www.boutell.com/rinetd

--Snifer 11:02, 15 August 2012 (ICT)