Advertisement
madrian

Untitled

Sep 23rd, 2017
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. auto wg0
  2. iface wg0 inet static
  3. pre-up /sbin/ip link add dev wg0 type wireguard
  4. pre-up /usr/bin/wg setconf wg0 /etc/wireguard/wg0.conf
  5. post-up /sbin/ip route add 192.168.2.0/24 dev wg0
  6. up /sbin/ip link set dev wg0 up
  7. down /sbin/ip link del wg0
  8. address 192.168.5.1
  9. netmask 255.255.255.0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement