===== Contents ===== /* UndefinedMacro: TableOfContents(None) */ ===== Problem ===== We want on host 11.1.1.111 connections on port 11111 to be forwareded to host 2.2.22.222 to port 2222. ===== Simple port forwarding using using portfwd ===== On host 11.1.1.111 install: poldek:/all-avail> install portfwd-0.29-1.i686 Edit '/etc/portfwd.cfg' and add: /* Comment what kind of forward it is */ tcp { 11111 { => 2.2.22.222:2222 } } Enable incoming connections to 11.1.1.111:11111 if you are using iptables firewall: iptables -I INPUT -p tcp --dport 11111 -j ACCEPT and perhaps outgoing connections to 2.2.22.222:2222. Start 'service portfwd', set it to start up permanently ('ntsysv'). Check forwarded traffic going: tcpdump -i eth1 host 2.2.22.222 and port 2222