Ok, let's go First of all, let's prove everything is configured and working as expected to not have any surprises later on...1a) Ping 8.8.8.8 and google.com from Sense shell. Post the output, I would like to see the latencies.1b) Ping 8.8.8.8 and google.com from LAN client. Post the output, I would like to see the latencies.1c) Post screenshots from sense config:I) System: Gateways: SingleII) Interfaces: Overview (do not extend entries)III) Firewall: NAT: Outbound
Looks fine so far. You missed the ping from a LAN client (eg a computer), but I assume it will work.Step 2 is configuring WG client on sense.2a) Configure according to step 1-6 https://docs.opnsense.org/manual/how-tos/wireguard-selective-routing.htmlPay particular attention for step 6 "monitor IP". Please set debians's WG endpoint IP, later we will change it, but for now we use this one to see the gateway / VPN itself is up.Next we will test WG connection and config.2b) Post a screenshot of I) System: Gateways: SingleII) Firewall: NAT: Outbound => if there is no entry for WGnet, go to step 9 of https://docs.opnsense.org/manual/how-tos/wireguard-selective-routing.html but leave source address blank.III) Lobby: Dashboard interface section
Fine, WG looks good. We will care about routing all over VPN in step 3...Now we will try routing one IP over VPN and see if it works... 2c) Go to System: Gateways: Single and change WG monitor IP to 8.8.4.42d) Traceroute 8.8.4.4 from Sense shell, post the output.
Perfect my friend Step 3 is to achieve that LAN clients will use VPN only.3a) Go to Firewall: Rules: LAN and find the v4 default allow rule. Edit it and set the VPN as gateway.3b) At Firewall: Rules: LAN find the v6 default allow rule. Disable it to make sure no traffic will go over WAN via v6 overriding your VPN. This is only suitable if IPv6 is activated for LAN/WAN.3c) Post a screenshot of System: Routes: Status3d) Traceroute 8.8.8.8 from LAN client (eg PC, not from sense!), post the output.3e) Traceroute google.com from LAN client (eg PC, not from sense!), post the output.
As I said before gateway not change
I change the gateway on default route ipv4 and I disable ipv6.
II) Firewall: NAT: Outbound=> if there is no entry for WGnet, go to step 9 of https://docs.opnsense.org/manual/how-tos/wireguard-selective-routing.html but Here step 9 it is not nat outbound. It is firewal > rules > floating . Did you see it ?