Private WAN IP address

Kernels & Hardware, configuring network, installing services

Private WAN IP address

Postby questlinq » 2019-10-12 07:13

Hello,

I have a dynamic Private WAN IP address assigned by my ISP. I use a USB dongle to connect to the internet - I can't establish remote connection to my Debian 10 box with DDNS since WAN IP comes in 100.xx.xx.255 form.
Would it be possible to resolve this problem by setting up a VPN tunnel (client) on my Debian box?
Last edited by questlinq on 2019-10-13 19:26, edited 1 time in total.
questlinq
 
Posts: 50
Joined: 2017-09-19 08:51

Re: Privaate WAN IP address

Postby p.H » 2019-10-12 07:29

questlinq wrote:I have a dynamic Private WAN IP address assigned by my ISP.

You have my deepest sympathy.

questlinq wrote:WAN IP comes in 100.xx.xx.255 form.

100.0.0.0./8 is not a private range. Do you mean 10.xx.xx.255 ?

questlinq wrote:Would it be possible to resolve this problem by setting up a VPN tunnel (client) on my Debian box?

Yes, if the other end of the tunnel provides a public address, either assigned to the client (preferred) or through configurable NAT redirections.
p.H
 
Posts: 1158
Joined: 2017-09-17 07:12

Re: Privaate WAN IP address

Postby questlinq » 2019-10-12 07:54

100.0.0.0./8 is not a private range. Do you mean 10.xx.xx.255 ?


It's like this 100.53.174.102 - it always starts with same three digits. But, when I run wanip.info I see a Public WAN IP address which is different.
questlinq
 
Posts: 50
Joined: 2017-09-19 08:51

Re: Privaate WAN IP address

Postby p.H » 2019-10-12 08:07

Maybe the ISP does some NAT or transparent proxy. But 100.53.174.102 is not a private address. It is assigned to Sprint.
p.H
 
Posts: 1158
Joined: 2017-09-17 07:12

Re: Privaate WAN IP address

Postby Bloom » 2019-10-12 08:17

Code: Select all
curl -s icanhazip.com
User avatar
Bloom
 
Posts: 193
Joined: 2017-11-11 12:23

Re: Privaate WAN IP address

Postby p.H » 2019-10-12 08:46

What is this supposed to show ?
p.H
 
Posts: 1158
Joined: 2017-09-17 07:12

Re: Privaate WAN IP address

Postby Bloom » 2019-10-12 09:14

Your outside (WAN) ip address.
User avatar
Bloom
 
Posts: 193
Joined: 2017-11-11 12:23

Re: Privaate WAN IP address

Postby p.H » 2019-10-12 10:30

How it that different from wanip.info which the OP used ?
p.H
 
Posts: 1158
Joined: 2017-09-17 07:12

Re: Privaate WAN IP address

Postby Bloom » 2019-10-12 13:43

Wanip.info yields a brightly colored webpage with lots of information. Not suitable for processing the result in a Bash script.
The instruction I gave yields only the ip address and nothing else. That can be used for processing in a script.

OP can use a Dynamic DNS service to make his system reachable from the internet. He will need a dyndns-client or a service like that in his router in order to automatically update the DDNS address if his WAN ip address changes.
User avatar
Bloom
 
Posts: 193
Joined: 2017-11-11 12:23

Re: Privaate WAN IP address

Postby p.H » 2019-10-12 17:46

How does this difference matter to the OP ? I did not read that the OP wanted to process the result in a script.

Regarding the dynamic DNS, it is useless if the computer is behind a carrier-grade NAT (CGN) and does not have an IP address which is reachable from the public internet.

To the OP : what is the public IP address you see with wanip.info ? Is it always the same ?
p.H
 
Posts: 1158
Joined: 2017-09-17 07:12

Re: Privaate WAN IP address

Postby Bloom » 2019-10-12 23:30

OP should configure his router to enable a virtual link from the internet to the system he wishes to reach from outside his own home. A properly secured system, of course.
User avatar
Bloom
 
Posts: 193
Joined: 2017-11-11 12:23

Re: Privaate WAN IP address

Postby troffasky » 2019-10-13 07:36

questlinq wrote:Would it be possible to resolve this problem by setting up a VPN tunnel (client) on my Debian box?


Yes. You would need to find somebody to terminate the VPN for you but I'm sure such services exist. If it's just for your use [ie you're not hoping to host public-facing services on it for anyone to access] you could use a service like Hamachi.
troffasky
 
Posts: 15
Joined: 2017-11-05 11:00

Re: Private WAN IP address

Postby questlinq » 2019-10-13 19:26

When I run
curl -s icanhazip.com

it returns the same IP address as when I run http://wanip.info/.

However, when I use HUAWEI 4G Dongle E3372 or NETGEAR LB2120 I see a different IP address (IP Address 100.91.208.174) under Status Details.
When I replace SIM card in my Android based phone and I use LanDroid app - it shows same IP address under Public IP section as when I run http://wanip.info/, while under LocalNet/Routes: I get IP Address 100.91.208.174.

I've opened ports and forwarded the traffic within my network and I still can't reach the box. I'll keep trying and report back the results.
questlinq
 
Posts: 50
Joined: 2017-09-19 08:51

Re: Private WAN IP address

Postby questlinq » 2019-10-14 17:56

I just found out that my ISP is using Private WAN IPs - I'll have to try with VPN tunnel next.
questlinq
 
Posts: 50
Joined: 2017-09-19 08:51

Re: Private WAN IP address

Postby reinob » 2019-10-15 10:34

questlinq wrote:I just found out that my ISP is using Private WAN IPs - I'll have to try with VPN tunnel next.


do you need it to be transparent (all ports) or just for ssh/web/etc?

If you have a server (VPS) somewhere with a public IP you can set-up a VPN between your home computer and your server (I recommend Wireguard), and then configure a reverse proxy (if web) or an ssh jump host (if ssh) to forward the connection to the VPN address of your home computer.

so [internet client] -> { via VPS public IP } -> [VPS forward to home server VPN IP] -> { via home VPN IP } -> [ home ]

where [computer] and { address/route }
reinob
 
Posts: 742
Joined: 2014-06-30 11:42

Next

Return to System configuration

Who is online

Users browsing this forum: No registered users and 14 guests

fashionable