Ubuntu Static Route

Associate
Joined
17 Oct 2002
Posts
624
Location
North East
Hello folks,
I'm having a mess about with linux, found that when VPN is active I can't ssh or remote in to the box over the network (it's headless)
A mate said I need a static route, but have no idea where to start. Does this look correct?
static.jpg


Linux box is 192.168.0.64 (DNS is localhost due to PiHole running, would this work?)
PC which will be remoting into linux is 192.168.0.65
Router is 192.168.0.1
End goal is the VPN to be running, the linux box has connection to the internet and also I can remote in locally if this is possible. At the minute I can't even ssh in to stop the vpn service.

Thanks for any help, very confused!
 
Soldato
Joined
18 Aug 2007
Posts
9,704
Location
Liverpool
Code:
sudo ip route add 192.168.0.0/24 via 192.168.0.1

Job jobbed. You don’t say what the VPN is, but for most you can add the string as a PostUp command in its config. Check the VPN isn’t setting firewall rules blocking the local network also.
 
Back
Top Bottom