OPNsense Wireguard: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
| Zeile 9: | Zeile 9: | ||
*PUBKEY_SERVER=XbO5anN/a6S6fR40N6xn+lqkctdAZK4yudaVAUtVmh8= | *PUBKEY_SERVER=XbO5anN/a6S6fR40N6xn+lqkctdAZK4yudaVAUtVmh8= | ||
| − | *cat<<HERE > | + | *cat<<HERE > client1.conf |
<pre> | <pre> | ||
[Interface] | [Interface] | ||
| Zeile 23: | Zeile 23: | ||
HERE | HERE | ||
</pre> | </pre> | ||
| + | =generate the qrcode= | ||
| + | *qrencode -t utf8 < client1.conf | ||
Version vom 7. Februar 2024, 12:39 Uhr
Konfiguration
- =>VPN => WireGuard => Settings => General
- =>VPN => WireGuard => Settings => Instances => +
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

