Skip to main content

Client Config

Nativ Wireguard (UDP)

# Client configuration    
[Interface]
Address = <zugewiesene ClientIP>
#DNS = 10.128.0.3
PrivateKey = <Private Key> 
MTU=1342

# Server configuration    
[Peer]
PublicKey = <Public Key> 
AllowedIPs = 0.0.0.0/0
Endpoint = <Sentinel IP>:<UDP Port>

udp2raw (TCP)

  • Gateway IP und Interface name: ip route
# Client configuration    
[Interface]
Address = <zugewiesene ClientIP>
DNS = 10.128.0.3
PrivateKey = <Private Key> 

# Verhindert dass udp2raw traffic auch über den VPN Tunnel gesendet wird
PreUp = ip route add <Sentinel IP> via <Gateyway IP> dev <Interface>
PostDown = ip route del <Sentinel IP> via <Gateway IP> dev <Interface>

MTU=1342
# Starte udp2raw
PreUp = udp2raw -c -l 127.0.0.1:50001 -r <Sentinel IP>:<TCP Port> -k "<udp2raw Secret>" -a >/var/log/udp2raw.log 2>&1 &
PostDown = killall udp2raw || true

# Server configuration    
[Peer]
PublicKey = <Public Key> 
AllowedIPs = 0.0.0.0/0
Endpoint = 127.0.0.1:50001