Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/adriansev/wg_utils
utilities for Wireguard
https://github.com/adriansev/wg_utils
wireguard
Last synced: 15 days ago
JSON representation
utilities for Wireguard
- Host: GitHub
- URL: https://github.com/adriansev/wg_utils
- Owner: adriansev
- Created: 2018-01-07T09:56:33.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-01-07T10:50:22.000Z (about 7 years ago)
- Last Synced: 2024-12-19T20:39:57.910Z (29 days ago)
- Topics: wireguard
- Language: Shell
- Size: 8.79 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# wg_utils
utilities for Wireguard```
./wg_init
Usage : ./wg_init DEV IP_CIDR:PORT PRIV_KEY_FILE_PATH WG_DIRECTIVESWG directives are :
[fwmark ] [peer [remove] [preshared-key ] [endpoint :] [persistent-keepalive ] [allowed-ips /[,/]...] ]...
``````
./wg_add_peer
Usage : ./wg_add_peer DEV PEER_PUB_KEY ENDPOINT_IP:PORT ALLOWED_IPS WG_DIRECTIVESWG directives are :
[ [remove] [preshared-key ] [persistent-keepalive ] ...]
``````
./wg_service
Usage : ./wg_service CONF_FILE ARGSCONF_FILE should point to a Wireguard configuration file
ARGS are one of : start | no option ; save ; status | show ; down | stop ; restart ; reload
```TODO :
1. wg_service : add iptables processing section; it will be able to process [IPTABLES_\] defined in CONF_FILE (or in $(/usr/bin/dirname ${CONF_FILE})/peers_$(/bin/basename ${CONF_FILE} .conf) )
2. wg_service : add check argument
2. add sysvinit and systemd service files