All of lore.kernel.org
 help / color / mirror / Atom feed
* debugging rc.firewall
@ 2002-06-18 17:06 Mark Tessier
  2002-06-18 17:30 ` Nathan Cassano
  2002-06-18 18:02 ` Antony Stone
  0 siblings, 2 replies; 7+ messages in thread
From: Mark Tessier @ 2002-06-18 17:06 UTC (permalink / raw)
  To: Netfilter Mailing List

In trying to debug rc.firewall on a gateway/firewall between a LAN subnet and DMZ subnet, I've put in the following

iptables -A INPUT -i eth1 -j LOG

immediately after iptables --policy INPUT DROP

This goes the same for the forward policy. I've checked /var/log/messages and nothing is written to it. In this rc.firewall script, the "reset chains and set policies" section is near the beginning, after the "set up enviro variables" section and the "enable kernel monitoring support" section. This is what the 

# Reset chains and set policies

# Remove any existing rules from all chains
iptables -t filter --flush
iptables -t nat --flush
iptables -t mangle --flush

# Set traffic on the loopback interface to unlimited
iptables -A INPUT -i $LOOPBACK_INTERFACE -j ACCEPT
iptables -A OUTPUT -o $LOOPBACK_INTERFACE -j ACCEPT

# Set the default policy to drop
iptables --policy INPUT DROP
iptabes -A INPUT -i $LAN_IPADDR -j LOG 
iptables --policy OUTPUT DROP
iptables --policy FORWARD DROP
iptables -A FORWARD -i $LAN_IPADDR -j LOG

iptables -t nat --policy PREROUTING DROP
iptables -t nat --policy OUTPUT DROP
iptables -t nat --policy POSTROUTING DROP

iptables -t mangle --policy PREROUTING DROP
iptables -t mangle --policy OUTPUT DROP

# Remove any pre-existing user-defined chains
iptables --delete-chain
iptables -t nat --delete-chain
iptables -t mangle --delete-chain

As mentioned my log messages are not registering in /var/log/messages and I'm not sure why. 

-- 
Thanks,

Mark


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

end of thread, other threads:[~2002-06-18 18:56 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-06-18 17:06 debugging rc.firewall Mark Tessier
2002-06-18 17:30 ` Nathan Cassano
2002-06-18 18:02 ` Antony Stone
2002-06-18 18:31   ` --set-mark limit Luiz Fernando T. Campos
2002-06-18 18:45     ` Antony Stone
2002-06-18 18:56       ` Luiz Fernando T. Campos
2002-06-18 18:52     ` Patrick Schaaf

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.