OPNsense Forum

English Forums => Virtual private networks => Topic started by: Lucid1010 on December 03, 2026, 01:15:32 PM

Title: How to implement wg selective routing on the host?
Post by: Lucid1010 on December 03, 2026, 01:15:32 PM
https://docs.opnsense.org/manual/how-tos/wireguard-selective-routing.html


$ ifconfig
....
wg6: flags=10080c1<UP,RUNNING,NOARP,MULTICAST,LOWER_UP> metric 0 mtu 1420
        description: wg_102 (opt14)
        options=80000<LINKSTATE>
        inet 10.68.75.160 netmask 0xffffffff
        groups: wg wireguard
        nd6 options=109<PERFORMNUD,IFDISABLED,NO_DAD>

An alias has been configured for the 192.168.70.0/24 CIDR range, and WireGuard routing works correctly on the Proxmox VM.


curl --interface wg6 ifconfig.me

[expected] wg server ip
[result] wan ip
However, WireGuard routing does not work on the OPNsense host.


 How can I get WireGuard routing to work on the OPNsense host? I've tried configuring virtual IPs and other settings, but only the WAN IP is shown.