Hi

think, you gotta have to re-read the NAT-Howto. 

1st:
echo 1 > /proc/sys/net/ipv4/ip_forward

2nd:
iptables -t nat -A POSTROUTING -s $lan -d $wan -o ppp0 -j MASQUERADE 
if you use dial up
or
iptables -t nat -A POSTROUTING -s $lan -d $wan -o $WAN_ETH -j SNAT
--to-source $IP_WAN_ETH
if you have adsl, a leased line or something. 

HTH
Philipp

-----Urspr�ngliche Nachricht-----
Von: alesko [mailto:[EMAIL PROTECTED]]
Gesendet: Samstag, 13. April 2002 13:09
An: [EMAIL PROTECTED]
Betreff: iptbales problem


Hello guys,

I'm tryin' to do some ip-forwarding but without success.IPTABLES won't
accept my parameters.

I want the linux-box to forward all packets which come from my internal
network.




bash# iptables -A FORWARD -s 10.0.0/24 -d 0/0 -j MASQUERADE

returns:

iptables: invalid argument

Reply via email to