WAN / Internet : : PPPoE-/Provider : .-----+-----. | Gateway | (or Router, CableModem, whatever) '-----+-----' | WAN / IP | .-----+------. Wireguard. .------------. | OPNsense +-----------------+ OPNSense-Wireguard '-----+------' 10.0.3.0/24 '------------' | LAN | 192.168.200.1/24 | .-----+------. | LAN-Switch | '-----+------' | ...-----+------... (Clients/Servers)
https://forum.opnsense.org/index.php?topic=22162.0
Problem solved. Configuration in Opnsense:1 - VPN - Wireguard - Local: Tunnel Adress 10.0.0.1/24 ( example ) Dns Server: EMPTY2 - Firewall - Rules - WG: Add rule:Action: Pass tcp: ipv4 Protocol: any Source: WG net Destination: any3 - Firewall - Rules - Wireguard: Add rule:Action: Pass tcp: ipv4 Protocol: any Source: WireGuard net Destination: any4 - Smartphone client wireguard:Edit configuration: DNS servers: 10.0.0.1 (example)