LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 04-20-2006, 12:19 PM   #1
walmartshopper
Member
 
Registered: Sep 2004
Distribution: Slackware64-current multilib
Posts: 32

Rep: Reputation: 16
Question 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.
 
Old 04-20-2006, 12:37 PM   #2
ataraxia
Member
 
Registered: Apr 2006
Location: Pittsburgh
Distribution: Debian Sid AMD64
Posts: 296

Rep: Reputation: 30
Do you have any firewall rules (iptables -L -v)?

What's in /etc/hosts and /etc/nsswitch.conf?
 
Old 04-20-2006, 12:45 PM   #3
walmartshopper
Member
 
Registered: Sep 2004
Distribution: Slackware64-current multilib
Posts: 32

Original Poster
Rep: Reputation: 16
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
 
Old 04-20-2006, 08:26 PM   #4
ataraxia
Member
 
Registered: Apr 2006
Location: Pittsburgh
Distribution: Debian Sid AMD64
Posts: 296

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
portmap:server localhost not responding baruah Linux - Networking 3 03-02-2006 03:38 AM
Change localhost name in username@localhost n175uj Linux - Newbie 4 07-01-2005 08:25 PM
my X refreshes slowly anilkumar.as Slackware 1 05-20-2005 03:02 PM
Message from syslogd@localhost localhost kernel: Disabling IRQ #21 ylts Linux - Hardware 0 02-26-2005 08:01 AM
dns requests from localhost to localhost keex Linux - Networking 2 11-13-2003 01:47 PM


All times are GMT -5. The time now is 05:02 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration