Re: how to filter more than 1 port in one line
On 2006-05-19 Luis wrote:
> 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 ?
RTFM
man iptables
iptables -m multiport --help
Regards
Ansgar Wiechers
--
"All vulnerabilities deserve a public fear period prior to patches
becoming available."
--Jason Coombs on Bugtraq
Reply to: