mirror of
https://github.com/angristan/wireguard-install.git
synced 2024-11-24 05:56:02 +03:00
Enfore restrictive permissions on /etc/wireguard
This commit is contained in:
parent
9c9cf66fc8
commit
1981429774
@ -124,6 +124,8 @@ PublicKey = $SERVER_PUB_KEY
|
||||
Endpoint = $SERVER_PUB_IP:$SERVER_PORT
|
||||
AllowedIPs = 0.0.0.0/0,::/0" >> "$HOME/$SERVER_WG_NIC-client.conf"
|
||||
|
||||
chmod 600 -R /etc/wireguard/
|
||||
|
||||
# Enable routing on the server
|
||||
echo "net.ipv4.ip_forward = 1
|
||||
net.ipv6.conf.all.forwarding = 1" > /etc/sysctl.d/wg.conf
|
||||
|
Loading…
Reference in New Issue
Block a user