summaryrefslogtreecommitdiff
path: root/sentinel-minipot/files/sentinel-firewall.sh
diff options
context:
space:
mode:
Diffstat (limited to 'sentinel-minipot/files/sentinel-firewall.sh')
-rw-r--r--sentinel-minipot/files/sentinel-firewall.sh8
1 files changed, 6 insertions, 2 deletions
diff --git a/sentinel-minipot/files/sentinel-firewall.sh b/sentinel-minipot/files/sentinel-firewall.sh
index 40c584b..e4a69b1 100644
--- a/sentinel-minipot/files/sentinel-firewall.sh
+++ b/sentinel-minipot/files/sentinel-firewall.sh
@@ -27,8 +27,10 @@ port_redirect_zone() {
iptables_redirect "$zone" 21 "$ftp_port" "Minipot FTP"
[ "$http_port" = "0" ] || \
iptables_redirect "$zone" 80 "$http_port" "Minipot HTTP"
- [ "$smtp_port" = "0" ] || \
+ [ "$smtp_port" = "0" ] || {
+ iptables_redirect "$zone" 25 "$smtp_port" "Minipot SMTP"
iptables_redirect "$zone" 587 "$smtp_port" "Minipot SMTP submission"
+ }
[ "$telnet_port" = "0" ] || \
iptables_redirect "$zone" 23 "$telnet_port" "Minipot Telnet"
}
@@ -42,8 +44,10 @@ if source_if_exists "$SF_DIR/dynfw-utils.sh"; then
bypass_dynamic_firewall "tcp" "21" "Minipot FTP"
[ "$http_port" = "0" ] || \
bypass_dynamic_firewall "tcp" "23" "Minipot HTTP"
- [ "$smtp_port" = "0" ] || \
+ [ "$smtp_port" = "0" ] || {
+ bypass_dynamic_firewall "tcp" "25" "Minipot SMTP"
bypass_dynamic_firewall "tcp" "587" "Minipot SMTP submission"
+ }
[ "$telnet_port" = "0" ] || \
bypass_dynamic_firewall "tcp" "23" "Minipot Telnet"
fi