this post was submitted on 27 Dec 2023
1 points (100.0% liked)

WireGuard

3 readers
1 users here now

WireGuard - a fast, modern, secure VPN Tunnel.

founded 1 year ago
MODERATORS
 
This is an automated archive.

The original was posted on /r/wireguard by /u/mailliwal on 2023-12-27 04:06:31+00:00.


Hi,

Below is content of my "wg0.conf".

[Interface]

ListenPort = 12345

PrivateKey = PRIVATE_KEY

PostUp = /etc/wireguard/postup.sh

PostDown = /etc/wireguard/postdown.sh

[Peer]

PublicKey = PUBLICKEY

AllowedIPs = 10.123.0.2/32

When I execute

wg setconf wg0 /etc/wireguard/wg0.conf

An error showed

Line unrecognized: 'PostUp=/etc/wireguard/postup.sh'

Configuration parsing error

If I remove "Post = xxx", then it's no error.

May I know it's correct way to execute postup & postdown ?

Thanks

no comments (yet)
sorted by: hot top controversial new old
there doesn't seem to be anything here