remember to save iptables rule
This commit is contained in:
parent
7d096fbf4c
commit
c317fae59a
@ -29,6 +29,8 @@ We will use the range 100.64.0.0/10 (RFC 6598) because it doesn't colide with pr
|
||||
iptables -t nat -A POSTROUTING -s 100.64.0.0/10 -o eth0 -j MASQUERADE
|
||||
systemctl enable --now wg-quick@wg0
|
||||
|
||||
Don't forget to save the iptables rules for the next start. The easiest way is to use cron, but I don't recommend it.
|
||||
|
||||
To get the public key (you need it later on):
|
||||
|
||||
wg pubkey <<<$(grep PrivateKey /etc/wireguard/wg0.conf | cut -d ' ' -f3)
|
||||
|
Loading…
Reference in New Issue
Block a user