Peggy Kam ppkam at
Thu Aug 4 21:36:30 CEST 2005


Is it possible to match multiple source and destination ports at the
same time?  It seems to me that it is not possible.  I am using iptables
version 1.2.11 and I have tried the following command:

iptables -A INPUT -p tcp --src -m tcp -m
multiport --sports 22,80  --dst -m multiport --dports
22,80 -j ACCEPT

Please correct me if I have the wrong syntax.  Any advice is

Thanks in advance,

More information about the netfilter mailing list