bundles/postfix: add iptables config

This commit is contained in:
Franzi 2021-03-21 11:11:49 +01:00
parent c9f008ad82
commit 5775001301
Signed by: kunsi
GPG key ID: 12E3D2136B818350
3 changed files with 27 additions and 11 deletions

View file

@ -91,9 +91,6 @@ nodes['home.router'] = {
'iptables -t nat -A PREROUTING -p tcp --dport 2022 -j DNAT --to 172.19.138.20:22',
'iptables -A FORWARD -p tcp -d 172.19.138.20 --dport 22 -j ACCEPT',
# Allow mail from internal network
'iptables_both -A INPUT -s 172.19.138.0/24 -p tcp --dport 25 -j ACCEPT',
# use MASQUERADE for tun0 (c3voc)
'iptables -t nat -A POSTROUTING -o tun0 -j MASQUERADE',