User Tools

Site Tools




We want on host connections on port 11111 to be forwareded to host to port 2222.

Simple port forwarding using using portfwd

On host 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 { => } }

Enable incoming connections to if you are using iptables firewall:

iptables -I INPUT -p tcp --dport 11111 -j ACCEPT

and perhaps outgoing connections to

Start 'service portfwd', set it to start up permanently ('ntsysv').

Check forwarded traffic going:

tcpdump -i eth1 host and port 2222
docs/port_forwarding.txt · Last modified: 2010-04-26 14:18 by glen