OPNsense Wireguard

Aus Xinux Wiki
Zur Navigation springen Zur Suche springen

Konfiguration

  • =>VPN => WireGuard => Settings => General

Opnsense-wg01.png

  • =>VPN => WireGuard => Settings => Instances => +

Opnsense-wg02.png

Interfaces

  • Assignments

Opnsense-wg03.png

Firewall

  • => Rules => +

Opnsense-wg04.png


Opnsense-wg05.png

An einem Linux System

  • PRIVKEY=$(wg genkey)
  • PUBKEY=$(echo $PRIVKEY | wg pubkey)
  • PUBKEY_SERVER=XbO5anN/a6S6fR40N6xn+lqkctdAZK4yudaVAUtVmh8=
  • cat<<HERE > client1.conf
[Interface]
Address =  172.30.32.101/24
PrivateKey = $PRIVKEY
#PUBKEY = $PUBKEY
DNS = 8.8.8.8 

[Peer]
PublicKey = $PUBKEY_SERVER
AllowedIPs = 0.0.0.0/0
Endpoint = opns-zw.ix.de:51820
HERE

generate the qrcode

  • qrencode -t utf8 < client1.conf