Project

General

Profile

Actions

The ungleich VPN infrastructure » History » Revision 8

« Previous | Revision 8/31 (diff) | Next »
Nico Schottelius, 01/23/2019 03:39 PM


The ungleich VPN infrastructure

Wireguard on vpn-2a0ae5c1.ungleich.ch

  • Server: vpn-2a0ae5c1.ungleich.ch
  • Port: 51820
  • Requires a public key
  • Client network: 2a0a:e5c1:100::/40
  • Client network size: /48

Sample client configuration:

/etc/wireguard/wg0.conf:

[Interface]
PrivateKey = YOURKEYHERE
ListenPort = 51280

[Peer]
PublicKey = 
Endpoint = vpn-2a0ae5c1.ungleich.ch:51820
AllowedIPs = ::/0

Commands for setting it up

MY_NET=2a0a:e5c1:XXXX::1/48

ip link add dev wg0 type wireguard

# Replace with your range
ip addr add $MY_NET dev wg0

# Add routing
ip route add 2a0a:e5c1:100::/40 dev wg0
ip route add ::/0 via 2a0a:e5c1:100::1

# Configure the interface
wg setconf wg0 /etc/wireguard/wg0.conf

# Bring it up
ip link set wg0 up

Debugging

  • wg show
  • ping 2a0a:e5c1:100::1

Sample server configuration

/etc/wireguard/wg0.conf:

[Interface]
ListenPort = 51820
PrivateKey = SERVERKEYHERE

# Nico, 2019-01-23
[Peer]
PublicKey = kL1S/Ipq6NkFf1MAsNRou4b9VoUsnnb4ZxgiBrH0zA8=
AllowedIPs = 2a0a:e5c1:101::/48

# Customer networks below
# ...

Sample server rc.local:

ip link add dev wg0 type wireguard
ip addr add 2a0a:e5c1:100::1/40 dev wg0
wg setconf wg0 /etc/wireguard/wg0.conf
ip link set wg0 up

OpenVPN on openvpn.ungleich.ch

  • Server: openvpn.ungleich.ch
  • Port: 1195
  • Requires a certificate
  • Address range: 2a0a:e5c0:3::/48
    • Client networks are /64

Updated by Nico Schottelius about 5 years ago · 8 revisions