Re: masquerade over multiple gw

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

 



Le dim 23/02/2003 à 12:37, Esteban Ribicic a écrit :
> im trying to masquerade my internal network to internet over two gw.
> it seems imposible to specify more than one -o interface right? 
> now im using this: 
> iptables -t nat -A POSTROUTING -o eth2 -j MASQUERADE
> but i still have ppp0 wich also is conected to the internet..
> any idea?

Juste add a second rule...

	iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE

Then, packets routed through ppp0 will be masqueraded.

-- 
Cédric Blancher  <blancher@cartel-securite.fr>
IT systems and networks security expert  - Cartel Sécurité
Phone : +33 (0)1 44 06 97 87 - Fax: +33 (0)1 44 06 97 99
PGP KeyID:157E98EE  FingerPrint:FA62226DA9E72FA8AECAA240008B480E157E98EE




[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux