Added a SMTP_SECURE_OK rule (port 465)
Signed-off-by: Gregory Colpart <reg@evolix.fr>
This commit is contained in:
parent
fc4f8194ae
commit
821af4d12f
|
@ -66,6 +66,9 @@ SSHOK='0.0.0.0/0'
|
||||||
# SMTP
|
# SMTP
|
||||||
SMTPOK='0.0.0.0/0'
|
SMTPOK='0.0.0.0/0'
|
||||||
|
|
||||||
|
# SMTP secure (port 465 et 587)
|
||||||
|
SMTPSOK=''
|
||||||
|
|
||||||
# NTP
|
# NTP
|
||||||
NTPOK='78.153.240.29'
|
NTPOK='78.153.240.29'
|
||||||
|
|
||||||
|
|
|
@ -271,6 +271,13 @@ for x in $SMTPOK
|
||||||
$IPT -A INPUT -p tcp ! --syn --sport 25 --dport $PORTSUSER -j ACCEPT
|
$IPT -A INPUT -p tcp ! --syn --sport 25 --dport $PORTSUSER -j ACCEPT
|
||||||
done
|
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
|
# NTP
|
||||||
# autoriser synchronisation ntpdate
|
# autoriser synchronisation ntpdate
|
||||||
for x in $NTPOK
|
for x in $NTPOK
|
||||||
|
|
Loading…
Reference in a new issue