VPN routing to another subnet

This thread has been locked for further replies. You can start a new thread to share your ideas or ask questions.

VPN routing to another subnet

This thread has been locked for further replies. You can start a new thread to share your ideas or ask questions.
VPN routing to another subnet
VPN routing to another subnet
2022-06-16 07:32:15
Tags: #VPN #route
Model: Archer C7  
Hardware Version: V5
Firmware Version:

Hello.

 

  1. 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

  2. I have switch with connected 3 devices with static IP: 192.168.1.200, 192.168.1.220 and 192.168.1.230

  3. 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 added 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 (to devices from 192.168.1.X subnet)?

  0      
  0      
#1
Options
1 Reply
Re:VPN routing to another subnet
2022-06-17 09:34:46

Follet wrote

Hello.

 

  1. I have Wifi router TP-Link Archer C7, which configured as Gateway and OpenVPN server: GW 192.168.33.1, Mask 255.255.255.128

  2. I have switch with connected 3 devices with static IP: 192.168.1.200, 192.168.1.220 and 192.168.1.230

  3. I have a Laptop with Ubuntu 20.04 with next interfaces: Wi-Fi (DHCP): IP 192.168.33.55, Mask 255.255.255.128 , 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 added 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 (to devices from 192.168.1.X subnet)?

  @Follet 

 

I've corrected the 192.168.33.0 subnet size in your post according to your laptop's routing table.

You question leads to this thread.

If this was helpful click on the arrow pointing upward to make it blue. If this solves your issue, click the star to make it blue and mark the post as a "Recommended Solution".
  0  
  0  
#2
Options

Information

Helpful: 0

Views: 1107

Replies: 1

Tags

VPN
route
Related Articles