You are not logged in.

#1 2016-08-14 05:41:37

malvidx
Member
Registered: 2016-08-05
Posts: 32

[SOLVED] can connect to wifi but not internet

my wireless router was reset this afternoon due to a power outage. both of my laptops werent on or plugged in, so they werent effected. i re-set up my wireless  router, no different than it was set up before but now one of my laptops can no longer connect to the internet. the other one connects just fine.
when i plug an ethernet cable in i have the same problem. the laptop sees the internet connection but cant get to any sites, i cant ping anything, or ssh.
i can connect to the wifi network just fine but cant connect to anything (i tried my neighbors wifi and the same thing happens, so its not my router)
the laptop is a toshiba satellite.

any help would be greatly appreciated.

thanks!

Last edited by malvidx (2016-08-14 17:46:52)

Offline

#2 2016-08-14 06:23:44

nobody
The Great
Registered: 2015-08-10
Posts: 3,655

Re: [SOLVED] can connect to wifi but not internet

Looks like stale DHCP data. Using network manager, disconnect then reconnect or reboot the laptop or do what this guy did. Check again. After that,
Show me the output of

ip addr
ip link
ip route show default

and

sudo apt-get install mtr
sudo mtr bunsenlabs.org

after you connected to the network.

Offline

#3 2016-08-14 13:05:13

malvidx
Member
Registered: 2016-08-05
Posts: 32

Re: [SOLVED] can connect to wifi but not internet

i have rebooted several times, restarted network manager, and done everything on that page and i still cannot connect to the internet. i had to run the commands and put them on a usb drive and get them to put here on the laptop that DOES work. this is frustrating.

anyway, here is the output:

malvidx@god:~$ ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN group default qlen 1000
    link/ether 00:8c:fa:29:58:2d brd ff:ff:ff:ff:ff:ff
3: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
    link/ether 20:16:d8:27:6d:c3 brd ff:ff:ff:ff:ff:ff
    inet 10.236.162.119/11 brd 10.255.255.255 scope global dynamic wlan0
       valid_lft 188sec preferred_lft 188sec
    inet6 fe80::2216:d8ff:fe27:6dc3/64 scope link
       valid_lft forever preferred_lft forever
malvidx@god:~$ ip link
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN mode DEFAULT group default qlen 1000
    link/ether 00:8c:fa:29:58:2d brd ff:ff:ff:ff:ff:ff
3: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DORMANT group default qlen 1000
    link/ether 20:16:d8:27:6d:c3 brd ff:ff:ff:ff:ff:ff
malvidx@god:~$ ip route show default
default via 10.224.0.1 dev wlan0  proto static  metric 1024
10.224.0.0/11 dev wlan0  proto kernel  scope link  src 10.236.162.119

Last edited by nobody (2016-08-14 13:13:37)

Offline

#4 2016-08-14 13:19:58

nobody
The Great
Registered: 2015-08-10
Posts: 3,655

Re: [SOLVED] can connect to wifi but not internet

First time I've seen a commercial router defaulting to a /11 subnet for LAN smile

Please confirm the following:

ping 10.224.0.1

from your laptop reports success (i.e. your router/gateway is functioning).

Then please post the output of the mtr command I listed in my previous post.

Offline

#5 2016-08-14 13:20:30

malvidx
Member
Registered: 2016-08-05
Posts: 32

Re: [SOLVED] can connect to wifi but not internet

and i cant connect to the internet to install mtr

Offline

#6 2016-08-14 13:22:15

malvidx
Member
Registered: 2016-08-05
Posts: 32

Re: [SOLVED] can connect to wifi but not internet

when i ping that i get "Destination Port Unreachable"

Offline

#7 2016-08-14 13:29:49

nobody
The Great
Registered: 2015-08-10
Posts: 3,655

Re: [SOLVED] can connect to wifi but not internet

malvidx wrote:

when i ping that i get "Destination Port Unreachable"

What's your router's IP address (according to the other laptop)?

Lastly, show me your firewall rules:

sudo iptables -L -v

(only if the policy of any of the chains is not  ACCEPT and the chain is not empty).

Offline

#8 2016-08-14 13:32:59

Horizon_Brave
Operating System: Linux-Nettrix
Registered: 2015-10-18
Posts: 1,473

Re: [SOLVED] can connect to wifi but not internet

Screaming a subnet error to me... It seems that your router may be on a different subnet than your laptop. Did you get your DHCP address from the router you're connecting to? Can you log into your router's web GUI, confirm the addresses of the other devices on your network, and see if they fall in the same (odd) subnet of the /11? You may be able to reassign the IP of this laptop from there.


"I have not failed, I have found 10,000 ways that will not work" -Edison

Offline

#9 2016-08-14 13:38:58

nobody
The Great
Registered: 2015-08-10
Posts: 3,655

Re: [SOLVED] can connect to wifi but not internet

10.236.162.119/11 includes 10.224.0.0 through 10.255.255.255 and thus includes 10.224.0.1, ergo subnets are just fine. Although the /11 CIDR suffix is a bit unusual.

Offline

#10 2016-08-14 14:16:14

malvidx
Member
Registered: 2016-08-05
Posts: 32

Re: [SOLVED] can connect to wifi but not internet

i think its the firewall and the program bitmask (a vpn program i no longer use) any thoughts?


