whats wrong with my internet? (Fossapup64)

Issues and / or general discussion relating to Puppy

Moderator: Forum moderators

Post Reply
sieger707
Posts: 24
Joined: Fri Aug 06, 2021 9:37 am

whats wrong with my internet? (Fossapup64)

Post by sieger707 »

can ping my default gateway my nslookup and others suggest that DNS name resolution seems to happen but I cannot ping externally and obviously there is no internet what seems to be the issue and how do I get online

so far done :
changed to static IP. flush IP route and cache. turn off turn on my my Wi-Fi adaptor physically on my laptop.

the standard DNS flush procedures do not seem to work here on puppy Linux but I haven't tried hard because DNS seems to be resolving . also I uninstall firewall right now there is no active firewall as IP tables listing will suggest

Actually my router is a hotspot so not many options to change stuff in my Android phone neither do I think that is the problem. I can use the same hotspot the same client MAC address but through Windows connect to internet successfully. also so all other clients can access internet through my hotspot.
here go all the command outputs that would be needed to troubleshoot

Here's my system

Code: Select all

root# cat /etc/os-release
NAME=Puppy
VERSION="9.5"
ID=puppy_fossapup64
VERSION_ID=9.5
PRETTY_NAME="fossapup64 9.5"
ANSI_COLOR="0;34"
CPE_NAME="cpe:/o:puppy:puppy_linux:9.5"
HOME_URL="http://puppylinux.com/"
SUPPORT_URL="http://www.murga-linux.com/puppy/index.php"
BUG_REPORT_URL="https://github.com/puppylinux-woof-CE/woof-CE"

Code: Select all

    mtt 8.8.8.8
My traceroute  [v0.93]
puppypc24185 (192.168.43.102)                          2021-08-06T09:16:22+0800
Keys:  Help   Display mo                             My traceroute  [v0.93]
puppypc24185 (192.168.43.102)                          2021-08-06T09:16:22+0800
Keys:  Help   Display mode   Restart statistics   Order of fields   quit
                                       Packets               Pings
 Host                                Loss%   Snt   Last   Avg  Best  Wrst StDevde   Restart statistics   Order of fields   quit


root# iptables -L
Chain INPUT (policy ACCEPT)
target     prot opt source               destination         
ACCEPT     all  --  anywhere             anywhere            

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination         

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination         



root# netstat -rn
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
0.0.0.0         192.168.43.1    0.0.0.0         UG        0 0          0 wlan0
127.0.0.0       0.0.0.0         255.0.0.0       U         0 0          0 lo
192.168.43.0    0.0.0.0         255.255.255.0   U         0 0          0 wlan

root# ping www.google.com
PING www.google.com (216.58.203.36): 56 data bytes
^C
--- www.google.com ping statistics ---
11 packets transmitted, 0 packets received, 100% packet loss

route 
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         192.168.43.1    0.0.0.0         UG    0      0        0 wlan0
default         192.168.43.1    0.0.0.0         UG    303    0        0 wlan0
127.0.0.0       *               255.0.0.0       U     0      0        0 lo
192.168.43.0    *               255.255.255.0   U     303    0        0 wlan0


root# ip route
default via 192.168.43.1 dev wlan0 
default via 192.168.43.1 dev wlan0 metric 303 
127.0.0.0/8 dev lo scope link 
192.168.43.0/24 dev wlan0 proto kernel scope link src 192.168.43.102 metric 303 
root# 


# Generated by dhcpcd from wlan0
# /etc/resolv.conf.head can replace this line
nameserver 192.168.43.1
# /etc/resolv.conf.tail can replace this line
root# 
root# ifconfig wlan0
wlan0     Link encap:Ethernet  HWaddr CC:52:AF:61:5D:D5  
          inet addr:192.168.43.102  Bcast:192.168.43.255  Mask:255.255.255.0
          inet6 addr: fe80::ce52:afff:fe61:5dd5/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:939 errors:0 dropped:4 overruns:0 frame:0
          TX packets:3586 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:103106 (100.6 KiB)  TX bytes:353321 (345.0 KiB)


root# traceroute www.google.com
traceroute to www.google.com (142.250.67.196), 30 hops max, 46 byte packets
 1  192.168.43.1 (192.168.43.1)  1.672 ms !N  3.732 ms !N  *
root# 

Connected to Hotspot # 2 from my AT&T phone. Same Puppy Linux connects just fine

