Add port forwarding for folald(?)

This commit is contained in:
Sam A. 2024-10-21 23:46:46 +02:00
parent a5316a80a7
commit 9b8e626c3b
Signed by: samsapti
GPG key ID: CBBBE7371E81C4EA

View file

@ -60,6 +60,8 @@ iface vmbr2 inet static
post-up echo 1 > /proc/sys/net/ipv4/ip_forward
post-up iptables -t nat -A POSTROUTING -s '192.168.1.0/24' -o vmbr0 -j MASQUERADE
post-up iptables -t nat -A PREROUTING -i vmbr0 -p tcp --dport 19022 -j DNAT --to 192.168.1.144:19022
post-down iptables -t nat -D POSTROUTING -s '192.168.1.0/24' -o vmbr0 -j MASQUERADE
post-down iptables -t nat -D PREROUTING -i vmbr0 -p tcp --dport 19022 -j DNAT --to 192.168.1.144:19022
source /etc/network/interfaces.d/*