Christian Seberino wrote:

> I *could* define $SSH_PORT and $SMPT_PORT but
> doesn't iptables recognize ssh and smtp /already/
> as 22 and 25?

iptables recognise all ports names from /etc/services. You could use
--dport ssh instead --dport 22. Still, you must add before that -p tcp.
Without that, iptables cannot interpret --dport.


Reply via email to