Linux Netfilter discussions
 help / color / mirror / Atom feed
* How to invert more than one destination network?
@ 2004-03-01 15:58 Gonzalo Parra
  2004-03-01 16:07 ` Alexis
  2004-03-01 16:18 ` Antony Stone
  0 siblings, 2 replies; 5+ messages in thread
From: Gonzalo Parra @ 2004-03-01 15:58 UTC (permalink / raw)
  To: netfilter


[-- Attachment #1.1: Type: text/plain, Size: 589 bytes --]

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
.....................................  

 

[-- Attachment #1.2: Type: text/html, Size: 2805 bytes --]

[-- Attachment #2: signature.bmp --]
[-- Type: image/bmp, Size: 7878 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2004-03-01 16:25 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-03-01 15:58 How to invert more than one destination network? Gonzalo Parra
2004-03-01 16:07 ` Alexis
2004-03-01 16:17   ` Gonzalo Parra
2004-03-01 16:25     ` Antony Stone
2004-03-01 16:18 ` Antony Stone

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox