Difference between revisions of "Wg-quick"
Jump to navigation
Jump to search
(14 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | <code>wg-quick</code> set up a WireGuard interface simply | + | {{lc}}<code>wg-quick</code> [[bash script]] to set up a WireGuard interface simply |
* Man page: https://manpages.debian.org/unstable/wireguard-tools/wg-quick.8.en.html | * Man page: https://manpages.debian.org/unstable/wireguard-tools/wg-quick.8.en.html | ||
+ | |||
+ | |||
+ | == Examples == | ||
* <code>wg-quick [ up | down | save | strip ] [ CONFIG_FILE | INTERFACE ]</code> | * <code>wg-quick [ up | down | save | strip ] [ CONFIG_FILE | INTERFACE ]</code> | ||
+ | ::<code>wg-quick</code> configures WireGuard tunnels using configuration files from <code>[[/etc/wireguard/]]interfacename.conf</code> | ||
+ | |||
+ | * <code>[[wg-quick up]] INTERFACE_NAME</code> | ||
+ | |||
+ | |||
+ | * <code>[[wg-quick strip]] INTERFACE_NAME</code> | ||
+ | :To reload configuration files without disrupting active [[sessions]]. | ||
− | <code>wg-quick | + | == Logs == |
+ | * <code> Dec 01 11:35:05 HOSTNAME [[wg-quick]][1780]: [[RTNETLINK]] answers: Network is unreachable</code> | ||
− | * <code>[[ | + | == Related commands == |
+ | * <code>[[iptables -L]]</code> | ||
+ | * <code>[[ip route delete]] table #####</code> | ||
+ | * <code>[[ip link delete dev]] wg0</code> | ||
+ | * <code>[[resolvconf]] -f tun.wg0 -f</code> | ||
+ | * <code>[[iptables-restore]] -n</code> | ||
== See also == | == See also == | ||
+ | * {{wg}} | ||
* {{WireGuard}} | * {{WireGuard}} | ||
[[Category:VPN]] | [[Category:VPN]] |
Latest revision as of 16:54, 18 December 2023
wg-quick
bash script to set up a WireGuard interface simply
Contents
Examples[edit]
wg-quick [ up | down | save | strip ] [ CONFIG_FILE | INTERFACE ]
wg-quick
configures WireGuard tunnels using configuration files from/etc/wireguard/interfacename.conf
wg-quick up INTERFACE_NAME
wg-quick strip INTERFACE_NAME
- To reload configuration files without disrupting active sessions.
Logs[edit]
Related commands[edit]
iptables -L
ip route delete table #####
ip link delete dev wg0
resolvconf -f tun.wg0 -f
iptables-restore -n
See also[edit]
Advertising: