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

Multiple preup, postup, predown, postdown commands #36

Open
klovatt opened this issue Jul 25, 2023 · 2 comments
Open

Multiple preup, postup, predown, postdown commands #36

klovatt opened this issue Jul 25, 2023 · 2 comments

Comments

@klovatt
Copy link

klovatt commented Jul 25, 2023

Hi,

I'm experimenting to see how I can make this work in my environment.

On first passs it is very good, allowing for site to site (multiple subnet) mesh plus individual enpoints (e.g. phone, laptop).

I tried to add multiple iptables commands, but no luck. The pre/post actions seem to be single command using either csv or command line.

Could they be treated in a similar fashion to the addresses ( a comma separated list)?

Thanks!

@TheAnachronism
Copy link

TheAnachronism commented Jan 6, 2024

Agreed, just ran into this myself of needing multiple preup commands.
@k4yt3x is this possible?

@rudolfbyker
Copy link
Contributor

I also need this.

Workaround for now: Chain commands using &&.

sysctl -w net.ipv4.ip_forward=1 && iptables … && etc && foo && bar

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

3 participants