hi there!!
im trying to filter ports on my firewall
but i would like to close more than one port in one line of my script
chek here
iptables -A FORWARD -s 169.10.155.0/24 -p tcp --dport 8000 -d
169.30.13.11/32 -j DROP
now i want to add in that line the port 5000 8888
50001 and other else
how can i do that ?
i all ready try with "," but no working
any advice?
thanks
You need to use the module "multiport" eg:
iptables -t filter -A INPUT -p tcp -m multiport --dports 5000,8000 -j DROP
Note that when you use -m multiport the module multiport is loaded and
then you need to use --dports (not --dport).
You will find this and more running:
iptables -m multiport --help
--
Maxwillian Miorim <[EMAIL PROTECTED]>
----
* Slackware 10.2/current
* OpenBSD 3.9
* Debian SID
Todo software em C deveria iniciar com um:
#ifdef WIN32
printf(" Hey, what about a real OS?\n ");
exit(1);
#endif
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]