OpenVPN not working

It appears you're running OpenWrt as a lan device instead of a lan->wan router. This is a problem because your PC will be configured to use 192.168.254.254 as its default route, it is not aware of the OpenWrt router and OpenVPN, so it will always go directly to the Internet.

The most straightforward way around this is to create a new network and attach the PC to it, so that OpenWrt handles all interaction between the PCs on that network and the Internet.

I am trying to use openwrt as an access point is there a way to do it as an access point

Yes just move the AP to the new "vpnuser" network. You could also have two SSIDs, one of which goes by VPN and one is direct to Internet.

how would i do that. sorry i'm new to this

Have you tried UDP rather than TCP ? OpenVPN prefer UDP

At last, if you can use Wireguard : easier setup, better performance, etc.

yes actually

router, udp, free servers, united states exact proton vpn config i use

Your images show that you are using TCP.
https://forum.openwrt.org/uploads/default/original/3X/2/a/2ab62cca3bca1ed20cf702df34f2b49ea85d8ad2.png

oh i changed it since then sorry. this is


the current one

It does not matter, TCP or UDP.

Forget about 'manual' on Youtube, and configure by steps similar to: https://airvpn.org/forums/topic/20303-airvpn-configuration-on-openwrt-preventing-traffic-leakage-outside-tunnel/

Ask questions, if any.

is there an easy way to do that in luci

Yes, on Youtube. You have already 'configured' it.

i have but my issue with the vpn is that it will not change my ip or location

https://www.youtube.com/watch?v=i33nJ1clybE&t=102s tutorial i followed

here is how i have it set up




Sun Apr  9 14:11:25 2023 daemon.notice openvpn(Proton)[1618]: net_route_v4_add: 37.19.199.129/32 via 192.168.254.254 dev [NULL] table 0 metric -1
Sun Apr  9 14:11:25 2023 daemon.notice openvpn(Proton)[1618]: net_route_v4_add: 0.0.0.0/1 via 10.18.0.1 dev [NULL] table 0 metric -1
Sun Apr  9 14:11:25 2023 daemon.notice openvpn(Proton)[1618]: net_route_v4_add: 128.0.0.0/1 via 10.18.0.1 dev [NULL] table 0 metric -1
Sun Apr  9 14:11:25 2023 daemon.notice openvpn(Proton)[1618]: Initialization Sequence Completed
Sun Apr  9 14:11:25 2023 user.notice firewall: Reloading firewall due to ifup of vpnclient (tun0)

it dose say it connects in the log too

Give output of route command, and
traceroute 8.8.8.8

what root command

traceroute 8.8.8.8
traceroute to 8.8.8.8 (8.8.8.8), 30 hops max, 46 byte packets
 1  10.18.0.1 (10.18.0.1)  34.773 ms  34.610 ms  34.891 ms
 2  unn-37-19-199-157.datapacket.com (37.19.199.157)  48.140 ms  37.865 ms  35.1                     91 ms
 3  vl201.nyc-tlx3-core-1.cdn77.com (185.229.188.170)  35.335 ms  vl204.nyc-tlx3                     -core-2.cdn77.com (185.229.188.176)  34.750 ms  vl203.nyc-tlx3-core-1.cdn77.com                      (185.229.188.172)  35.046 ms
 4  nyk-b3-link.ip.twelve99.net (213.248.70.121)  35.478 ms  35.621 ms  nyk-b3-l                     ink.ip.twelve99.net (62.115.191.217)  35.210 ms
 5  72.14.204.154 (72.14.204.154)  37.391 ms  37.718 ms  43.138 ms
 6  *  *  *
 7  dns.google (8.8.8.8)  47.348 ms  35.732 ms  44.221 ms

 route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         10.18.0.1       128.0.0.0       UG    0      0        0 tun0
default         192.168.254.254 0.0.0.0         UG    0      0        0 br-lan
10.18.0.0       *               255.255.0.0     U     0      0        0 tun0
37.19.199.129   192.168.254.254 255.255.255.255 UGH   0      0        0 br-lan
128.0.0.0       10.18.0.1       128.0.0.0       UG    0      0        0 tun0
192.168.254.0   *               255.255.255.0   U     0      0        0 br-lan

Everything is OK, you should see your VPN address on https://ipleak.net

without vpn
Screenshot 2023-04-10 155555

with vpn
Screenshot 2023-04-10 155637

the issue s that it never changes