Update firewall

This commit is contained in:
iFargle 2023-12-06 08:53:36 +09:00
parent d95d928e26
commit 8d831405c4
2 changed files with 5 additions and 1 deletions

View file

@ -52,6 +52,11 @@
"net.ipv4.ip_forward" = true;
};
# Forward mail port 25 to sysctl.io / linode
networking.firewall.extraCommands = ''
iptables -t nat -A OUTPUT -p tcp -d 192.168.1.101 --dport 1234 -j DNAT --to-destination 192.168.1.102:4321
'';
boot.initrd.services.udev.rules = ''
# This is used to load the correct kernel module for the Framework USB-C Ethernet Adapter

View file

@ -23,7 +23,6 @@
networking.firewall.extraCommands = ''
iptables -A FORWARD -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT
iptables -A FORWARD -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT
# TCP PORTS ##################################################################################################
# PORT 80