test
This commit is contained in:
parent
82fc2c0448
commit
329e728f36
1 changed files with 4 additions and 1 deletions
|
@ -22,7 +22,10 @@
|
|||
];
|
||||
|
||||
networking.firewall.extraCommands = ''
|
||||
iptables -A FORWARD -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT
|
||||
iptables -F
|
||||
iptables -t nat -F
|
||||
iptables -X
|
||||
# iptables -A FORWARD -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT
|
||||
|
||||
iptables -t nat -A PREROUTING -p tcp --dport 25 -j DNAT --to-destination 10.100.0.2:25
|
||||
iptables -t nat -A POSTROUTING -p tcp -d 10.100.0.2 --dport 25 -j SNAT --to-source 172.234.84.222
|
||||
|
|
Loading…
Add table
Reference in a new issue