All of lore.kernel.org
 help / color / mirror / Atom feed
* Forward to DMZ addresses
@ 2005-08-13 18:19 jonathan
  2005-08-15  5:31 ` Grant Taylor
  0 siblings, 1 reply; 17+ messages in thread
From: jonathan @ 2005-08-13 18:19 UTC (permalink / raw)
  To: netfilter

I have a machine that I using as a firewall, separting WAN / LAN / DMZ

Rules thus far are to NAT all outgoing packets that come in from the LAN
interface.

From the machine itself, I can ping machines on my DMZ interface (eth2)
and my LAN interface (eth0)

I'm having trouble getting through the firewall to my DMZ machines, but I
can access the NIC that routes to the DMZ machine via SSH...  I've tried
various forwarding rules, and even changed the default FORWARD policy to
ACCEPT anything.  Here is a basic rule I'm trying:

#eth1 = WAN NIC
#eth2 = DMZ NIC
iptables -A FORWARD -i eth1 -o eth2 -d xx.xx.xx.xx  -p tcp --dport 22 -j
ACCEPT

now, if I do a netstat on the firewall nothing... if I do a netstat on the
machine I'm attempting to connect from... all I see is SYN_SENT

**I'm trying from external machines...i.e. machines not on my network.

physical network is

router -> vlan -> firewall -> DMZ
router -> vlan -> firewall -> LAN

I can also access the DMZ machine via the firewall itself and vice versa,
but once logged into the DMZ machine, I can't get to anything past the
firewall.  I have the following rules for that

iptables -A FORWARD -i eth2 -o eth1 -j ACCEPT

Kinda confused here...

the LAN stuff works... at least for now... to simply forward the packets
out through the WAN NIC and NAT them...

*shrug*





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

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

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-08-13 18:19 Forward to DMZ addresses jonathan
2005-08-15  5:31 ` Grant Taylor
2005-08-16 16:15   ` jonathan
2005-08-17  5:53     ` Grant Taylor
2005-08-17 16:04       ` Jonathan Villa
2005-08-18  6:10         ` Grant Taylor
2005-08-18 18:33           ` Jonathan Villa
2005-08-18 19:49             ` Taylor, Grant
2005-08-18 21:00               ` Jonathan Villa
2005-08-19  6:04                 ` Grant Taylor
2005-08-19 18:57                   ` Jonathan Villa
2005-08-19 22:33                     ` Taylor, Grant
2005-08-20 17:30                       ` Jonathan Villa
2005-08-20 22:19                         ` Grant Taylor
2005-08-22 14:25                           ` Jonathan Villa
2005-08-22 21:47                             ` Taylor, Grant
2005-08-23  6:54                               ` 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.