malvidx@god:~$ sudo iptables -L -v
Chain INPUT (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target     prot opt in     out     source               destination         

Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target     prot opt in     out     source               destination         

Chain OUTPUT (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target     prot opt in     out     source               destination         
1184 96728 bitmask    all  --  any    any     anywhere             anywhere           

Chain bitmask (1 references)
pkts bytes target     prot opt in     out     source               destination         
    0     0 ACCEPT     all  --  any    wlan0   anywhere             192.168.1.0/24     
    0     0 ACCEPT     udp  --  any    wlan0   192.168.1.0/24       anywhere             udp dpt:domain
    0     0 ACCEPT     tcp  --  any    wlan0   192.168.1.0/24       anywhere             tcp dpt:domain
    0     0 RETURN     udp  --  any    wlan0   anywhere             239.255.255.250      udp dpt:1900
    0     0 RETURN     udp  --  any    wlan0   anywhere             224.0.0.251          udp dpt:mdns
    0     0 ACCEPT     all  --  any    wlan0   anywhere             198.252.153.28     
  576 39228 REJECT     all  --  any    wlan0   anywhere             anywhere             reject-with icmp-port-unreachable

Offline

#11 2016-08-14 14:21:15

malvidx
Member
Registered: 2016-08-05
Posts: 32

Re: [SOLVED] can connect to wifi but not internet

it cant be the router because i cant even connect to my neighbors wifi

Offline

#12 2016-08-14 14:33:40

nobody
The Great
Registered: 2015-08-10
Posts: 3,655

Re: [SOLVED] can connect to wifi but not internet

malvidx wrote:

i think its the firewall and the program bitmask (a vpn program i no longer use) any thoughts?


malvidx@god:~$ sudo iptables -L -v
Chain INPUT (policy ACCEPT 0 packets, 0 bytes)
 pkts bytes target     prot opt in     out     source               destination         

Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
 pkts bytes target     prot opt in     out     source               destination         

Chain OUTPUT (policy ACCEPT 0 packets, 0 bytes)
 pkts bytes target     prot opt in     out     source               destination         
 1184 96728 bitmask    all  --  any    any     anywhere             anywhere            

Chain bitmask (1 references)
 pkts bytes target     prot opt in     out     source               destination         
    0     0 ACCEPT     all  --  any    wlan0   anywhere             192.168.1.0/24      
    0     0 ACCEPT     udp  --  any    wlan0   192.168.1.0/24       anywhere             udp dpt:domain
    0     0 ACCEPT     tcp  --  any    wlan0   192.168.1.0/24       anywhere             tcp dpt:domain
    0     0 RETURN     udp  --  any    wlan0   anywhere             239.255.255.250      udp dpt:1900
    0     0 RETURN     udp  --  any    wlan0   anywhere             224.0.0.251          udp dpt:mdns
    0     0 ACCEPT     all  --  any    wlan0   anywhere             198.252.153.28      
  576 39228 REJECT     all  --  any    wlan0   anywhere             anywhere             reject-with icmp-port-unreachable

Your bitmask chain is completely broken and discards almost all outgoing packets except for a very select few destinations (which do not make much sense given your router's DHCP) and some multicast. If you created that chain yourself, fix it, otherwise drop it and rebuild something more sane.

This commands removes the reference from filter/OUTPUT:

sudo iptables -F OUTPUT

you should be able to access the internet after executing that command again. make the changes persistent

sudo iptables-save > /etc/iptables/rules.v4

Repeat for ip6tables if you messed that one up too.

Offline

#13 2016-08-14 14:45:56

malvidx
Member
Registered: 2016-08-05
Posts: 32

Re: [SOLVED] can connect to wifi but not internet

twoion wrote:

Your bitmask chain is completely broken and discards almost all outgoing packets except for a very select few destinations (which do not make much sense given your router's DHCP) and some multicast. If you created that chain yourself, fix it, otherwise drop it and rebuild something more sane.

This commands removes the reference from filter/OUTPUT:

sudo iptables -F OUTPUT

you should be able to access the internet after executing that command again. make the changes persistent

sudo iptables-save > /etc/iptables/rules.v4

Repeat for ip6tables if you messed that one up too.

did both and still doesnt work

Offline

#14 2016-08-14 14:55:53

malvidx
Member
Registered: 2016-08-05
Posts: 32

Re: [SOLVED] can connect to wifi but not internet

GOT IT!
completely reset iptables and removed iptables-persistant

everything works now.
whew.

thanks!

Offline

#15 2016-08-14 18:26:14

Horizon_Brave
Operating System: Linux-Nettrix
Registered: 2015-10-18
Posts: 1,473

Re: [SOLVED] can connect to wifi but not internet

twoion wrote:

10.236.162.119/11 includes 10.224.0.0 through 10.255.255.255 and thus includes 10.224.0.1, ergo subnets are just fine. Although the /11 CIDR suffix is a bit unusual.

malvidx wrote:

it cant be the router because i cant even connect to my neighbors wifi


Apologies for the mis-informing lead then. You are indeed correct. The /11 though, is that something you set yourself OP? That's a crazy number of available hosts! I'm curious to know what router you're using


"I have not failed, I have found 10,000 ways that will not work" -Edison

Offline

#16 2016-08-15 01:06:04

malvidx
Member
Registered: 2016-08-05
Posts: 32

Re: [SOLVED] can connect to wifi but not internet

Horizon_Brave wrote:
twoion wrote:

10.236.162.119/11 includes 10.224.0.0 through 10.255.255.255 and thus includes 10.224.0.1, ergo subnets are just fine. Although the /11 CIDR suffix is a bit unusual.

malvidx wrote:

it cant be the router because i cant even connect to my neighbors wifi


Apologies for the mis-informing lead then. You are indeed correct. The /11 though, is that something you set yourself OP? That's a crazy number of available hosts! I'm curious to know what router you're using

actually no i didnt set it myself. thats the weird thing. im using a linksys e1200.
i dont know how my iptables got so screwed up. i dont think i did anything, just shut the laptop down and booted it back up after our power came back on.

*shrug* its fixed now. hopefully there will be no more problems. so far so good.

Offline

Board footer

Powered by FluxBB