All of lore.kernel.org
 help / color / mirror / Atom feed
* Proof Read
@ 2004-04-16 15:57 Nathan Littlepage
  2004-04-16 17:01 ` David Cannings
  0 siblings, 1 reply; 3+ messages in thread
From: Nathan Littlepage @ 2004-04-16 15:57 UTC (permalink / raw)
  To: netfilter

Can anyone proof over the following rc.firewall script and throw some
light as to why I get an 'Invalid Argument' on the two -m physdev upon
bootup. Yet, once the system is active the modules are loaded and I can
execute the script and, aside from the error that the modules are
already loaded, it will not error out on the -m physdev statements.

I've tried this on 2.4.22 and 2.6.4 systems with the same error, so I'm
thinking its the rules.

Thanks.

---rc.firewall script---

# Load kernel modules
modprobe ipt_physdev
modprobe ipt_state

# Defined Variables.
LOCALINT="lo"
ADMININT="eth3"
OUTINT="eth0"
SEG1INT="eth1"
SEG2INT="eth2"

# Flush all Chains.
iptables -F INPUT
iptables -F FORWARD
iptables -F OUTPUT

# Set default Policy for each Chain.
iptables -P INPUT DROP
iptables -P FORWARD DROP
iptables -P OUTPUT ACCEPT

# Setup: INPUT Chain for LOCALINT and ADMININT interfaces.
iptables -A INPUT -i $LOCALINT -m state --state NEW -j ACCEPT
iptables -A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
iptables -A INPUT -i $ADMININT -p tcp -s $ADMINSUB --dport 22 -j ACCEPT

# Setup: Allow RELATED and ESTABLISHED connections back in.
iptables -A FORWARD -m state --state RELATED,ESTABLISHED -j ACCEPT

# Setup: Allow all traffic from segments out.
iptables -A FORWARD -m physdev --physdev-in $SEG1INT --physdev-out
$OUTINT -j AC
CEPT
iptables -A FORWARD -m physdev --physdev-in $SEG2INT --physdev-out
$OUTINT -j AC
CEPT



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

end of thread, other threads:[~2004-04-16 17:12 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-04-16 15:57 Proof Read Nathan Littlepage
2004-04-16 17:01 ` David Cannings
2004-04-16 17:12   ` Nathan Littlepage

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.