> I just installed kernel 2.2.4 and compiled ip_forward (and everything
> related to it), ip_masq, transparent proxy e.t.c, and I'm trying to figure
> out how to enable forwarding/masquerading via the ipchains tool.  
> 
> E.g, what would be the equivalent syntax using ipchains, for a command
> like this one used by ipfwadm?
> 
>       /sbin/ipfwadm -F -a m -S 192.168.0.0/24 -D 0.0.0.0/0
> 

Hello,
Funny, I just did this yesterday. Try this, it's from my network-startup script

# IP-chains
# Deny forwarding by default
ipchains -P forward DENY
# Masquerade everything from LAN
ipchains -A forward -j MASQ -s 10.0.0.0/24 -d 0.0.0.0/0

# Enable forwarding
# You have to do this to enable any forwarding at all
echo "1" >/proc/sys/net/ipv4/ip_forward

/Fredrik

Reply via email to