This commit is contained in:
iFargle 2023-12-06 13:30:29 +09:00
parent d430ceee4f
commit 0113af5cfd

View file

@ -55,8 +55,7 @@
# Forward mail port 25 to sysctl.io / linode
networking.firewall.extraCommands = ''
iptables -A PREROUTING -t nat -i wireguard0 -p tcp --dport 25 -j DNAT --to 10.100.0.1:25
iptables -A INPUT -p tcp -m state --state NEW --dport 25 -i wireguard0 -j ACCEPT
iptables -t nat -A OUTPUT -p tcp --dport 25 -j DNAT --to-destination 10.100.0.1:25
'';
boot.initrd.services.udev.rules = ''