linuxserver/docker-wireguard

[FEAT] Ability to add iptables rules on container startup

ldavis2020 opened this issue · 7 comments

Is this a new feature request?

  • I have searched the existing issues

Wanted change

It would be great to be able to add iptables rules that are loaded on container startup, but I can't seem to be able to easily do this with the current container setup (unless someone else knows how to?).

Reason for change

As per above.

Proposed code change

No response

Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid.

You can add them to PostUp/PreDown in the server template

Thank you, I'm already using the PostUp/PreDown templates and they are great, but they only seem to take effect once the wg0 interface has come up.
What I am looking for is "PreUp" iptables rules - to ensure required iptables rules are in place prior to bringing up the wg0 interface.

Then you can use PreUp/Postdown

Didn't know wg supported PreUp rules. Thanks I'll check them out and see how it goes.

This issue has been automatically marked as stale because it has not had recent activity. This might be due to missing feedback from OP. It will be closed if no further activity occurs. Thank you for your contributions.

This issue is locked due to inactivity