Linux Netfilter discussions
 help / color / mirror / Atom feed
* iptables + ebtables + snat question
@ 2005-08-12 22:41 Scott Phelps
  2005-08-13 12:36 ` Jan Engelhardt
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Scott Phelps @ 2005-08-12 22:41 UTC (permalink / raw)
  To: netfilter

I have the following setup:

           LAN
            |
            |
           if0       ________
DMZ---if1     if2---|ROUTER|---INTERNET
          \   /      --------
           br0




LAN_NET = 10.0.0.1
PUBLIC_NET = 77.25.33.0/28
(14 hosts - broadcast = .15)

I am doing transparent bridging between
if1 and if2

My ROUTER ethernet iface has IP 77.25.33.1

my DMZ hosts will have public IPs ranging
77.25.33.2-14

My question is can Masquerade (SNAT) my LAN
IPs and use the ROUTER ethernet IP
as a --to-source target?

Or do I have to assign a IP to my br0 interface?
I am in deign mode so I was trying to figure out
if this is possible.

The rule would look like this:
$IPTABLES -t nat -A POSTROUTING \
-o $BR0 -j SNAT --to-source $ROUTER_IP

Can this work?


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

end of thread, other threads:[~2005-08-15  6:23 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-08-12 22:41 iptables + ebtables + snat question Scott Phelps
2005-08-13 12:36 ` Jan Engelhardt
2005-08-13 18:23 ` /dev/rob0
2005-08-14  4:58   ` Scott Phelps
2005-08-15  6:23   ` Jan Engelhardt
2005-08-15  6:14 ` Grant Taylor

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