User avatar
bigpup
Moderator
Posts: 6983
Joined: Tue Jul 14, 2020 11:19 pm
Location: Earth, South Eastern U.S.
Has thanked: 903 times
Been thanked: 1522 times

Re: whats wrong with my internet ?

Post by bigpup »

When I have WIFI connection problems I always do a new connection setup using the full Network Wizard.
I use it, because it gives a good clue on what is not working.
If a step fails to work.
That is probably the problem.

Do this:

menu->Setup->Internet Connection Wizard->Wired or wireless LAN->Network Wizard

Network Wizard wireless connection steps.

1. Select Network Wizard
2. Select wlan0 (your network card may have a different description)
3. Select Wireless in the Configure wireless network box.
4. Select Scan and your router WIFI signal should come up.
5. Select your router WIFI signal as device and OK
6. Give a name to your profile. It should already be what you selected in step 5.
7. Encryption. Most people use WPA/TKIP - select it or WPA2.
8. A box will open for you to write the WPA password. It is called a Shared Key. Enter the password.
9. Leave the other boxes as they are. Rarely do these need adjustment.
9. Select Save
10. Select Use This Profile
11. A box will appear showing Puppy trying to connect
12. A box will come up “REPORT ON TEST 0f wlan0CONNECTION”
13. Select Auto DHCP in the Configure interface box and it will go through a handshake routine. and declare itself successful
14. Select done

If something does not work.
What step?
You do what?
You see what?

Also make sure your system's time zone setting is correct - if not, many website's certificates then act as if they are expired, and the webpage won't display.

The things you do not tell us, are usually the clue to fixing the problem.
When I was a kid, I wanted to be older.
This is not what I expected :o

User avatar
Jafadmin
Posts: 385
Joined: Tue Aug 04, 2020 4:51 pm
Has thanked: 68 times
Been thanked: 85 times

Re: whats wrong with my internet ?

Post by Jafadmin »

Even more simply:
1) Check your IP address. (If this is wrong, DHCP is failing)
2) Ping your gateway. (if this fails, your network adapter is not configured properly)
3) Ping 1.1.1.1 (if this fails, you are not on the internet)
4) Ping yahoo.com ( if step 3 succeeds and this step fails, your DNS resolver is bad. Set DNS to 1.1.1.1)

User avatar
rcrsn51
Posts: 1389
Joined: Sun Aug 23, 2020 4:26 pm
Been thanked: 357 times

Re: whats wrong with my internet ?

Post by rcrsn51 »

sieger707 wrote: Fri Aug 06, 2021 12:18 pm

Connected to Hotspot # 2 from my AT&T phone. Same Puppy Linux connects just fine

Please clarify this. Are you dealing with two phones where one connects and the other does not?

sieger707
Posts: 24
Joined: Fri Aug 06, 2021 9:37 am

Re: whats wrong with my internet ?

Post by sieger707 »

In a manner yes. Consider the AT&T phone ( 2nd ) as "control" phone.
The problem though is 1 phone's hotspot and 1 Puppy Linux install on that phone
Here's a cheat sheet
Problem Laptop ( with dual boot Puppy & linux ) PL
normal laptop NL
Problem hotspot # 1 H1
Ok hotspot # 2 - H2

Code: Select all

PL.Puppy  ❌   H1
PL.Puppy  ✓   H2
PL.WIndows ✓ H1
PL.Puppy  ✓  H2
NL            ✓  H 1 && H2
sieger707
Posts: 24
Joined: Fri Aug 06, 2021 9:37 am

Re: whats wrong with my internet ?

Post by sieger707 »

Jafadmin wrote: Fri Aug 06, 2021 8:49 pm

Even more simply:
I already put out my logging with anticipatory replies to all these questions . take a look again
1) Check your IP address. (If this is wrong, DHCP is failing)
✅ As already mentioned I can get valid IP address assigned from DHCP. See logs
2) Ping your gateway. (if this fails, your network adapter is not configured properly)
✅ As already mentioned I can ping
3) Ping 1.1.1.1 (if this fails, you are not on the internet)
❌ Fails . Yes thats the problem - the title has it - no internet
4) Ping yahoo.com ( if step 3 succeeds and this step fails, your DNS resolver is bad. Set DNS to 1.1.1.1)
❌ It will resolve IP address of yahoo.com but fails .
"Set DNS to 1.1.1.1)" ---> Static IP and /etc/resolv.conf set to alternate DNS IP's including the one mentioned. No Luck. The issue isnt DNS ( see pt #3 DNS resolves. There's something blocking. WHat is it and why ?

