Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

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

Linux Kernel, Network, and Services configuration.
Post Reply
Message
Author
kerum
Posts: 6
Joined: 2012-01-28 20:04

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

#1 Post by kerum »

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.

User avatar
dasein
Posts: 7680
Joined: 2011-03-04 01:06
Location: Terra Incantationum

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

#2 Post by dasein »

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.

kerum
Posts: 6
Joined: 2012-01-28 20:04

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

#3 Post by kerum »

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?

User avatar
dasein
Posts: 7680
Joined: 2011-03-04 01:06
Location: Terra Incantationum

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

#4 Post by dasein »

kerum wrote:What should I check next?
Your ISP/phone co.

User avatar
orythem27
Posts: 252
Joined: 2017-05-11 07:59
Location: P.R. China

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

#5 Post by orythem27 »

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.

kerum
Posts: 6
Joined: 2012-01-28 20:04

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

#6 Post by kerum »

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?

User avatar
orythem27
Posts: 252
Joined: 2017-05-11 07:59
Location: P.R. China

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

#7 Post by orythem27 »

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.

Post Reply