Skip to content

IPTABLES rules across reboots #431

@GozerBCN

Description

@GozerBCN

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"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions