PDA

View Full Version : [ubuntu] Cant access linksys configuration



xxarthur33xx
October 20th, 2009, 01:01 AM
hello. I'm having a bit of trouble with my router.

When ever I try to go into my router, it doesn't connect to it at all. On vista, I use 192.168.1.1 to get into it, but on Ubuntu it doesn't even try to connect. I tried 192.168.0.1 and it says its loading, but it never loads.

from route

$ route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 * 255.255.255.0 U 2 0 0 wlan0
link-local * 255.255.0.0 U 1000 0 0 wlan0
default 192.168.1.1 0.0.0.0 UG 0 0 0 wlan0
default 192.168.1.1 0.0.0.0 UG 100 0 0 lo
arthur@arthur-desktop:~$


from /etc/resolve.conf

# Generated by NetworkManager
domain neo.rr.com
search neo.rr.com
nameserver 192.168.1.1
(I changed it to 192.168.1.1 because another thread said it should be your routers ip)

If you need anymore information, just ask.

Iowan
October 21st, 2009, 01:12 AM
I presume the Ubuntu box is not the router - and does not have the address 192.168.1.1. The (second) default gateway - using "lo" as interface - may be at least partly responsible for the problem.

How do you get into your router - Firefox?

xxarthur33xx
October 21st, 2009, 04:05 AM
Yea, I'm on wifi. My moms computer is the base for the wifi. Its an old wrt54g wireless router. Im upstairs and I connect through firefox. I can get into the config on windows, but not on linux.

How would I go about changing the lo to wlan0?

houstonbofh
October 21st, 2009, 06:30 AM
There was a version of the wrt54g that was broken in firefox, and with zonalarm on windows... Try installing ies4linux and connecting (slowly) with that.

xxarthur33xx
October 21st, 2009, 11:33 PM
I downloaded and installed the ies4linux and it didnt fix the problem. Any other ideas?

OH, to add to weird things that are happening, when my xampp is turned on, 192.168.1.1 is used for localhost. (I can access my pages on 192.168.1.1 just like I can on 127.0.0.1)

Iowan
October 21st, 2009, 11:38 PM
Didja happen to remove that gateway to "lo"?

xxarthur33xx
October 21st, 2009, 11:56 PM
I dont know how. :(

Iowan
October 22nd, 2009, 12:34 AM
(Me neither)
I suspect the information in man route will help. the line:
route add default gw mango-gwmight be modified to:
route del default gw 192.168.1.1 lo

xxarthur33xx
October 22nd, 2009, 02:13 AM
hmm, I tried but it came up with an error. I did manage to delete the one with the lo though.


$ sudo route del default gw 192.168.1.1 lo
$ sudo route add default gw mango-gw
mango-gw: Unknown host
$ sudo route add default gw 192.168.1.1 wlan0
SIOCADDRT: No such process
$ route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 * 255.255.255.0 U 2 0 0 wlan0
link-local * 255.255.0.0 U 1000 0 0 wlan0
default 192.168.1.1 0.0.0.0 UG 0 0 0 wlan0

Now what do I do?

Iowan
October 22nd, 2009, 09:37 PM
Sorry - my bad. That "mango-gw" line was straight from the man route page.
Can you access the router from a browser by entering it's address: http://192.168.1.1? Might need to restart networking.

xxarthur33xx
October 22nd, 2009, 10:28 PM
Thats what ive been saying the entire time.. :P

On my windows partition, I can access my router configuration via 192.168.1.1 on firefox and IE.
On my ubuntu partition, I CAN NOT access my router configuration via 192.168.1.1

I THINK it started ever since I upgraded to HH a while back. I've upgraded from HH to Intrepid and now im on Karmic. I'm not sure if that means anything, but it might be useful information.

houstonbofh
October 23rd, 2009, 03:39 AM
Output of the following terminal commands please, from a clean boot.

route
ping 192.168.1.255 -b -c10
arp -a

dmizer
October 23rd, 2009, 06:49 AM
Thats what ive been saying the entire time.. :P
I believe there was some confusion as a result of this statement:

I tried 192.168.0.1 and it says its loading, but it never loads.

Are you absolutely positive that:
1) You are connected to your own wireless network.
2) Your router is configured to allow administrative access via wireless.

You say your router is an old wrt54g ... what version? Are you running alternative firmware?

xxarthur33xx
October 23rd, 2009, 03:48 PM
Im connected to my own wireless network. My mom is the host downstairs. The router goes through her pc and broadcasts to mine and her boyfriends.

On windows vista, I can access my router with 192.168.1.1. I used to be able to do the same on Ubuntu, but it stopped working about a year or so ago when I upgraded to Intrepid (I believe it was Intrepid).
I was thinking maybe it might change for some reason, so I tried 192.168.0.1 and it just showed it was loading. I didnt know if that meant it was trying to connect but there was an error somewhere.

