How to invert more than one destination network?

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

 



Title: Message
Hi
 
I have MASQUERADE in a box as a gateway using IPTABLES and I am using that box also for VPN... so for it to work I cant masquerade thaffic that goes to the other side of the VPN...
 
This works for me:
 
IPTABLES -t nat -A POSTROUTING -o $EXTIF -d \! 192.168.20.0/26 -j MASQUERADE
 
but now I have another network at the other side of the VPN (192.168.40.0/26), so how can I invert two networks in the -d???
 
Thanks,
 
Gonzalo Parra 
Network Administrator
Tel: +58 (212) 265-5330
Cel: +58 (414) 240-4054
Caracas, VE
.....................................  
 

[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