sieger707
Posts: 24
Joined: Fri Aug 06, 2021 9:37 am

Re: whats wrong with my internet ?

Post by sieger707 »

bigpup wrote: Fri Aug 06, 2021 6:51 pm

When I have WIFI connection problems I always do a new connection setup using the full Network Wizard.
I use it, because it gives a good clue on what is not working.
If a step fails to work.
That is probably the problem.

Do this:

menu->Setup->Internet Connection Wizard->Wired or wireless LAN->Network Wizard

Network Wizard wireless connection steps.

1. Select Network Wizard
2. Select wlan0 (your network card may have a different description)
3. Select Wireless in the Configure wireless network box.
4. Select Scan and your router WIFI signal should come up.
5. Select your router WIFI signal as device and OK
6. Give a name to your profile. It should already be what you selected in step 5.
7. Encryption. Most people use WPA/TKIP - select it or WPA2.
8. A box will open for you to write the WPA password. It is called a Shared Key. Enter the password.
9. Leave the other boxes as they are. Rarely do these need adjustment.
9. Select Save
10. Select Use This Profile
11. A box will appear showing Puppy trying to connect
12. A box will come up “REPORT ON TEST 0f wlan0CONNECTION”
13. Select Auto DHCP in the Configure interface box and it will go through a handshake routine. and declare itself successful
14. Select done

If something does not work.
What step?
You do what?
You see what?

Also make sure your system's time zone setting is correct - if not, many website's certificates then act as if they are expired, and the webpage won't display.

Network setup on Fossa gives me 3 ways to connect 1) Simple Network 2) Frisbee 3 ) Dougals
✅ t 1) Simple Network 2) Frisbee - I can connect ( Std WPA2 being used ) I get DHCP assigned IP and Wi Fi connection ✓ . Problem is connecting to internet. To understand RC better I have already given Logs above in my opening post - that has results of various t-shooting utils netstat,traceroute , etc.
❌ 3 ) Dougals
The method referred above is #3 . Using a broadcast SSID I have never been able to connect I get an error

Code: Select all

"Failed to connect to non-global ctrl_ifname: wlan0  error: No such file or directory"

But that is a different issue ...the above error. If you know how to fix it -that'd be nice. Sounds like its missing a path and file which ai might to have to manually create . B'cos puppy threw in 2 alternatives to connect - I didnt bother to delve

sieger707
Posts: 24
Joined: Fri Aug 06, 2021 9:37 am

Re: whats wrong with my internet? (Fossapup64)

Post by sieger707 »

I could get online after resetting the network settings of my phone. From the logs it was apparent - as intended everything was goin to the gw ( 192.168.43.1 ) but that guy was upto nothin gut. gw wasnt forwardng RX packets to my laptop for just Puppy Linux. With those very old settings in place same MAC being used thro' windows had no issues.

Here's that cheat sheet again.

Code: Select all

Problem Laptop ( with dual boot Puppy & linux ) PL
normal laptop NL
Problem hotspot # 1 H1
Ok hotspot # 2 - H2

Code: Select all

PL.Puppy  ❌   H1
PL.Puppy  ✓   H2
PL.WIndows ✓ H1
PL.Puppy  ✓  H2
NL            ✓  H 1 && H2

WHY ? did my mobs hotspot gateway block a "harmless puppy' ? can anyone gimme a devil's in the detail explanation ? ( or some else was goin on ? BTW : I renamed my 2fs file ( the file that saves user specific progs install and data ) and then started a 'brand new' puppy instance and that too had the same issue =>e's the blocking was happening @ the hotspot end ). I also dug if there was a way to change hotspot gateway IP and range but that's hard coded in most mobs.
On a 2nd note can someone tell me on Fossa
-- How do I flush DNS. I see Ubuntu Utils are installed here.
-- this error mentioned earlier ( with Dougals ) ....any fix ?

Code: Select all

"Failed to connect to non-global ctrl_ifname: wlan0  error: No such file or directory"
User avatar
Jafadmin
Posts: 385
Joined: Tue Aug 04, 2020 4:51 pm
Has thanked: 68 times
Been thanked: 85 times

Re: whats wrong with my internet ?

