On Thu, 4 Apr 2002, Maciej Soltysiak wrote:
> > does anybody know a command to specify more than one port @ a time. ie.
> > allow ports 20,21,22
> > without having to write an individual line for each.
> iptables -A INPUT -p tcp -m multiport --dport 20,21,22 -j ACCEPT
Or just
iptables -A INPUT -p tcp --dport 20:22 -j ACCEPT
will work, if you do not have the multiport module.
Rasmus
--
-- [ Rasmus "M�ffe" B�g Hansen ] ---------------------------------------
Of all the things I've lost I miss my mind the most.
- Ozzy Osbourne
----------------------------------[ moffe at amagerkollegiet dot dk ] --