Skip to content

Latest commit

 

History

History
32 lines (25 loc) · 663 Bytes

README.md

File metadata and controls

32 lines (25 loc) · 663 Bytes

VPN Router Host Configuration

Network Interface

  • Switch DHCP off
  • Set static IP address
  • Set default gateway (to real router IP address)
  • Set DNS servers
# Netplan configuration
network:
  ethernets:
    enp0s3:
      dhcp4: false
      addresses: [ 192.168.0.33/24 ]
      gateway4: 192.168.0.1
      nameservers:
        addresses: [ 8.8.8.8 ]
  version: 2

Enable Forwarding

  • echo 1 >/proc/sys/net/ipv4/ip_forward
  • iptables -t filter --policy FORWARD ACCEPT
  • iptables -t nat -A POSTROUTING -o wg -j MASQUERADE

Install WireGuard

  • Install tunnel configuration (interface wg)
  • In the configuration, set Table = off