Post by Jafadmin »

sieger707 wrote: Sat Aug 07, 2021 2:46 am
Jafadmin wrote: Fri Aug 06, 2021 8:49 pm

Even more simply:
I already put out my logging with anticipatory replies to all these questions . take a look again
1) Check your IP address. (If this is wrong, DHCP is failing)
✅ As already mentioned I can get valid IP address assigned from DHCP. See logs
2) Ping your gateway. (if this fails, your network adapter is not configured properly)
✅ As already mentioned I can ping
3) Ping 1.1.1.1 (if this fails, you are not on the internet)
❌ Fails . Yes thats the problem - the title has it - no internet
4) Ping yahoo.com ( if step 3 succeeds and this step fails, your DNS resolver is bad. Set DNS to 1.1.1.1)
❌ It will resolve IP address of yahoo.com but fails .
"Set DNS to 1.1.1.1)" ---> Static IP and /etc/resolv.conf set to alternate DNS IP's including the one mentioned. No Luck. The issue isnt DNS ( see pt #3 DNS resolves. There's something blocking. WHat is it and why ?

If you cannot ping 1.1.1.1, you are not on the internet. If you are not on the internet it is impossible to reach a DNS server to resolve names.

Your system is probably resolving names from DNS cache. Flush it, and figure out why you cannot ping 1.1.1.1. Until you can ping the internet by IP address, messing around with DNS settings is futile. i.e.: If you cannot ping a DNS server, you cannot resolve names.

sieger707
Posts: 24
Joined: Fri Aug 06, 2021 9:37 am

Re: whats wrong with my internet? (Fossapup64)

Post by sieger707 »

Well dhcp auto config will put my gw 192.168.43.1 as my DNS. If you used Puppy's Network config Utils you will observe /etc/resolve.conf with gateway IP & Not 1.1.1.1 . I can ping gateway as I said before. I considered that name resolution may have happened via cache so I pinged sites I never visited in the past at all and it resolved those. So it sounds like my gw was doing DNS work but I wasnt getting back Rx packets. I still cant figure out why. Also if my DNS needed a flush - why would a soln come from changing stuff @ mobile hotspot end & not at my Laptop end. That is something I still dont follow
Now I took care of the internet part as mentioned( see last post ) . Needed help with these 2 :
On a 2nd note can someone tell me on Fossa
-- How do I flush DNS. I see Ubuntu Utils are Not installed here.
-- this error mentioned earlier ( with Dougals ) ....any fix ?

Code: Select all

"Failed to connect to non-global ctrl_ifname: wlan0  error: No such file or directory"

Thx :thumbup:

williams2
Posts: 1062
Joined: Sat Jul 25, 2020 5:45 pm
Been thanked: 305 times

Re: whats wrong with my internet? (Fossapup64)

Post by williams2 »

How do I flush DNS

AFAIK, by default, Puppy does not have dns caching enabled.

If you have systemd, dns caching can be enabled by systemd.
FossaPup does not use systemd.

OS's that do not use systemd can enable dns caching by running dnsmasq.
For example, Ubuntu Bionic Beaver has dnsmasq installed, but it is not enabled by default. That is, Ubuntu Bionic Beaver does not have dns caching enabled, by default.

AFAIK, Fossapup does not have dnsmasq installed. To enable dns caching, you would need to install dnsmasq, then set it up to run when Puppy boots.

Typing dnsmasq --help in a text terminal (console) will tell you if dnsmasq is installed.
Typing ps|grep dnsmasq will tell you if dnsmasq is running.

A website like https://www.bbc.com/ has hundreds of pictures. Each picture has a URL internet address. The address of each picture (and other links) is retreived from the dns sever one by one to get the ip numbers for each address. But the ip address of each picture is the same number (for bbc/com.) With caching, it only needs to get the ip number from the dns server once for bbc.com. Which can speed up displaying a web page.

So, AFAIK, FossaPup does not cache dns requests. There is no cache to clear.
To clear dnsmasq, I restart it using killall.

You eth or wifi router may have dns caching enabled, but that is external to Puppy.
And dns servers often have their own caches, which is again external to Puppy.

sieger707
Posts: 24
Joined: Fri Aug 06, 2021 9:37 am

Re: whats wrong with my internet? (Fossapup64)

Post by sieger707 »

williams2 wrote: Sat Aug 07, 2021 9:59 pm

