Employ postrouting to masquerade all eth interfaces

Closes #169
This commit is contained in:
Chris Bräucker 2022-05-15 16:27:07 +02:00
parent 2b7afa5dec
commit f408e2e610
No known key found for this signature in database
GPG Key ID: 22405A1444E4EE89

View File

@ -2,5 +2,5 @@
Address = ${INTERFACE}.1 Address = ${INTERFACE}.1
ListenPort = 51820 ListenPort = 51820
PrivateKey = $(cat /config/server/privatekey-server) PrivateKey = $(cat /config/server/privatekey-server)
PostUp = iptables -A FORWARD -i %i -j ACCEPT; iptables -A FORWARD -o %i -j ACCEPT; iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE PostUp = iptables -A FORWARD -i %i -j ACCEPT; iptables -A FORWARD -o %i -j ACCEPT; iptables -t nat -A POSTROUTING -o eth+ -j MASQUERADE
PostDown = iptables -D FORWARD -i %i -j ACCEPT; iptables -D FORWARD -o %i -j ACCEPT; iptables -t nat -D POSTROUTING -o eth0 -j MASQUERADE PostDown = iptables -D FORWARD -i %i -j ACCEPT; iptables -D FORWARD -o %i -j ACCEPT; iptables -t nat -D POSTROUTING -o eth+ -j MASQUERADE