Access to PC from Internet (modem, pppd, wvdial)

Kernels & Hardware, configuring network, installing services

Access to PC from Internet (modem, pppd, wvdial)

Postby kerum » 2017-07-05 16:43

Hello,

I'm trying to configure an access to and from Internet on laptop with Debian Jessie and modem Huawei E1552.
I can connect from laptop to Internet and ping servers there
but i can't ping my laptop from Internet.

There are problems in logs of pppd regarding the remote IP and the default 10.64.64.64 is used:

pppd 2.4.6 started by root, uid 0
Using interface ppp0
Connect: ppp0 <--> /dev/ttyUSB0
CHAP authentication succeeded
CHAP authentication succeeded
Could not determine remote IP address: defaulting to 10.64.64.64
local IP address 10.241.110.240
remote IP address 10.64.64.64
primary DNS address 194.204.159.1
secondary DNS address 194.204.152.34

details of ppp0 from ip addr show:

12: ppp0: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN group default qlen 3
link/ppp
inet 10.241.110.240 peer 10.64.64.64/32 scope global ppp0
valid_lft forever preferred_lft forever

ip route show:

default dev ppp0 scope link
10.64.64.64 dev ppp0 proto kernel scope link src 10.241.110.240

when I check my remote IP through URL: http://checkip.dyndns.org/
(ddclient use this method) I'm getting 37.47.197.222

But I cannot ping this address, I don't get response from httpd server etc.
I can access Internet from laptop but cannot access alptop from Internet.
I think there is no firewall configured on that debian.

Is this a problem of determination of remote IP and routing?
Or maybe http://checkip.dyndns.org/ is showing me wrong address?
Is there other method to check my external IP?

Thank you and regards,
k.
kerum
 
Posts: 5
Joined: 2012-01-28 20:04

Re: Access to PC from Internet (modem, pppd, wvdial)

Postby dasein » 2017-07-05 17:10

kerum wrote:I think there is no firewall configured on that debian.

You think? Are you saying that you haven't even bothered to check?

And even if that assumption is correct, that doesn't mean that your ISP (or is it cellphone provider?) doesn't have a firewall in place. (I know I would!)

kerum wrote:Is there other method to check my external IP?

Your WAN IP is your WAN IP.
User avatar
dasein
 
Posts: 7610
Joined: 2011-03-04 01:06
Location: Terra Incantationum

Re: Access to PC from Internet (modem, pppd, wvdial)

Postby kerum » 2017-07-05 18:21

ok, I've checked once again, there is no firewall, no iptables, shorewall, ufw, etc.
is this message about remote IP from pppf relevant?
What should I check next?
kerum
 
Posts: 5
Joined: 2012-01-28 20:04

Re: Access to PC from Internet (modem, pppd, wvdial)

Postby dasein » 2017-07-05 20:57

kerum wrote:What should I check next?

Your ISP/phone co.
User avatar
dasein
 
Posts: 7610
Joined: 2011-03-04 01:06
Location: Terra Incantationum

Re: Access to PC from Internet (modem, pppd, wvdial)

Postby orythem27 » 2017-07-06 01:04

kerum wrote:10.64.64.64 dev ppp0 proto kernel scope link src 10.241.110.240
http://checkip.dyndns.org/ I'm getting 37.47.197.222

I think this is a telltale sign that you don't have a public IP at all. What you see on checkip.dyndns.org, IIRC, is just your IGA. Call your ISP and claim that you need a public IP for legitimate and legal reasons, e.g. remote video surveillance for home security. But personally I wouldn't hold much hope. After all, IPv4 addresses are a scarce resource nowadays.

kerum wrote:I don't get response from httpd server etc.

Even if you managed to persuade your ISP to give you a public address, most likely they would filter ports like 80/443 so that people can't host their own websites.
User avatar
orythem27
 
Posts: 244
Joined: 2017-05-11 07:59
Location: P.R. China

Re: Access to PC from Internet (modem, pppd, wvdial)

Postby kerum » 2017-07-06 15:28

Hi, thanks a lot for your answers. I've contacted my ISP and he confirms your observation, I am getting a private IP. There is no option to get public IP by that ISP.
I still need to access this debian from Internet, is there a possibility to setup it using VPN?
kerum
 
Posts: 5
Joined: 2012-01-28 20:04

Re: Access to PC from Internet (modem, pppd, wvdial)

Postby orythem27 » 2017-07-06 16:50

I don't know the correct keyword in English yet, but here in China, the lack of IPv4 addresses created the demand for "NAT penetration" services such as "nat123.com" and "oray.com", which allow you to remotely access your home computer despite multiple layers of NAT inbetween. Maybe you could find similar services in your country.
User avatar
orythem27
 
Posts: 244
Joined: 2017-05-11 07:59
Location: P.R. China


Return to System configuration

Who is online

Users browsing this forum: No registered users and 12 guests

fashionable