Port forwarding is normal, but when I start openvpn, port forwarding is invalid

After I start the openvpn client on openwrt, I cannot connect to my home LAN on the public network. Before the oepnvpn client is started, port forwarding is normal and available

When openvpn is not started

root@OpenWrt:~# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         10.0.0.1        0.0.0.0         UG    0      0        0 eth1
10.0.0.0        *               255.255.255.0   U     0      0        0 eth1
192.168.1.0     *

After starting openvpn

root@OpenWrt:~# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         10.8.0.1        128.0.0.0       UG    0      0        0 tun0
default         10.0.0.1        0.0.0.0         UG    0      0        0 eth1
10.0.0.0        *               255.255.255.0   U     0      0        0 eth1
10.8.0.0        *               255.255.255.0   U     0      0        0 tun0
128.0.0.0       10.8.0.1        128.0.0.0       UG    0      0        0 tun0
172.105.**.**   10.0.0.1        255.255.255.255 UGH   0      0        0 eth1
192.168.1.0     *               255.255.255.0   U     0      0        0 br-lan

My firewall configuration port forwarding profile

config redirect
        option target 'DNAT'
        option name 'vpn2'
        option src 'wan'
        option src_dport '15646'
        option dest 'lan'
        option dest_ip '192.168.1.132'
        option dest_port '15646'

config redirect
        option target 'DNAT'
        option name 'k2'
        option src 'wan'
        option src_dport '5001'
        option dest 'lan'
        option dest_ip '192.168.1.132'
        option dest_port '8080'

This is the first time I use the forum. Please forgive me for typesetting issues, thank you. I use Google Translate,

1 Like