Incorrect routing when the OpenVPN client is switched on

Hi there,
I set up OpenWRT (21.02.0) as a VPN client. If I start OpenVPN now, the routing no longer works for all other network participants. Firewall rules no longer help, because the routing looks like this when OpenVPN is switched on

type or# ip route
0.0.0.0/1 via 10.8.0.1 dev tun0 
default via 62.155.245.100 dev pppoe-wan 
10.8.0.0/24 dev tun0 scope link  src 10.8.0.2 
62.155.245.100 dev pppoe-wan scope link  src 193.105.94.161 
75.146.55.23 via 62.155.245.100 dev pppoe-wan 
128.0.0.0/1 via 10.8.0.1 dev tun0 
192.168.0.0/24 dev br-lan.1 scope link  src 192.168.0.1 
192.168.1.0/24 dev br-lan.2 scope link  src 192.168.1.1 
192.168.1.155 via 192.168.1.1 dev br-lan.2 paste code here

Without OpenVPN the routing is right:

type or p# ip route
default via 62.155.245.100 dev pppoe-wan 
62.155.245.100 dev pppoe-wan scope link  src 193.105.94.161 
192.168.0.0/24 dev br-lan.1 scope link  src 192.168.0.1 
192.168.1.0/24 dev br-lan.2 scope link  src 192.168.1.1 
192.168.1.155 via 192.168.1.1 dev br-lan.2

Do you have any ideas how the routing could be corrected? I need the VPN specifically for the data transfer of a root server and the hard drive to the OpenWRT router.

Greetings
DianiBeach

1 Like

https://openwrt.org/docs/guide-user/services/vpn/openvpn/extras#disable_gateway_redirection

1 Like

Thanks for your solutions. That's is it.

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.