What's new

WireGuard VPN PreUp Option to Run Command Before Client Connects?

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

HarryMuscle

Senior Member
Is there a way to add the PreUp WireGuard VPN option either via the GUI or via SSH when setting up a WireGuard VPN client on the router? I need to run a command just before the client (on the router) starts the WireGuard VPN connection and usually this is done via the PreUp configuration option.

Thanks,
Harry
 
Merlin has wgclient start and stop scripts and wgserver start and stop scripts. Never used them, so not sure how they integrate with firmware. Check out Merlin's wiki on user scripts.
 
From Merlin's answer, sounds like what you want.
 

Similar threads

Latest threads

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top