Skip to content

Instantly share code, notes, and snippets.

View tschaefer's full-sized avatar

Tobias Schäfer tschaefer

View GitHub Profile
@tschaefer
tschaefer / README.md
Last active June 9, 2019 17:34 — forked from mikoim/README.md
WireGuard example configuration for VPN

Server

iptables -A FORWARD -i wg0 -o YOUR_INTERFACE -s 10.200.200.0/24 -j ACCEPT
iptables -A FORWARD -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables -t nat -A POSTROUTING -o YOUR_INTERFACE -s 10.200.200.0/24 -j MASQUERADE

Client

wg-quick up `pwd`/client.conf