Hi,
I have a Freebsd server running remotely with VPN. I use openvpn.
I have Freebsd in my home machine as well.
Unfortunately, am not able to remotely ssh into the server when I start VPN on the server.
Home machine has no VPN btw.
For now, I have turned off firewalls just to get this up and running.
I saw some threads and some recommendations to set the route. However am not exactly certain how this to be done.
All addresses below are fictitious.
VPN public IP : 222.22.222.222
Server public IP: 111.11.111.111
Home public IP: 555.55.555.555
I have a VPN start script in the server that looks somethings like this:
#!/usr/bin/local/bash
sudo openvpn --mute-replay-warnings --config /home/bbk/my_vpn.conf &
sudo /sbin/route add -net 222.22.222.222 111.11.111.111 255.255.255.0
Can you please suggest specific commands to be added in this script or in the my_vpn.conf, in order to be able to ssh from home into the server when vpn is on.
Thank you.
I have a Freebsd server running remotely with VPN. I use openvpn.
I have Freebsd in my home machine as well.
Unfortunately, am not able to remotely ssh into the server when I start VPN on the server.
Home machine has no VPN btw.
For now, I have turned off firewalls just to get this up and running.
I saw some threads and some recommendations to set the route. However am not exactly certain how this to be done.
All addresses below are fictitious.
VPN public IP : 222.22.222.222
Server public IP: 111.11.111.111
Home public IP: 555.55.555.555
I have a VPN start script in the server that looks somethings like this:
#!/usr/bin/local/bash
sudo openvpn --mute-replay-warnings --config /home/bbk/my_vpn.conf &
sudo /sbin/route add -net 222.22.222.222 111.11.111.111 255.255.255.0
Can you please suggest specific commands to be added in this script or in the my_vpn.conf, in order to be able to ssh from home into the server when vpn is on.
Thank you.