Difference between revisions of "Port Forward Rinetd"

From MS Computech
Jump to: navigation, search
(New page: Port-Forwarding With rinetd On Debian Etch <pre>#apt-get install rinetd </pre><pre>#nano /etc/rinetd.conf </pre> <pre># bindadress bindport connectaddress connectport 192.168.0.101 80 ...)
 
 
Line 1: Line 1:
Port-Forwarding With rinetd On Debian Etch
+
'''วิธีการ Forward port ด้วย rinetd (ไม่ต้องใช้ iptables)'''<br />
 +
 
<pre>#apt-get install rinetd
 
<pre>#apt-get install rinetd
 
</pre><pre>#nano /etc/rinetd.conf
 
</pre><pre>#nano /etc/rinetd.conf
Line 14: Line 15:
 
tcp6 0 0 server2.example.com:ssh&nbsp;::ffff:192.168.0.3:4776 ESTABLISHED2409/0</pre>
 
tcp6 0 0 server2.example.com:ssh&nbsp;::ffff:192.168.0.3:4776 ESTABLISHED2409/0</pre>
 
rinetd: http://www.boutell.com/rinetd
 
rinetd: http://www.boutell.com/rinetd
 +
<br />
 +
<br />
 +
--[[User:Snifer|Snifer]] 11:02, 15 August 2012 (ICT)

Latest revision as of 11:02, 15 August 2012

วิธีการ 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)