5

VPN when the target network is the same as the source network.

 1 year ago
source link: https://chrisphillips-cminion.github.io/homelab/2022/11/12/VPNnetwork.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

VPN when the target network is the same as the source network.

VPN when the target network is the same as the source network.

Nov 12, 2022 • Category HomeLab by Chris Phillips

As I spend a lot of time working away from home, I VPN into my home lab so that I can play. However for the first time my homelab was on the same network range as the hotel I was in, and so when I vpned in, nothing would route.

To get around this I created an addition entry in the routing table for each server you want to connect to, this will be lost after a reboot.

sudo route add 192.168.31.1 -interface ppp0

ppp0 is the tunnel interface from ifconfig and 192.168.31.1 is the IP of the target you want to connect to.


Recommend

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK