nodes/home.router: add iptables rule for mail
All checks were successful
bundlewrap/pipeline/head This commit looks good
All checks were successful
bundlewrap/pipeline/head This commit looks good
This commit is contained in:
parent
3fcd81960e
commit
9e1685531c
1 changed files with 3 additions and 0 deletions
|
@ -91,6 +91,9 @@ nodes['home.router'] = {
|
||||||
'iptables -t nat -A PREROUTING -p tcp --dport 2022 -j DNAT --to 172.19.138.20:22',
|
'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',
|
'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)
|
# use MASQUERADE for tun0 (c3voc)
|
||||||
'iptables -t nat -A POSTROUTING -o tun0 -j MASQUERADE',
|
'iptables -t nat -A POSTROUTING -o tun0 -j MASQUERADE',
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue