Browse Source

Added a SMTP_SECURE_OK rule (port 465)

Signed-off-by: Gregory Colpart <reg@evolix.fr>
systemd
Colin Darie 10 years ago
committed by Gregory Colpart
parent
commit
821af4d12f
  1. 3
      firewall.rc
  2. 7
      minifirewall

3
firewall.rc

@ -66,6 +66,9 @@ SSHOK='0.0.0.0/0'
# SMTP
SMTPOK='0.0.0.0/0'
# SMTP secure (port 465 et 587)
SMTPSOK=''
# NTP
NTPOK='78.153.240.29'

7
minifirewall

@ -271,6 +271,13 @@ for x in $SMTPOK
$IPT -A INPUT -p tcp ! --syn --sport 25 --dport $PORTSUSER -j ACCEPT
done
# SMTP secure
for x in $SMTP_SECURE_OK
do
$IPT -A INPUT -p tcp ! --syn --sport 465 --dport $PORTSUSER -j ACCEPT
$IPT -A INPUT -p tcp ! --syn --sport 587 --dport $PORTSUSER -j ACCEPT
done
# NTP
# autoriser synchronisation ntpdate
for x in $NTPOK

Loading…
Cancel
Save