Wireguard- No VPN

Hi friends,
I have installed wiregurad and the interface says it is connected.. but no VPN on WAN


and traceroot

what is wrong my set up

pls help

unfortunately we don't have your setup...

@ninjanoir78 what do you mean?

we don't have any infos about your config, please give us some infos about config. What is your network config?

pls find the following


root@OpenWrt:~# uci show network; uci show dhcp; uci show firewall
network.loopback=interface
network.loopback.dev

please remove your personal infos as private keys, and infos from your private wg

1 Like

done.. tks for it

@ninjanoir78 hi.. i have done it.. pls check noq

Assuming the currently active wireguard interface is WG2.

uci set network.@wireguard_WG2[0].route_allowed_ips='1'
uci commit network; /etc/init.d/network restart

Check the default gateway by running ip route list default
It should be something like default dev WG2 ...

You should do the same for the other peers.

1 Like

thank you so much.. it is working now

traceroute to openwrt.org (139.59.209.225), 20 hops max, 46 byte packets
 1  10.66.66.1  45.740 ms
 2  139.99.100.1  49.177 ms
 3  192.168.143.254  48.088 ms
 4  10.29.218.254  37.534 ms
 5  10.29.211.144  36.494 ms
 6  10.133.2.108  37.454 ms
 7  10.75.0.10  38.360 ms
 8  10.75.248.4  38.118 ms
 9  103.5.15.4  60.727 ms
10  54.36.50.135  191.688 ms
11  54.36.50.228  214.259 ms
12  54.36.50.229  193.962 ms
13  178.33.100.161  198.004 ms
14  80.249.213.143  214.247 ms
15  138.197.244.68  223.969 ms
16  138.197.250.156  266.124 ms
17  *
18  *
19  *
20  139.59.209.225  277.422 ms
1 Like

The keys can still be seen in the history of your post. You should recreate and replace all of them.

1 Like

Hi I have deleted it again.. is it still visible?

Yes. Just recreate all your keys and replace them.

ok thank you.. I'll

thank you once again

How can I split VPN between 5GHz and 2.5GHz ( I want to use VPN only for the 5GHz wifi)

thank you

You will need to create an independent network and then associate your 5g radio to that new network. Obviously you’ll need to use a unique ssid, too.

Then, you will need to use policy based routing to send the 5g traffic through the tunnel while bypassing the vpn for the 2.4g network.

Hi thank you for the reply
Can you pls kindly guide me with CLI commands
I have posted my network config above

Thank you

I normally edit my config files directly and I don’t use uci commands frequently.

Please post your text config files:

Please copy the output of the following commands and post it here using the "Preformatted text </> " button:
grafik
Remember to redact passwords, MAC addresses and any public IP addresses you may have:

cat /etc/config/network
cat /etc/config/wireless
cat /etc/config/dhcp
cat /etc/config/firewall
1 Like