Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IPTABLES rules across reboots #431

Open
GozerBCN opened this issue Jan 29, 2024 · 0 comments
Open

IPTABLES rules across reboots #431

GozerBCN opened this issue Jan 29, 2024 · 0 comments

Comments

@GozerBCN
Copy link

GozerBCN commented Jan 29, 2024

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"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant