Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

IPTABLES - Bad Argument

Status
Not open for further replies.

BIS

Technical User
Jun 1, 2001
1,893
NL
Hallo,

I am continuing from an earlier thread. I am having some problems with IPTABLES. Does anybody know why the following gives me "Bad Argument" errors when I try to start IPTABLES (/etc/rc.d/init.d/iptables start) ?

iptables -A INPUT -i $EXTERNAL_INTERFACE -p udp -s $PRIMARY_NAMESERVER --source-port 53 -d $IPADDR --destination-port $UNPRIVPORTS -j ACCEPT

Where UNPRIVPORTS="1024:"

Here I get: Bad Argument `1024:`




iptables -A INPUT -i $EXTERNAL_INTERFACE -p tcp --source-port $UNPRIVPORTS -d $IPADDR --destination-port 110 -j ACCEPT

Here I get "Bad Argument `110`"




iptables -A INPUT -i $EXTERNAL_INTERFACE -p icmp --icmp-type echo-reply -d $IPADDR -j ACCEPT

Here I get "Bad Argument `ACCEPT`"


Many thanks for your help in advance.
 
Uhm...

I just realized that I need to recompile the kernel....

Please ignore my questions, and my apoligies if I wasted somebody's time.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top