How do I flush DNS

AFAIK, by default, Puppy does not have dns caching enabled.

If you have systemd, dns caching can be enabled by systemd.
FossaPup does not use systemd.

OS's that do not use systemd can enable dns caching by running dnsmasq.
For example, Ubuntu Bionic Beaver has dnsmasq installed, but it is not enabled by default. That is, Ubuntu Bionic Beaver does not have dns caching enabled, by default.

AFAIK, Fossapup does not have dnsmasq installed. To enable dns caching, you would need to install dnsmasq, then set it up to run when Puppy boots.

Typing dnsmasq --help in a text terminal (console) will tell you if dnsmasq is installed.
Typing ps|grep dnsmasq will tell you if dnsmasq is running.

Code: Select all

root# dnsmasq --help
bash: dnsmasq: command not found
root# ps|grep dnsmasq
 4106 root      0:00 grep dnsmasq

root# find  /usr /etc  /opt  /in* -iname  "*dnsmasq*"
root# 

A website like https://www.bbc.com/ has hundreds of pictures. Each picture has a URL internet address. The address of each picture (and other links) is retreived from the dns sever one by one to get the ip numbers for each address. But the ip address of each picture is the same number (for bbc/com.) With caching, it only needs to get the ip number from the dns server once for bbc.com. Which can speed up displaying a web page.

So, AFAIK, FossaPup does not cache dns requests. There is no cache to clear.
To clear dnsmasq, I restart it using killall.

You eth or wifi router may have dns caching enabled, but that is external to Puppy.
And dns servers often have their own caches, which is again external to Puppy.

✅ ✅ ✅ bingo !!! quite suspected the problem outside puppy and pup was unnecessarily being blamed.If my routers DNS cache was messed up resetting network settings outside Puppy would have helped. Still trying to figure out if that cache was stale after all - the same hotspot worked with Windows partition and other devices. How come ?Kind of points to another creeping rat ?

sieger707
Posts: 24
Joined: Fri Aug 06, 2021 9:37 am

Re: whats wrong with my internet? (Fossapup64)

Post by sieger707 »

back in the same hole. THis time resetting my hotspot settings is futile.

Code: Select all

root# !2572
traceroute www.yahoo.com
traceroute to www.yahoo.com (202.165.107.49), 30 hops max, 46 byte packets
 1  192.168.43.1 (192.168.43.1)  33.201 ms !N  1.818 ms !N  *

I cant figure out WTH's happenin. Just puttin short story shorter 👇

Code: Select all

  normal laptop NL
Problem hotspot # 1 H1
Ok hotspot # 2 - H2

Code: Select all

PL.Puppy  ❌   H1
PL.Puppy  ✓   H2
PL.WIndows ✓ H1
PL.Puppy  ✓  H2
NL            ✓  H 1 && H2

considering using NDIS wrapper & .....on that note ..... what'd be the standard path to point to for your windows partition drivers ...if that does not work. .... that's if I've no luck with NDIS 'well .... have to look 🔎around for another distro. Fossa has been stable but for this 📶 issue. i ve buit 2.5g worth apps in my SFS file. would hate 2 see em go

User avatar
mikewalsh
Moderator
Posts: 6153
Joined: Tue Dec 03, 2019 1:40 pm
Location: King's Lynn, UK
Has thanked: 791 times
Been thanked: 1979 times

Re: whats wrong with my internet? (Fossapup64)

Post by mikewalsh »

@sieger707 :-

THIS might perchance be your issue here, too.

Mike. ;)

sieger707
Posts: 24
Joined: Fri Aug 06, 2021 9:37 am

Re: whats wrong with my internet? (Fossapup64)

Post by sieger707 »

whew...!!! I hope this is the last time I have to come here after I though everything hunky d'y
It sounds like this could be related to my sleep function i use that disconnects Wlan0 & later reconnecting it back somehow doesnt get Rx packets past the gw.
Thus far this seems to work. I will cross my fingers
-- Reset network settings on mob. Reboot. If your stuck in the hole.
-- I used

Code: Select all

alias zz="acpitool -s" 
# Now changed that too . Keep Wlan0 closed before sleeping and then start it again 
alias zz='{ ifconfig wlan0 down ; } && { acpitool -s ; }'
alias xx='ifconfig wlan0 up'

ps posted earlier vide an older Id I thought i'd lost

Post Reply

Return to “Users”