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.
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.