[KLUG Members] Port forwarding
Adam Williams
members@kalamazoolinux.org
Thu, 27 Jun 2002 16:44:11 -0400 (EDT)
>Well, the ideal way would to use ipchains. Since I don't know that by
Something like -
ipmasqadm portfw -d -P tcp -L 206.114.45.106 22 -R 192.168.1.164 22
Of course your firewall rules have to allow the connection to be accepted.
ipchains -I input -p udp -s 0/0 -d 206.114.45.106/32 22 -j ACCEPT
>heart, you could do it the ghetto way. Create entries for both ports in
>/etc/services , and then create inetd.conf entries for both ports, where
>the 'program run' would be netcat, which would forward the traffic on to
>where it needed to go.
This work well too, and can allow you to tweak thinks outside of what TCP
permits. But I don't think it works with UDP, and it does pose some
scalability problems one can hit even at very low connection counts.