Add port forwarding for folald(?)
This commit is contained in:
parent
a5316a80a7
commit
9b8e626c3b
|
@ -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/*
|
Loading…
Reference in a new issue