Add rules for local mail relay service.
This commit is contained in:
parent
99c8301305
commit
528b43ff11
@ -409,6 +409,11 @@ http_ports="$standard_http_ports"
|
|||||||
# - Mail Services
|
# - Mail Services
|
||||||
# ======
|
# ======
|
||||||
|
|
||||||
|
# - SMTP server (i.e. mail relay service) Gateway
|
||||||
|
# -
|
||||||
|
local_smtp_service=false
|
||||||
|
|
||||||
|
|
||||||
# - Mailserver (SMTP(POP/IMAP) Gateway
|
# - Mailserver (SMTP(POP/IMAP) Gateway
|
||||||
# -
|
# -
|
||||||
# - NOT YET IMPLEMENTED
|
# - NOT YET IMPLEMENTED
|
||||||
|
@ -392,6 +392,11 @@ http_ports="$standard_http_ports"
|
|||||||
# - Mail Services
|
# - Mail Services
|
||||||
# ======
|
# ======
|
||||||
|
|
||||||
|
# - SMTP server (i.e. mail relay service) Gateway
|
||||||
|
# -
|
||||||
|
local_smtp_service=false
|
||||||
|
|
||||||
|
|
||||||
# - Mailserver (SMTP(POP/IMAP) Gateway
|
# - Mailserver (SMTP(POP/IMAP) Gateway
|
||||||
# -
|
# -
|
||||||
# - NOT YET IMPLEMENTED
|
# - NOT YET IMPLEMENTED
|
||||||
|
@ -1651,6 +1651,22 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
# ---
|
||||||
|
# - SMTP (Relay) Service Gateway
|
||||||
|
# ---
|
||||||
|
|
||||||
|
echononl "\t\tSMTP (Relay) Service Gateway (only on local network)"
|
||||||
|
if $local_smtp_service ; then
|
||||||
|
for _dev in ${local_if_arr[@]} ; do
|
||||||
|
$ip6t -A INPUT -p tcp -i $_dev --dport $standard_smtp_port -m conntrack --ctstate NEW -j ACCEPT
|
||||||
|
done
|
||||||
|
|
||||||
|
echo_done
|
||||||
|
else
|
||||||
|
echo_skipped
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
# ---
|
# ---
|
||||||
# - Mail User Services smtps/pop(s)/imap(s) only out
|
# - Mail User Services smtps/pop(s)/imap(s) only out
|
||||||
# ---
|
# ---
|
||||||
|
@ -2074,6 +2074,23 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
# ---
|
||||||
|
# - SMTP (Relay) Service Gateway
|
||||||
|
# ---
|
||||||
|
|
||||||
|
echononl "\t\tSMTP (Relay) Service Gateway (only on local network)"
|
||||||
|
if $local_smtp_service ; then
|
||||||
|
for _dev in ${local_if_arr[@]} ; do
|
||||||
|
$ipt -A INPUT -p tcp -i $_dev --dport $standard_smtp_port -m conntrack --ctstate NEW -j ACCEPT
|
||||||
|
done
|
||||||
|
|
||||||
|
echo_done
|
||||||
|
else
|
||||||
|
echo_skipped
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# ---
|
# ---
|
||||||
# - Mail User Services smtps/pop(s)/imap(s) only out
|
# - Mail User Services smtps/pop(s)/imap(s) only out
|
||||||
# ---
|
# ---
|
||||||
|
Loading…
Reference in New Issue
Block a user