SSH, Ping, FTP
Hello,
I have just installed CentOS 5 on my laptop. I have it running on another server also with a windows box and a mac running Darwin. I was having problems trying to ssh into centos 5 from my laptop running cent 5. I also tried to ftp, no go, I am running vsftp and I can ftp and ssh from all other boxes. I tried to ping from the laptop to the other cent box and cant ping either on the local lan using 192.168.2.138. Just to troble shoot I stopped the firewall and disabled selinux and I also put the lan IP of the laptop in the hosts.allow file on the centos5 box. I can ssh into Darwin and ftp, also ping all other boxes on the lan but the centos 5 box for the laptop running centos 5. Any suggestions? Thanks, Keith |
Hi,
Check the kernel route table with 'route -n' from the cli. |
Route Table
Hello,
This is the output of route -n Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface 192.168.2.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 192.168.122.0 0.0.0.0 255.255.255.0 U 0 0 0 virbr0 169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0 0.0.0.0 192.168.2.1 0.0.0.0 UG 0 0 0 eth0 Not sure what I should be looking for there or if I should add the IP 192 of the other cent os box . Thanks again Keith |
Hey friend,
Check whether sshd is running or not. |
I think it has a firewall by default.
Try: Quote:
|
Troubleshooting
Hello,
SSHD is running I can get to it from all other boxes, the firewall is turned down for testing and I have selinux disabled. The only issue I have is with the new install of the laptop running centos 5, I cant ping the other centos 5 server or ftp it, and I can't ssh into it. All other boxes work for everything vise versa with the server and the laptop. I did verify at the console sshd is running. I am stumped and I don't understand the affect of the route table. Thanks again, Keith |
So, let's confirm. From the laptop machine, please run the following, and show results:
1) ifconfig -a 2) ping localhost 3) route 4) iptables -L |
Quote:
ifconfig -a eth0 Link encap:Ethernet HWaddr 08:00:46:58:C3:55 inet addr:192.168.2.50 Bcast:255.255.255.255 Mask:255.255.255.0 inet6 addr: fe80::a00:46ff:fe58:c355/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:12330 errors:0 dropped:0 overruns:0 frame:0 TX packets:10626 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:11022211 (10.5 MiB) TX bytes:1519790 (1.4 MiB) 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:2781 errors:0 dropped:0 overruns:0 frame:0 TX packets:2781 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:4553068 (4.3 MiB) TX bytes:4553068 (4.3 MiB) peth0 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF inet6 addr: fe80::fcff:ffff:feff:ffff/64 Scope:Link UP BROADCAST RUNNING NOARP MTU:1500 Metric:1 RX packets:12382 errors:0 dropped:0 overruns:0 frame:0 TX packets:10740 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:11031494 (10.5 MiB) TX bytes:1551978 (1.4 MiB) Interrupt:10 Base address:0x4800 sit0 Link encap:IPv6-in-IPv4 NOARP MTU:1480 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:0 RX bytes:0 (0.0 b) TX bytes:0 (0.0 b) veth1 Link encap:Ethernet HWaddr 00:00:00:00:00:00 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:0 RX bytes:0 (0.0 b) TX bytes:0 (0.0 b) veth2 Link encap:Ethernet HWaddr 00:00:00:00:00:00 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:0 RX bytes:0 (0.0 b) TX bytes:0 (0.0 b) veth3 Link encap:Ethernet HWaddr 00:00:00:00:00:00 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:0 RX bytes:0 (0.0 b) TX bytes:0 (0.0 b) vif0.0 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF inet6 addr: fe80::fcff:ffff:feff:ffff/64 Scope:Link UP BROADCAST RUNNING NOARP MTU:1500 Metric:1 RX packets:10735 errors:0 dropped:0 overruns:0 frame:0 TX packets:12370 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:1537546 (1.4 MiB) TX bytes:11029330 (10.5 MiB) vif0.1 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF 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:0 RX bytes:0 (0.0 b) TX bytes:0 (0.0 b) vif0.2 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF 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:0 RX bytes:0 (0.0 b) TX bytes:0 (0.0 b) vif0.3 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF 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:0 RX bytes:0 (0.0 b) TX bytes:0 (0.0 b) virbr0 Link encap:Ethernet HWaddr 00:00:00:00:00:00 inet addr:192.168.122.1 Bcast:192.168.122.255 Mask:255.255.255.0 inet6 addr: fe80::200:ff:fe00:0/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:43 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:0 (0.0 b) TX bytes:9658 (9.4 KiB) xenbr0 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF UP BROADCAST RUNNING NOARP MTU:1500 Metric:1 RX packets:2818 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:323796 (316.2 KiB) TX bytes:0 (0.0 b) ping localhost PING localhost.WorkGroup (24.28.193.9) 56(84) bytes of data. 64 bytes from 24.28.193.9: icmp_seq=1 ttl=39 time=61.5 ms 64 bytes from 24.28.193.9: icmp_seq=2 ttl=39 time=61.3 ms 64 bytes from 24.28.193.9: icmp_seq=3 ttl=39 time=111 ms 64 bytes from 24.28.193.9: icmp_seq=4 ttl=39 time=108 ms 64 bytes from 24.28.193.9: icmp_seq=6 ttl=39 time=97.1 ms 64 bytes from 24.28.193.9: icmp_seq=8 ttl=39 time=65.1 ms 64 bytes from 24.28.193.9: icmp_seq=10 ttl=39 time=66.4 ms 64 bytes from 24.28.193.9: icmp_seq=11 ttl=39 time=89.2 ms 64 bytes from 24.28.193.9: icmp_seq=12 ttl=39 time=66.4 ms 64 bytes from 24.28.193.9: icmp_seq=13 ttl=39 time=61.6 ms 64 bytes from 24.28.193.9: icmp_seq=14 ttl=39 time=63.0 ms 64 bytes from 24.28.193.9: icmp_seq=15 ttl=39 time=71.9 ms 64 bytes from 24.28.193.9: icmp_seq=17 ttl=39 time=61.0 ms 64 bytes from 24.28.193.9: icmp_seq=18 ttl=39 time=63.5 ms 64 bytes from 24.28.193.9: icmp_seq=19 ttl=39 time=62.8 ms 64 bytes from 24.28.193.9: icmp_seq=20 ttl=39 time=70.4 ms 64 bytes from 24.28.193.9: icmp_seq=21 ttl=39 time=61.1 ms 64 bytes from 24.28.193.9: icmp_seq=22 ttl=39 time=60.6 ms --- localhost.WorkGroup ping statistics --- 22 packets transmitted, 18 received, 18% packet loss, time 21027ms rtt min/avg/max/mdev = 60.621/72.435/111.453/16.460 ms route Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.2.0 * 255.255.255.0 U 0 0 0 eth0 192.168.122.0 * 255.255.255.0 U 0 0 0 virbr0 169.254.0.0 * 255.255.0.0 U 0 0 0 eth0 default 192.168.2.1 0.0.0.0 UG 0 0 0 eth0 iptables -L Chain INPUT (policy ACCEPT) target prot opt source destination ACCEPT udp -- anywhere anywhere udp dpt:domain ACCEPT tcp -- anywhere anywhere tcp dpt:domain ACCEPT udp -- anywhere anywhere udp dpt:bootps ACCEPT tcp -- anywhere anywhere tcp dpt:bootps RH-Firewall-1-INPUT all -- anywhere anywhere Chain FORWARD (policy ACCEPT) target prot opt source destination ACCEPT all -- anywhere 192.168.122.0/24 state RELATED,ESTABLISHED ACCEPT all -- 192.168.122.0/24 anywhere ACCEPT all -- anywhere anywhere REJECT all -- anywhere anywhere reject-with icmp-port-unreachable REJECT all -- anywhere anywhere reject-with icmp-port-unreachable RH-Firewall-1-INPUT all -- anywhere anywhere Chain OUTPUT (policy ACCEPT) target prot opt source destination Chain RH-Firewall-1-INPUT (2 references) target prot opt source destination ACCEPT all -- anywhere anywhere ACCEPT icmp -- anywhere anywhere icmp any ACCEPT esp -- anywhere anywhere ACCEPT ah -- anywhere anywhere ACCEPT udp -- anywhere 224.0.0.251 udp dpt:mdns ACCEPT udp -- anywhere anywhere udp dpt:ipp ACCEPT tcp -- anywhere anywhere tcp dpt:ipp ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:ssh REJECT all -- anywhere anywhere reject-with icmp-host-prohibited Thanks again, Keith |
Quote:
Code:
$ ping localhost |
Localhost ip
Quote:
Its been a while my modem was down had to get that taken care of. The local host ip that is showing is coming from the router. The ip listed is a DNS ip address from my ISP. My server when pinging the local host also shows the same DNS IP address. Thanks again, Keith |
i just solved this problem. it's roadrunner's search page. you need to go to http://24.28.193.9 and go to the bottom. click 'opt in or opt out' and disable all of the features and you are good to go. and time warner sucks!
|
All times are GMT -5. The time now is 10:27 PM. |