Yes, it is an old wrt54g v5 and allows administrative access through wifi. It has the latest firmware they made for it. I was thinking about dd-wrt, but it is incompatable with my router.

rclark68137
October 23rd, 2009, 04:34 PM
Do you know if your mom has made any changes to the router's setup? There is a setting on the router called "Wireless Access Web". It allows you to disable wireless access to the router’s web-based utility. In other words, you would need to run an ethernet cable between your PC and the router in order to access the Linksys configuration at 192.168.1.1

dmizer
October 23rd, 2009, 04:48 PM
Im connected to my own wireless network. My mom is the host downstairs. The router goes through her pc and broadcasts to mine and her boyfriends.

On windows vista, I can access my router with 192.168.1.1. I used to be able to do the same on Ubuntu, but it stopped working about a year or so ago when I upgraded to Intrepid (I believe it was Intrepid).
I was thinking maybe it might change for some reason, so I tried 192.168.0.1 and it just showed it was loading. I didnt know if that meant it was trying to connect but there was an error somewhere.

Yes, it is an old wrt54g v5 and allows administrative access through wifi. It has the latest firmware they made for it. I was thinking about dd-wrt, but it is incompatable with my router.

Do you run Firefox with adblock plus? If so, try disabling adblock plus. Any other browser security plugins?

What's the output of:

sudo iptables -L

xxarthur33xx
October 23rd, 2009, 08:06 PM
@rclark - No, my mom doesnt even really know how to use a computer, let alone change router settings.

@Dmizer - Thats a good idea. I didnt even think about that. I do have adblock plus added to my FF. I'm not sure what else I have installed for security on my FF, but I'll look when I boot up into ubuntu in a few minutes.

I uninstalled Adblock Plus and some other addons. I tried getting into the router and it still doesn't work. :(

Output from sudo iptables -L

$ sudo iptables -L
Chain INPUT (policy DROP)
target prot opt source destination
ACCEPT tcp -- dns-cac-lb-01.rr.com anywhere tcp flags:!FIN,SYN,RST,ACK/SYN
ACCEPT udp -- dns-cac-lb-01.rr.com anywhere
ACCEPT tcp -- dns-cac-lb-02.rr.com anywhere tcp flags:!FIN,SYN,RST,ACK/SYN
ACCEPT udp -- dns-cac-lb-02.rr.com anywhere
ACCEPT all -- anywhere anywhere
ACCEPT icmp -- anywhere anywhere limit: avg 10/sec burst 5
DROP all -- anywhere 255.255.255.255
DROP all -- anywhere 192.168.1.255
DROP all -- BASE-ADDRESS.MCAST.NET/8 anywhere
DROP all -- anywhere BASE-ADDRESS.MCAST.NET/8
DROP all -- 255.255.255.255 anywhere
DROP all -- anywhere 0.0.0.0
DROP all -- anywhere anywhere state INVALID
LSI all -f anywhere anywhere limit: avg 10/min burst 5
INBOUND all -- anywhere anywhere
LOG_FILTER all -- anywhere anywhere
LOG all -- anywhere anywhere LOG level info prefix `Unknown Input'

Chain FORWARD (policy DROP)
target prot opt source destination
ACCEPT icmp -- anywhere anywhere limit: avg 10/sec burst 5
LOG_FILTER all -- anywhere anywhere
LOG all -- anywhere anywhere LOG level info prefix `Unknown Forward'

