i tried what you suggested, but i still get the following:

muffin root # iptables -F
muffin root # iptables -t nat -F
muffin root # iptables -t nat -A POSTROUTING -s 192.168.0.0/24 -d 0.0.0.0/0
-o eth1 -j MASQUERADE
iptables: Invalid argument
muffin root # iptables -vv -t nat -A POSTROUTING -s 192.168.0.0/24 -d
0.0.0.0/0 -o eth1 -j MASQUERADE
MASQUERADE  all opt -- in * out eth1  192.168.0.0/24  -> 0.0.0.0/0
libiptc v1.2.7a.  5 entries, 788 bytes.
Table `nat'
Hooks: pre/in/fwd/out/post = 0/0/0/464/148
Underflows: pre/in/fwd/out/post = 0/0/0/464/316
Entry 0 (0):
SRC IP: 0.0.0.0/0.0.0.0
DST IP: 0.0.0.0/0.0.0.0
Interface: `'/................to `'/................
Protocol: 0
Flags: 00
Invflags: 00
Counters: 906 packets, 147095 bytes
Cache: 00000000
Target name: `' [36]
verdict=NF_ACCEPT

Entry 1 (148):
SRC IP: 192.168.0.0/255.255.255.0
DST IP: 0.0.0.0/0.0.0.0
Interface: `'/................to `eth1'/XXXXX...........
Protocol: 0
Flags: 00
Invflags: 00
Counters: 0 packets, 0 bytes
Cache: 0000400B UNKNOWN IP_SRC IP_DST IP_IF_OUT
Target name: `MASQUERADE' [56]

Entry 2 (316):
SRC IP: 0.0.0.0/0.0.0.0
DST IP: 0.0.0.0/0.0.0.0
Interface: `'/................to `'/................
Protocol: 0
Flags: 00
Invflags: 00
Counters: 676 packets, 71789 bytes
Cache: 00000000
Target name: `' [36]
verdict=NF_ACCEPT

Entry 3 (464):
SRC IP: 0.0.0.0/0.0.0.0
DST IP: 0.0.0.0/0.0.0.0
Interface: `'/................to `'/................
Protocol: 0
Flags: 00
Invflags: 00
Counters: 694 packets, 73133 bytes
Cache: 00000000
Target name: `' [36]
verdict=NF_ACCEPT

Entry 4 (612):
SRC IP: 0.0.0.0/0.0.0.0
DST IP: 0.0.0.0/0.0.0.0
Interface: `'/................to `'/................
Protocol: 0
Flags: 00
Invflags: 00
Counters: 0 packets, 0 bytes
Cache: 00000000
Target name: `ERROR' [64]
error=`ERROR'

iptables: Invalid argument
muffin root #

also, i should have originally said that my computer has two ethernet
inferfaces: eth0 and eth1.  eth1 is the interface that goes out to the
internet, and eth0 is the interface for my local network.  

-scott

thus spake Ing. Bernardo Lopez ([EMAIL PROTECTED]) on Wed, Feb 05, 2003 at 
10:32:43AM +0000, Ing. Bernardo Lopez:

> if you only want nat:
> 
> echo 1 > /proc/sys/net/ipv4/ip_forward
> iptables -F
> iptables -t nat -F
> iptables -t nat -A POSTROUTING -s 192.168.0.0/24 -d 0.0.0.0/0  -o ppp0
> -j MASQUERADE
> 
> Whit that you get nat...
> 
> PS: 192.168.0.0/24 is the local network under eth0... change it if you
> have other settings

--
[EMAIL PROTECTED] mailing list

Reply via email to