S41firewall: forward also port 465 (submisson) to mailserver

This commit is contained in:
creme 2019-10-29 09:01:56 +00:00
parent fb03146c7e
commit edc237bff2
1 changed files with 2 additions and 0 deletions

View File

@ -163,6 +163,8 @@ if [ "$1" = "start" ]; then
$IPT -w -t nat -A PREROUTING -d 5.199.136.28 -p tcp --dport 25 -j DNAT --to-destination 192.168.1.3:25
$IPT -w -A FORWARD -p tcp -d 192.168.1.3 --dport 25 -j ACCEPT
# SMTPs
$IPT -w -t nat -A PREROUTING -d 5.199.136.28 -p tcp --dport 465 -j DNAT --to-destination 192.168.1.3:465
$IPT -w -A FORWARD -p tcp -d 192.168.1.3 --dport 465 -j ACCEPT
$IPT -w -t nat -A PREROUTING -d 5.199.136.28 -p tcp --dport 587 -j DNAT --to-destination 192.168.1.3:587
$IPT -w -A FORWARD -p tcp -d 192.168.1.3 --dport 587 -j ACCEPT
# Sieve