Page 1 of 1

check the ip address

Posted: Tue Dec 22, 2015 5:53 am
by dykare
Hello
How can I check the external ip address of my NAS when I use VPN client?
Regards
dykare

Re: check the ip address

Posted: Tue Dec 22, 2015 6:06 am
by schumaku
In general a VPN client does establish an secured / encrypted tunnel from the VPN client to the other end of the VPN (a VPN server, a VPN concentrator).

If this VPN is an entry path to an anonymizer service run a test connection through the VPN tunnel and check the anonymizer exit IP, typically 1:1 or M:1 NATed from the tunnel.

Re: check the ip address

Posted: Wed Dec 23, 2015 1:25 am
by dykare
How do I test connection through VPN?

Re: check the ip address

Posted: Wed Dec 23, 2015 1:43 am
by Don
Connect to something on the other end.

Re: check the ip address

Posted: Wed Dec 23, 2015 3:28 pm
by dykare
If I understand you right this connection test only works if I configure VPN client so it "Allow other network devices to connect to the VPN through the NAS"?

Re: check the ip address

Posted: Thu Dec 31, 2015 2:09 pm
by gwntc
You can login to the NAS via SSH and run the below command:

curl http://checkip.dyndns.org

It will show the IP your NAS has changed to.

Re: check the ip address

Posted: Thu Apr 28, 2016 7:21 am
by onehans
and when i am connected to VPN can i access server through VPN IP?

Re: check the ip address

Posted: Tue Aug 08, 2017 10:18 pm
by tweedie
gwntc wrote:You can login to the NAS via SSH and run the below command:

curl http://checkip.dyndns.org

It will show the IP your NAS has changed to.
I know its 2 years out of date, but thanks for that! helped me out of a tricky spot!

Re: check the ip address

Posted: Wed Sep 13, 2017 6:23 pm
by NvanMJ

Re: check the ip address

Posted: Sun Dec 10, 2017 4:06 am
by NAS_hans
Hi,

TS-253A with QTS 4.3.3 build 20171205

I've setup VPN client (not server) using QVPN service app, with PIA connection settings. I am able to connect to PIA servers within the client. I see a public IP which is different from WAN IP, and I see the flag of the country I'm connected to. So far it looks good.

However when I use the SSH command mentioned in this post, to check the external IP used by my NAS, I see it is equal to the WAN IP of my ISP. So it seems the VPN client is not working.

My requirement is to redirect all traffic from NAS via VPN, leaving all other network traffic "as is". This is why I have VPN client installed on the NAS, and not on the modem.

Any idea what might be happening here?

Some details on the VPN client connection setup:
server port: UDP1198
selected options: Reconnect when the VPN connection is lost (no other options flagged)

Thanks

Re: check the ip address

Posted: Mon Jan 01, 2018 4:33 am
by njco74
[quoTS-253A with QTS 4.3.3 build 20171205

I've setup VPN client (not server) using QVPN service app, with PIA connection settings. I am able to connect to PIA servers within the client. I see a public IP which is different from WAN IP, and I see the flag of the country I'm connected to. So far it looks good.

However when I use the SSH command mentioned in this post, to check the external IP used by my NAS, I see it is equal to the WAN IP of my ISP. So it seems the VPN client is not working.

My requirement is to redirect all traffic from NAS via VPN, leaving all other network traffic "as is". This is why I have VPN client installed on the NAS, and not on the modem.

Any idea what might be happening here?

Some details on the VPN client connection setup:
server port: UDP1198
selected options: Reconnect when the VPN connection is lost (no other options flagged)
Thanks

Hello I have the exact same problem. Although QVPN shows connected when I SSH and use "curl ipv4.icanhazip.com" it shows my ISP address. I just wanted to know if you ever overcome this problem and if you did what was your work around?

Thanks

Re: check the ip address

Posted: Sat Jun 29, 2019 11:28 am
by helpcodemonkey
gwntc wrote: Thu Dec 31, 2015 2:09 pm You can login to the NAS via SSH and run the below command:

curl http://checkip.dyndns.org

It will show the IP your NAS has changed to.
4 years on and this still helps me. tq

Re: check the ip address

Posted: Wed Dec 23, 2020 9:44 pm
by MildMethod
TECH1982 wrote: Fri Jul 12, 2019 7:48 am This may really old thread, but would it have something to go this "Use VPN as default gateway"
This resolved it for me, thanks.

Instructions here: https://www.qnap.com/en-us/how-to/tutor ... -qvpn-2-0/
Just search for "Use VPN as NAS Default Gateway".

Re: check the ip address

Posted: Thu Dec 24, 2020 7:51 pm
by Toxic17
thread closed, this is an old thread.