[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: SNAT avec IPTABLES



On Wed, 25 Aug 2004 12:50:07 +0200
"Mardaga Stephan" <smardaga@brutele.be> wrote:

> 
> >From: "François Boisson"
> 
> 
> >Que donne route -n et iptables -L ?
> 
> Kernel IP routing table
> Destination     Gateway         Genmask         Flags Metric Ref    Use
> Iface
> 192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0
> eth1 192.168.0.0     0.0.0.0         255.255.255.0   U     0      0     
>   0 eth0

dans ta commande

/sbin/iptables -A POSTROUTING -t nat -s 192.168.1.0/24 -o eth0 -j
MASQUERADE

Change le eth0 en eth1, ça devrait marcher.

François Boisson



Reply to: