All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] IP Tables on a bridge
@ 2005-09-21 16:12 ICI Support
  2005-09-21 17:27 ` Corey Hickey
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: ICI Support @ 2005-09-21 16:12 UTC (permalink / raw)
  To: lartc

Not normally a question for this group, but you guys are very
bridge/router/firewall savvy, so I thought I'd toss it here.

I have a bridge.  On one side of the bridge is that fancy thing called the
Internet.  On the other side is my LAN.  The bridge is the obvious
demarcation line and a good place to put a firewall.

Now, I have all my iptables stuff planned out, EXCEPT for nat.

The usual way to do NAT:

iptables -A POSTROUTING -t nat -s $INTERNAL_NET -j MASQUERADE

iptables -A FORWARD -j ACCEPT


Now, the problem I have is that my LAN is mixed NAT'd addresses and routable
IPs.  I have a host of FORWARD rules to determine which packets get sent
onto which servers (routable IPs).  My worry is that if I put in the
"iptables -A FORWARD -j ACCEPT" it'll defeat the whole purpose of those
entries.

My question is:  How do I set up a FORWARD for JUST the NATed packets
without touching the non-NATed packets?   Would a -d to my internal network
($INTERNAL_NET is set to 192.168.10.0/24) do it?

IE would this work:

iptables -A POSTROUTING -t nat -s $INTERNAL_NET -j MASQUERADE

iptables -A FORWARD -d $INTERNAL_NET -j ACCEPT


Also, if I post up my iptables entries/script, can someone help me proof
them for problems?


-----

Michael Yacht
CTO
Ideal Conditions, Inc.
5329 Beeler Street, #2
Pittsburgh, PA 15217
v: 412-325-1375

_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

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

end of thread, other threads:[~2005-09-22  4:10 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-09-21 16:12 [LARTC] IP Tables on a bridge ICI Support
2005-09-21 17:27 ` Corey Hickey
2005-09-21 18:23 ` ICI Support
2005-09-21 19:34 ` Corey Hickey
2005-09-21 19:54 ` ICI Support
2005-09-22  4:10 ` Grant Taylor

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.