can't access computer on LAN from ubuntu laptop while wireless but works wired
The problem: I can't seem to access other computers on my home LAN with my ubuntu laptop while connected wirelessly but it works fine on a wired connection.
Note: I am however able to access the internet wirelessly. My router: linksys WRT54G v8 (dhcp disabled) (wpa2 personal enabled) I am trying to ssh into my ubuntu desktop from my ubuntu laptop. The desktop is wired to the router along with a mac (also wired). I can ssh into the ubuntu deskop from the mac and the laptop when wired but not wirelessly. After a long pause the connection simply times out. I have adjusted my desktop firewall to let both my wireless and wired ips for my laptop through. laptop ifconfig output: eth0 Link encap:Ethernet HWaddr **hidden** inet addr:192.168.1.102 Bcast:192.168.1.255 Mask:255.255.255.0 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:17 eth1 Link encap:Ethernet HWaddr **hidden** inet addr:192.168.1.103 Bcast:192.168.1.255 Mask:255.255.255.0 inet6 addr: fe80::21c:bfff:fe8e:c358/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:228 errors:37 dropped:700 overruns:0 frame:0 TX packets:223 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:19356935 (18.4 MB) TX bytes:1554362 (1.4 MB) Interrupt:18 Base address:0x8000 Memory:f8000000-f8000fff lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:35 errors:0 dropped:0 overruns:0 frame:0 TX packets:35 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:2980 (2.9 KB) TX bytes:2980 (2.9 KB) ************* eth0 is my wired connection eth1 is my wireless connection laptop route -n output: Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1 169.254.0.0 0.0.0.0 255.255.0.0 U 1000 0 0 eth0 0.0.0.0 192.168.1.1 0.0.0.0 UG 100 0 0 eth1 0.0.0.0 192.168.1.1 0.0.0.0 UG 100 0 0 eth0 ************** I've spent about 5 hours on this and I haven't gotten anywhere. I'm not sure if it is a router setting or a problem with the laptop config and I'm out of ideas on where to look next. Much thanks in advance. |
Are you running a firewall program in ubuntu ? Perhaps the wireless (eth1) is in the list of interfaces with port 22 (ssh) blocked.
(Easiest way to check it is connect to internet via wireless and then visit grc.com and do a ShieldsUP! test. It will tell you which ports are closed and open.) |
biophysics,
Thanks for the response. I am running firestarter on both the laptop and the desktop. I assume that you are referring to the laptop. On the laptop I have the default policy that blocks all incoming traffic (except port 80, etc) and allows all outgoing traffic. On the desktop (hosts the ssh server) I have opened port 22 only to my internal ip addresses for my mac machine, and both laptop (eth0 and eth1) interfaces. Shields up shows all stealth from all my computers on a port scan (even if I disabled firestarter, the router contains a firewall that should block port 22 from the internet). Correct me if I am wrong but I do not believe I have to open my incoming port 22 on the laptop so the laptop can act as an ssh client. Ideas? |
Quote:
May be connect with wireless and stop firestarter and try ssh-ing (and browsing to see if it works). |
I disabled the firewall on the laptop (confirmed by iptables -L) and tried to ssh into the desktop using the wireless connection and got the following message:
Code:
ssh: connect to host 192.168.***.*** port 22: No route to host I turned the laptop firewall on and tried to ssh the desktop and it just times out without connecting. |
a clue!
I was looking around in my log files and found the following:
Code:
Mar 30 08:08:31 laptop kernel: [ 462.828515] Unknown OutputIN= OUT=eth0 SRC=192.168.***.*** DST=192.168.***.*** LEN=44 TOS=0x00 PREC=0x00 TTL=64 ID=32350 DF PROTO=TCP SPT=33339 DPT=22 WINDOW=5840 RES=0x00 SYN URGP=0 Why would the laptop be using an inactive ip address and how do I change it to the active ip address? |
solved
Ok, I have solved it.
For those that might have a similar problem in the future, here is what I think was going on. The network manager (system->administration->network) had both my wired and wireless network loading by default. When trying to ssh into another computer on my network, the computer was choosing to use the ip address of the wired nic instead of the wireless nic address. I caught the error by looking in my messages log (system->administration->system log->messages. When I attempted to ssh into another computer I noticed that the source address was the wired ip instead of the wireless ip. To fix the problem, I set two profiles in my network manager. One for wireless only access and one for wired access. I set the wireless profile to the default and rebooted the computer (you could probably just restart the networking system but I don't know how to do that off the top of my head). After the reboot, sshing into a computer on the local network works. My thanks to biophysics for the assistance. Regards, Blaine |
All times are GMT -5. The time now is 05:28 PM. |