由 企鵝狂 » 週四 12月 09, 2004 12:08 pm
如果你的192.168.0.2是透過192.168.0.1然後NAT上網的話.才可以用iptables -j DNAT來導向到內部的主機
在192.168.0.1上面把port 21導向到192.168.0.2:8021
iptables -t nat -A PREROUTING -p tcp --dport 21 -j DNAT --to-destination 192.168.0.2:8021
http://www.linuxquestions.org/questions/history/253275
如果你只是要把192.168.0.1:21 導向192.168.0.1:8021
同一台機器上
iptables -t nat -A PREROUTING -p tcp --dport 21 -j REDIRECT --to-ports 8021
如果是要導向其他機器..請用rinetd
http://lenz.homelinux.org/rinetd/rinetd.html
http://news.bbc.co.uk/1/hi/world/asia-pacific/country_profiles/1285915.stm
Country profile: Taiwan
Map of Taiwan
Taiwan is the island which has for all practical purposes been independent for half a century, but which China regards as a rebel region that must be reunited with the mainland - by force if necessary.