I have Wifi router TP-Link Archer C7, which configured as Gateway and OpenVPN server: GW 192.168.33.1, Mask 255.255.128.0
I have switch with connected 3 devices with static IP: 192.168.1.200, 192.168.1.220 and 192.168.1.230
I have a Laptop with Ubuntu 20.04 with next interfaces: Wi-Fi (DHCP): IP 192.168.33.55, Mask 255.255.128.0, GW 192.168.33.1 and Ethernet (Static): IP 192.168.1.230, Mask 255.255.255.0 (connected to switch)
In this case, the laptop is connected to the internet via wi-fi and connected to the switch by ethernet, also all other devices are connected to this switch. The switch doesn't connect to the router.
I can manage 2 subnets from a laptop because it is a local network. Using the router TP-Link feature I generated an OpenVPN file and submitted it to the user. The user successfully got access to my local network 192.168.33.X but unfortunately can't connect to local devices (which connected to switch through my laptop) with another subnet 192.168.1.230.
I add a route in the router settings: Destination IP: 192.168.1.0 (local network of devices) Mask: 255.255.255.0 GW 192.168.33.55 (IP of my Laptop)
Also on the laptop I see route using IP route
command:
169.254.0.0/16 dev wlp0s20f3 scope link metric 1000
172.17.0.0/16 dev docker0 proto kernel scope link src 172.17.0.1 linkdown
192.168.1.0/24 dev enp2s0 proto kernel scope link src 192.168.1.230 metric 100
192.168.33.0/25 dev wlp0s20f3 proto kernel scope link src 192.168.33.55 metric 60
Question: How do correctly set up a route, to get access from VPN to another local network?
0 Answers