linmatz n00b
Joined: 25 Feb 2004 Posts: 15
|
Posted: Tue Jul 20, 2004 11:22 am Post subject: Iptables && dhcp |
|
|
Hi,
the following tiny problem occured when I set up my iptables script.
I use ifconfig to figure out which ip my external interface gets, because it uses dhcp.
Code: | DEV_EXT="eth2"
IP_EXT="`ifconfig eth2| grep inet | cut -d ":" -f 2 | cut -d " " -f 1`"
IP_BCAST="`ifconfig eth2| grep inet | cut -d ":" -f 3 | cut -d " " -f 1`"
|
To the lines...
Code: | einfo "Creating spoofing detection chain"
$IPTABLES -N disallow-spoofing
$IPTABLES -F disallow-spoofing
$IPTABLES -A disallow-spoofing -p ALL -s $ANY -d $IP_BCAST -m limit --l$
$IPTABLES -A disallow-spoofing -p ALL -s $ANY -d $IP_BCAST -j DROP
|
...the system tells me at boot time...
Quote: | Bad argument 'limit'
...
Bad argument 'DROP' |
But when I log in and restart iptables the script runs without moaning.
Btw Code: | depend() {
need net procparam
use logger
} | is set.
I hope someone can explain that |
|