Chain OUTPUT (policy DROP)
target prot opt source destination
ACCEPT tcp -- 192.168.1.100 dns-cac-lb-01.rr.com tcp dpt:domain
ACCEPT udp -- 192.168.1.100 dns-cac-lb-01.rr.com udp dpt:domain
ACCEPT tcp -- 192.168.1.100 dns-cac-lb-02.rr.com tcp dpt:domain
ACCEPT udp -- 192.168.1.100 dns-cac-lb-02.rr.com udp dpt:domain
ACCEPT all -- anywhere anywhere
DROP all -- BASE-ADDRESS.MCAST.NET/8 anywhere
DROP all -- anywhere BASE-ADDRESS.MCAST.NET/8
DROP all -- 255.255.255.255 anywhere
DROP all -- anywhere 0.0.0.0
DROP all -- anywhere anywhere state INVALID
OUTBOUND all -- anywhere anywhere
LOG_FILTER all -- anywhere anywhere
LOG all -- anywhere anywhere LOG level info prefix `Unknown Output'

Chain INBOUND (1 references)
target prot opt source destination
ACCEPT tcp -- anywhere anywhere state RELATED,ESTABLISHED
ACCEPT udp -- anywhere anywhere state RELATED,ESTABLISHED
LSI all -- anywhere anywhere

Chain LOG_FILTER (5 references)
target prot opt source destination

Chain LSI (2 references)
target prot opt source destination
LOG_FILTER all -- anywhere anywhere
LOG tcp -- anywhere anywhere tcp flags:FIN,SYN,RST,ACK/SYN limit: avg 1/sec burst 5 LOG level info prefix `Inbound '
DROP tcp -- anywhere anywhere tcp flags:FIN,SYN,RST,ACK/SYN
LOG tcp -- anywhere anywhere tcp flags:FIN,SYN,RST,ACK/RST limit: avg 1/sec burst 5 LOG level info prefix `Inbound '
DROP tcp -- anywhere anywhere tcp flags:FIN,SYN,RST,ACK/RST
LOG icmp -- anywhere anywhere icmp echo-request limit: avg 1/sec burst 5 LOG level info prefix `Inbound '
DROP icmp -- anywhere anywhere icmp echo-request
LOG all -- anywhere anywhere limit: avg 5/sec burst 5 LOG level info prefix `Inbound '
DROP all -- anywhere anywhere

Chain LSO (0 references)
target prot opt source destination
LOG_FILTER all -- anywhere anywhere
LOG all -- anywhere anywhere limit: avg 5/sec burst 5 LOG level info prefix `Outbound '
REJECT all -- anywhere anywhere reject-with icmp-port-unreachable

Chain OUTBOUND (1 references)
target prot opt source destination
ACCEPT icmp -- anywhere anywhere
ACCEPT tcp -- anywhere anywhere state RELATED,ESTABLISHED
ACCEPT udp -- anywhere anywhere state RELATED,ESTABLISHED
ACCEPT all -- anywhere anywhere

dmizer
October 24th, 2009, 03:38 PM
@Dmizer - Thats a good idea. I didnt even think about that. I do have adblock plus added to my FF. I'm not sure what else I have installed for security on my FF, but I'll look when I boot up into ubuntu in a few minutes.

I uninstalled Adblock Plus and some other addons. I tried getting into the router and it still doesn't work. :(

Output from sudo iptables -L
[snip]
You didn't need to uninstall adblock ... just disable it for testing. Adblock is a good plugin, but it can cause problems sometimes.

Are you running Firestarter? If so, just uninstall it. If you absolutely must have a firewall running locally, you should use GUFW (https://help.ubuntu.com/community/Gufw) instead. Is there some particular reason why you need a secondary firewall running behind your router ... which is also a firewall?

xxarthur33xx
October 24th, 2009, 07:47 PM
I though I already uninstalled it, Guess not.

Ok, so I removed that and I tried again..and still cant connect to it. :(

dmizer
October 25th, 2009, 01:11 AM
Try running this command:

sudo iptables -F
Then try to access the page.

xxarthur33xx
October 25th, 2009, 04:26 PM
Tried that command, still doesnt work. this is insane..

dmizer
October 26th, 2009, 01:16 AM
After you tried that command, what's the output of: sudo iptables -L

xxarthur33xx
October 26th, 2009, 02:48 AM
Chain INPUT (policy ACCEPT)
target prot opt source destination

Chain FORWARD (policy ACCEPT)
target prot opt source destination

Chain OUTPUT (policy ACCEPT)
target prot opt source destination

dmizer
October 26th, 2009, 11:12 AM
Please post the output of this command:

ifconfig

xxarthur33xx
October 26th, 2009, 08:25 PM
~$ ifconfig
eth0 Link encap:Ethernet HWaddr 00:19:21:e2:ec:c7
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:16

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.255.255.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:11386 errors:0 dropped:0 overruns:0 frame:0
TX packets:11386 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:2156634 (2.1 MB) TX bytes:2156634 (2.1 MB)

wlan0 Link encap:Ethernet HWaddr 00:1e:e5:20:22:61
inet addr:192.168.1.100 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::21e:e5ff:fe20:2261/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:316939 errors:0 dropped:0 overruns:0 frame:0
TX packets:259383 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:221045417 (221.0 MB) TX bytes:31281713 (31.2 MB)

wmaster0 Link encap:UNSPEC HWaddr 00-1E-E5-20-22-61-32-30-00-00-00-00-00-00-00-00
UP RUNNING MTU:0 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

dmizer
October 27th, 2009, 03:55 AM
Try rebooting your router. Double check to make sure that your router allows access via wireless. Are you using OpenDNS (http://www.opendns.com/) DNS servers (if so, try disabling them)?

xxarthur33xx
November 1st, 2009, 01:41 AM
Well, after the fresh install fo karmic, It now works, along with ssh'ing into my iPhone and remote desktop. :)