openvpn help and app assign networks

Got a question about our NAS utilities? The answer lies within.

Moderator: Lillian.W@AST

nick_woodforth
Posts: 15
youtube meble na wymiar Warszawa
Joined: Thu Feb 04, 2016 12:18 pm

openvpn help and app assign networks

Post by nick_woodforth »

hello everyone!!!
need help with getting the vpn working and then assigning apps to use vpn or isp.

i can get the vpn to connect for a few but when i try to connect to the internet i get nothing.
im using private internet access for my vpn.
settings im using are
server: aus.privateinternetaccess.com
Protocol: UDP
Port: 1197
Account: p*******
Password: ********
Certificate: ca.rsa.4096.crt (every time i go to edit it's always blank)
Cipher: aes-256-cbc
Authentication: sha256
only have route all clint traffic through vpn server ticked.


when and if i can get the vpn working i want to be able to chose what apps go though the vpn and thought the isp

current routing table is
no vpn
default via 192.168.0.1 dev bond0
192.168.0.0/26 dev bond0 src 192.168.0.3

vpn on with all traffic ticked
0.0.0.0/1 via 10.21.10.5 dev tun255
default via 192.168.0.1 dev bond0
10.13.10.1 via 10.13.10.5 dev tun255
10.13.10.5 dev tun255 src 10.13.10.6
128.0.0.0/1 via 10.13.10.5 dev tun255
168.1.23.22 via 192.168.0.1 dev bond0
192.168.0.0/26 dev bond0 src 192.168.0.3

vpn on with all traffic not ticked
default via 192.168.0.1 dev bond0
10.13.10.5 dev tun255 src 10.13.10.6
192.168.0.0/26 dev bond0 src 192.168.0.3


thanks in advance,
nick
wdrury_uk
Posts: 12
Joined: Thu Mar 15, 2018 7:08 pm

Re: openvpn help and app assign networks

Post by wdrury_uk »

I too am having the same issues.

I have Successfully setup the Private Internet Access (PIA) VPN detail in my new Asustor 6204T OpenVPN and connected :D

I noticed none of the apps appears to be using the OpenVPN connection. I see this as there no data up/down figures increasing for the OpenVPN connection. I also tried a simple Torrent/MagentIP check and this also confirms is using my main ISP IP address.

How do I connect an Asustor App installed in the NAS to use the OpenVPN connection in the NAS?

Many thanks
AngeL
Posts: 14
Joined: Wed Feb 07, 2018 1:25 am

Re: openvpn help and app assign networks

Post by AngeL »

how did you guys install openvpn in first place? Its not on app central
wdrury_uk
Posts: 12
Joined: Thu Mar 15, 2018 7:08 pm

Re: openvpn help and app assign networks

Post by wdrury_uk »

@AngeL - Is already installed.

See this Asustor How-To guide
https://www.asustor.com/en/online/Colle ... ?topic=322
ricostuart
Posts: 3
Joined: Sun Apr 01, 2018 4:01 pm

Re: openvpn help and app assign networks

Post by ricostuart »

Hi all,

I'm wondering the exact same thing. I've setup PrivateInternetAccess VPN also but when I click "Route all client traffic through the VPN server" all seems to work (i think). But I cant then access the server using DDNS (want to acess ftp, etc). Can anyone help?
ricostuart
Posts: 3
Joined: Sun Apr 01, 2018 4:01 pm

Re: openvpn help and app assign networks

Post by ricostuart »

Now I've come accross port forwarding script on Private Internet Access (https://www.privateinternetaccess.com/f ... nced-users). Does anyone know if this would work on our system?
klaus99
Posts: 20
Joined: Thu Nov 24, 2022 10:03 pm

Re: openvpn help and app assign networks

Post by klaus99 »

Sorry, I need to bring this old case to the front again.
I have the same problem on my AS6704T: The open vpn client is configured and connected to the VPN server. But nothing on the NAS used this VPN connection. Send and receive = 0.
Do you have any ideas about it?

Thanks, Klaus
AS6704T
Delgado
Posts: 64
Joined: Tue Oct 13, 2020 10:52 pm

Re: openvpn help and app assign networks

Post by Delgado »

I have the same issue.

Is there any way to find out via the console if the VPN tunnel is used for data transfer? Maybe it is just displayed incorrectly by the GUI?

I am grateful for any information

Dirk
User avatar
father.mande
Posts: 1807
Joined: Sat Sep 12, 2015 2:55 am
Location: La Rochelle (France)

Re: openvpn help and app assign networks

Post by father.mande »

Hi,

When you use a VPN ... the use of this VPN is based (as any network) on the network route ...
to get it :
ip route show
... due to multiple table availability alos check rule
ip rule show
... and use table name (it's at end of the line) just ignore fwmark table (if exist))
ip route show table XXXX

So Now you can know route used based on ip target, and you can add route if need (normally it's in the VPN interface ???) , sorry I don't use ADM interface (OpenVPN or wireguard), so I don't use the GUI. ... but normally you ahve the choice to use VPN as the default gateway (all go through the VPN ... but it's generally not a good idea ... but work and easy to configure.

for a specific target, you can check the route used by using :
tracroute
ex. route to google DNS (you can used full qualified dns name as target ...

Code: Select all

traceroute 8.8.8.8
traceroute to 8.8.8.8 (8.8.8.8), 30 hops max, 46 byte packets
 1  192.168.10.1 (192.168.10.1)  0.507 ms  0.457 ms  0.230 ms
 2  10.69.64.1 (10.69.64.1)  7.523 ms  9.710 ms  8.049 ms
 3  nnn.net-xxxxx.fr (80.236.9.113)  7.854 ms  8.228 ms  9.096 ms
 4  129.1.nn.81.rev.xxx.net (81.65.1.129)  8.847 ms  9.638 ms  8.904 ms
 5  220.vvv.6.194.rev.xxx.net (194.6.147.220)  10.385 ms  15.551 ms  9.765 ms
 6  220.vvv.6.194.rev.xxx.net (194.6.147.220)  9.389 ms  9.005 ms  10.098 ms
 7  72.14.vvv.30 (72.14.vvv.30)  9.551 ms  11.862 ms  7.913 ms
etc. ...
Last, remember that route directive is used in order, so if a route is define before a larger one, the first is used the second ignored.

Philippe.
NB it's always possible to manage route by yourself, even ADM is used for configuration ...
AS6602T / AS5202T /AS5002T / AS1002T / FS6706T
Delgado
Posts: 64
Joined: Tue Oct 13, 2020 10:52 pm

Re: openvpn help and app assign networks

Post by Delgado »

Sorry Philippe,
I don't quite understand what you wrote yet, and I need to read up on the subject first.
Post Reply

Return to “NAS Utilities”