Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Iptables && dhcp
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
linmatz
n00b
n00b


Joined: 25 Feb 2004
Posts: 15

PostPosted: Tue Jul 20, 2004 11:22 am    Post subject: Iptables && dhcp Reply with quote

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 :-)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum