5

Setting iptables rule for all protcols for specific source and destination ports

view full story
linux-howto

http://serverfault.com – Is it possible to add a IPTABLES rule which allows all the protocols for specific source and destination ports? I tried the following but it didn't work. iptables -I FORWARD 1 -s 172.27.0.254/255.255.255.255 -d 0.0.0.0/0.0.0.0 -p 0 --sport 0:65535 --dport 1191:1191 -j ACCEPT iptables error: unknown option `--sport` Any comments are greatly appreciated. (HowTos)