Networking Forums

Networking Forums > Computer Networking > Linux Networking > iptables and post-NAT filtering

Reply
Thread Tools Display Modes

iptables and post-NAT filtering

 
 
Andrew Gideon
Guest
Posts: n/a

 
      07-28-2008, 11:50 PM
In what table/ruleset can I filter outbound [forwarded] packets after
they've been subjected to any mangling (ie. NAT)? I want to block
anything with an improper source or destination address (ie. 192.168.1.1,
as per RFC1918). But I do SNAT some of these on their way out, and those
I want to permit.

Any rule I've tried sees the source address before SNAT. What rule would
see the source address after SNAT?

I can catch most of these in nat.POSTROUTING; anything I don't SNAT
earlier in the ruleset can be checked. But that means that there's
nothing checking packets after SNAT, and what if I make an error and SNAT
to an improper address?

Any suggestions?

Thanks...

Andrew
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
iptables: filtering on src/dest for large set of ip addr whatdoineed2do@yahoo.co.uk Linux Networking 0 10-16-2005 09:56 AM
Iptables filtering question George Linux Networking 6 05-20-2005 04:04 PM
Filtering Broadcast by iptables it's possible? Pablo Silva O Linux Networking 1 03-04-2004 03:15 AM
iptables mac based filtering RJ41 Linux Networking 3 09-04-2003 07:18 PM
Port Forwarding with iptables (sorry for first half post, sent by mistake) Allan Bruce Linux Networking 2 08-27-2003 01:02 PM



1 2 3 4 5 6 7 8 9 10 11