asden
10-12-2002, 12:29 PM
I'm trying to configure my filter table, but when I issue the command:
iptables -t filter -A INPUT -i ppp0 -s 0/0 -p all --destination-port 0:1023 -j DROP
I get the error message:
iptables v1.2.5: Unknown arg '--destination-port'
But when I issue the command:
iptables -t filter -A INPUT -i ppp0 -s 0/0 -p tcp --destination-port 0:1023 -j DROP
The command is accepted and does its job?
The only difference between the two commands is [-p all] and [-p tcp]... why can't I block all protocols incoming on these ports?
iptables -t filter -A INPUT -i ppp0 -s 0/0 -p all --destination-port 0:1023 -j DROP
I get the error message:
iptables v1.2.5: Unknown arg '--destination-port'
But when I issue the command:
iptables -t filter -A INPUT -i ppp0 -s 0/0 -p tcp --destination-port 0:1023 -j DROP
The command is accepted and does its job?
The only difference between the two commands is [-p all] and [-p tcp]... why can't I block all protocols incoming on these ports?