- To: Sydney Linux Users Group <slug@xxxxxxxxxxx>
- Subject: Re: [SLUG] Routing a specific port to another machine on the inside
- From: Ken Yap <ken@xxxxxxxxxx>
- Date: Tue Nov 21 16:06:56 2000
- Reply-to: ken@xxxxxxxxxx (Ken Yap)
>Having another look at my set-up, I find that I am using IPCHAINS.
>
>---> snip <---
>
>ipchains -P forward DENY
>ipchains -A forward -j MASQ -s 192.168.0.0/24 -d 0.0.0.0/0
>
>echo "1" > /proc/sys/net/ipv4/ip_forward
>
>---> snip <---
>
>Can I still do the same using ipchains?
You will need ipchains to do it, but in addition you need the
masquerading and portfw modules. Port forwarding is like masquerading in
reverse, it reuses the same internal mechanisms as masq.