dperson / openvpn-client

GNU Affero General Public License v3.0
1.05k stars 585 forks source link

IPTABLES rules across reboots #431

Open GozerBCN opened 5 months ago

GozerBCN commented 5 months ago

Hello iptables-persistent seems not installed. Adding rules.v4 or rules to /etc/iptables/ doesn't seem to do the trick either.

I know I can 'feed' the container an external file to /etc/iptables/ but how do I force it applied on reboot or container wipe/restore?

This might not be the place to ask, so please let me know if I should delete this post. Thank you.


Edited: meanwhile I did it with a script and docker exec

docker exec -it --privileged openvpn-client bash -c "/vpn/loadrules.sh"