Newbie needs hand-holding

Need help configuring your VPN? Just post here and you'll get that help.
Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Post Reply
chudak12
OpenVpn Newbie
Posts: 9
Joined: Fri Dec 14, 2018 3:57 pm

Newbie needs hand-holding

Post by chudak12 » Tue Jan 05, 2021 7:28 pm

Hello and Happy New Year.

I use NordVPN and connect to it via cli as "sudo openvpn usxyz.nordvpn.com..ovpn"

After I connected to VPN my host, I am losing ability to connect to that host via VNC
Of cause, the IP was changed !

Is it possible to change this and still be able to use the original LAN IP to connect via VNC?

PS: What is interesting that VNC can't connect to the host with NordVPN started, but remmina can (!?), why ?

Thx

User avatar
TinCanTech
OpenVPN Protagonist
Posts: 8385
Joined: Fri Jun 03, 2016 1:17 pm

Re: Newbie needs hand-holding

Post by TinCanTech » Tue Jan 05, 2021 7:45 pm

chudak12 wrote:
Tue Jan 05, 2021 7:28 pm
What is interesting that VNC can't connect to the host with NordVPN started, but remmina can
In your .ovpn file try:

Code: Select all

route "VNC-Client-IP net_gateway"
Change VNC-Client-IP to the IP-address of the VNC client.

chudak12
OpenVpn Newbie
Posts: 9
Joined: Fri Dec 14, 2018 3:57 pm

Re: Newbie needs hand-holding

Post by chudak12 » Tue Jan 05, 2021 9:15 pm

TinCanTech wrote:
Tue Jan 05, 2021 7:45 pm
chudak12 wrote:
Tue Jan 05, 2021 7:28 pm
What is interesting that VNC can't connect to the host with NordVPN started, but remmina can
In your .ovpn file try:

Code: Select all

route "VNC-Client-IP net_gateway"
Change VNC-Client-IP to the IP-address of the VNC client.
I tried that with actual IPs and it did not work.

added to ovpn file:
route 192.168.70.7 xxx.yyy.zzz.1

Tue Jan 5 13:12:37 2021 ERROR: Linux route add command failed: external program exited with error status: 1

User avatar
TinCanTech
OpenVPN Protagonist
Posts: 8385
Joined: Fri Jun 03, 2016 1:17 pm

Re: Newbie needs hand-holding

Post by TinCanTech » Tue Jan 05, 2021 9:38 pm

chudak12 wrote:
Tue Jan 05, 2021 9:15 pm
added to ovpn file:
route 192.168.70.7 xxx.yyy.zzz.1
That is not as a wrote it.

Anyway, try this:

Code: Select all

route "VNC-Client-IP 255.255.255.255 net_gateway"
net_gateway is an special openvpn variable, just use it as is.

User avatar
Pippin
Forum Team
Posts: 959
Joined: Wed Jul 01, 2015 8:03 am

Re: Newbie needs hand-holding

Post by Pippin » Tue Jan 05, 2021 9:42 pm

Code: Select all

route 192.168.70.7 255.255.255.255 net_gateway
would be correct.

Instead try

Code: Select all

mssfix 1400
in config.

chudak12
OpenVpn Newbie
Posts: 9
Joined: Fri Dec 14, 2018 3:57 pm

Re: Newbie needs hand-holding

Post by chudak12 » Tue Jan 05, 2021 10:43 pm

mssfix 1400

alone does not work

route 192.168.70.7 255.255.255.255 net_gateway - works, but I think some Ineterbet names resolutions maybe broken (trying to reboot)

Can that line be generic for more then one IP ?

Thx!

chudak12
OpenVpn Newbie
Posts: 9
Joined: Fri Dec 14, 2018 3:57 pm

Re: Newbie needs hand-holding

Post by chudak12 » Tue Jan 05, 2021 10:50 pm

TinCanTech wrote:
Tue Jan 05, 2021 9:38 pm
chudak12 wrote:
Tue Jan 05, 2021 9:15 pm
added to ovpn file:
route 192.168.70.7 xxx.yyy.zzz.1
That is not as a wrote it.

Anyway, try this:

Code: Select all

route "VNC-Client-IP 255.255.255.255 net_gateway"
net_gateway is an special openvpn variable, just use it as is.
"VNC-Client-IP" is an actual IP ?

Thx!

chudak12
OpenVpn Newbie
Posts: 9
Joined: Fri Dec 14, 2018 3:57 pm

Re: Newbie needs hand-holding

Post by chudak12 » Wed Jan 06, 2021 6:26 pm

that seemed to have worked thx a million @Pippin @TinCanTech !

Post Reply