wg-meshconf icon indicating copy to clipboard operation
wg-meshconf copied to clipboard

Multiple preup, postup, predown, postdown commands

Open klovatt opened this issue 1 year ago • 2 comments

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!

klovatt avatar Jul 25 '23 20:07 klovatt

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

TheAnachronism avatar Jan 06 '24 01:01 TheAnachronism

I also need this.

Workaround for now: Chain commands using &&.

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

rudolfbyker avatar Jun 24 '24 12:06 rudolfbyker