LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Connections to localhost responding very slowly (https://www.linuxquestions.org/questions/linux-networking-3/connections-to-localhost-responding-very-slowly-437159/)

walmartshopper 04-20-2006 12:19 PM

Connections to localhost responding very slowly
 
I'm running slackware-current and I have an odd problem where it takes about 10 or 15 seconds for anything to connect to my box. But once the connection is established, it works normally. For example when I get on another computer and try to mount my samba share, it takes 15 seconds, but once it mounts i can browse it with no problems. It also happens when I try connecting to my web server at localhost, so it can't be the router or cables or any of that. Can't be a hardware problem because the same thing happened to my laptop which also runs slackware-current. So I tried reinstalling all my packages and even downgrading all my packages to 10.2, but it still happened. I tried creating a new user in case I had a bad config file, but no luck. I tried compiling a new kernel too. Pinging localhost still works normally. The strange thing is that my laptop has the same problem, but reverting to 10.2 didn't solve the problem. Is it possible that one of the packages in slackware-current broke something that didn't get fixed by switching to 10.2? Has anyone else with slackware-current had this problem?

Oh yeah... sometimes it will work normally for a little while and then stop working again, even when I haven't messed with anything.

...it's really annoying when I'm trying to use phpMyAdmin on localhost and it takes 15 seconds every time I click on something.

ataraxia 04-20-2006 12:37 PM

Do you have any firewall rules (iptables -L -v)?

What's in /etc/hosts and /etc/nsswitch.conf?

walmartshopper 04-20-2006 12:45 PM

Yeah, I have iptables running through Firestarter. I'm using the exact same rules that I had before though. And it still doesn't work if I turn the firewall off. But here's iptables -L -v...

Chain INPUT (policy DROP 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
0 0 ACCEPT tcp -- any any orngca-dns-comm-cac-01-eri0.orange.rr.com anywhere tcp flags:!FIN,SYN,RST,ACK/SYN
4 896 ACCEPT udp -- any any orngca-dns-comm-cac-01-eri0.orange.rr.com anywhere
2 80 ACCEPT all -- lo any anywhere anywhere
0 0 LSI udp -- any any anywhere anywhere udp dpt:33434
0 0 LSI icmp -- any any anywhere anywhere
0 0 DROP all -- eth0 any anywhere 255.255.255.255
0 0 DROP all -- any any anywhere 192.168.0.255
0 0 DROP all -- any any BASE-ADDRESS.MCAST.NET/8 anywhere
0 0 DROP all -- any any anywhere BASE-ADDRESS.MCAST.NET/8
0 0 DROP all -- any any 255.255.255.255 anywhere
0 0 DROP all -- any any anywhere 0.0.0.0
0 0 DROP all -- any any anywhere anywhere state INVALID
0 0 LSI all -f any any anywhere anywhere limit: avg 10/min burst 5
88 27470 INBOUND all -- eth0 any anywhere anywhere
0 0 LOG_FILTER all -- any any anywhere anywhere
0 0 LOG all -- any any anywhere anywhere LOG level info prefix `Unknown Input'

Chain FORWARD (policy DROP 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
0 0 LSI udp -- any any anywhere anywhere udp dpt:33434
0 0 LSI icmp -- any any anywhere anywhere
0 0 LOG_FILTER all -- any any anywhere anywhere
0 0 LOG all -- any any anywhere anywhere LOG level info prefix `Unknown Forward'

Chain OUTPUT (policy DROP 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
0 0 ACCEPT tcp -- any any kyle.regcs.com orngca-dns-comm-cac-01-eri0.orange.rr.com tcp dpt:domain
4 242 ACCEPT udp -- any any kyle.regcs.com orngca-dns-comm-cac-01-eri0.orange.rr.com udp dpt:domain
2 80 ACCEPT all -- any lo anywhere anywhere
0 0 DROP all -- any any BASE-ADDRESS.MCAST.NET/8 anywhere
0 0 DROP all -- any any anywhere BASE-ADDRESS.MCAST.NET/8
0 0 DROP all -- any any 255.255.255.255 anywhere
0 0 DROP all -- any any anywhere 0.0.0.0
0 0 DROP all -- any any anywhere anywhere state INVALID
83 16682 OUTBOUND all -- any eth0 anywhere anywhere
0 0 LOG_FILTER all -- any any anywhere anywhere
0 0 LOG all -- any any anywhere anywhere LOG level info prefix `Unknown Output'

Chain INBOUND (1 references)
pkts bytes target prot opt in out source destination
58 24110 ACCEPT tcp -- any any anywhere anywhere state RELATED,ESTABLISHED
30 3360 ACCEPT udp -- any any anywhere anywhere state RELATED,ESTABLISHED
0 0 ACCEPT all -- any any 192.168.7.0/24 anywhere
0 0 ACCEPT all -- any any 192.168.189.0/24 anywhere
0 0 ACCEPT all -- any any localnet/24 anywhere
0 0 ACCEPT tcp -- any any 136.168.0.0/16 anywhere tcp dpt:ssh
0 0 ACCEPT udp -- any any 136.168.0.0/16 anywhere udp dpt:ssh
0 0 ACCEPT tcp -- any any 136.168.0.0/16 anywhere tcp dpts:5900:5901
0 0 ACCEPT udp -- any any 136.168.0.0/16 anywhere udp dpts:5900:5901
0 0 ACCEPT tcp -- any any anywhere anywhere tcp dpts:6891:6900
0 0 ACCEPT udp -- any any anywhere anywhere udp dpts:6891:6900
0 0 LSI all -- any any anywhere anywhere

Chain LOG_FILTER (5 references)
pkts bytes target prot opt in out source destination

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

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

Chain OUTBOUND (1 references)
pkts bytes target prot opt in out source destination
0 0 ACCEPT icmp -- any any anywhere anywhere
51 11794 ACCEPT tcp -- any any anywhere anywhere state RELATED,ESTABLISHED
30 4800 ACCEPT udp -- any any anywhere anywhere state RELATED,ESTABLISHED
2 88 ACCEPT all -- any any anywhere anywhere


Here's /etc/hosts...

127.0.0.1 localhost
192.168.0.5 kyle.regcs.com kyle
192.168.0.2 regcs.com

And /etc/nsswitch.conf...

passwd: compat
group: compat

hosts: files dns
networks: files

services: files
protocols: files
rpc: files
ethers: files
netmasks: files
netgroup: files
bootparams: files

automount: files
aliases: files

ataraxia 04-20-2006 08:26 PM

That's drinking from the firehose for me. I don't know what the problem is... :Pengy:


All times are GMT -5. The time now is 08:24 PM.