LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 10-30-2003, 06:18 PM   #1
cirofren
Member
 
Registered: Aug 2003
Location: Australia
Distribution: Debian 3.0, Mandrake 9.0
Posts: 41

Rep: Reputation: 15
Connection sharing - clients stall when browsing.


My network has four to eight (it varies because of laptops) computers connected via a hub and a debian box acting as server. The debian computer is connected to the web via a cable modem.
I'm using ipchains to share the connection, the other computers have the debian box as default gateway and my IPs DNS as DNS.
The problem is that the computers connected to the server can't connect properly to all sites, they stall after loading 2-8kb. The page needs to be reloaded, sometimes five or six times, also some sites don't work at all.
If I browse from the server there are no problems.

What is a better way to share the connection that won't have these problems?
- cirofren
 
Old 10-30-2003, 09:02 PM   #2
spurious
Member
 
Registered: Apr 2003
Location: Vancouver, BC
Distribution: Slackware, Ubuntu
Posts: 558

Rep: Reputation: 31
Would you happen to be using Mozilla on your laptops? Do you get the same browsing problem with any other browser (such as links/lynx?)
 
Old 10-30-2003, 09:02 PM   #3
spurious
Member
 
Registered: Apr 2003
Location: Vancouver, BC
Distribution: Slackware, Ubuntu
Posts: 558

Rep: Reputation: 31
Also, try opening a separate terminal window on your laptop and run netstat while you are browsing -- this is useful for diagnostics

Last edited by spurious; 10-30-2003 at 09:04 PM.
 
Old 10-31-2003, 06:03 AM   #4
cirofren
Member
 
Registered: Aug 2003
Location: Australia
Distribution: Debian 3.0, Mandrake 9.0
Posts: 41

Original Poster
Rep: Reputation: 15
The problem is with ALL browsers, Mozilla, IE, Opera, Lynx, Galeon, Konqueror, all of them. Happens on all versions of Linux and Windows I've tried it on (Debian, Mandrake, WinXP, Win98). It's not my hardware, as when I was running the network windows only a few months ago using ICS it worked fine. My guess, and it's only a guess, is that using ipchains is a sloppy way to share the connection.
If anyone could tell me any 'clean' methods that'd be great. Preferably something where I can also monitor what computers are using what bandwidth and when. I don't care how hard it is to set up, as long as it works.
- cirofren.
 
Old 10-31-2003, 06:24 AM   #5
moon69
LQ Newbie
 
Registered: Jan 2003
Location: USA
Posts: 18

Rep: Reputation: 0
I'm about to attempt the same setup, using my rh9 box as the primary connection to the internet for three other machines. I'll be watching and hoping for a few detailed replies to this one.
Good timing (for me anyway, : ) ).
 
Old 10-31-2003, 07:07 AM   #6
anGeR
Member
 
Registered: Oct 2003
Distribution: Slackware 14.1
Posts: 41

Rep: Reputation: 15
try this script - I didn't test it but I will. I'm trying the same thing and my friend sent me this to try so you just need to reconfigure the script to your settings.

edit /etc/rc.d/rc.local and add those commands below, ppp0 is
my interface, reboot machine...



#----------------------------------------------------------------------------------------------------------
/sbin/modprobe ipt_MASQUERADE #
/sbin/iptables -F
/sbin/iptables -t nat -F
/sbin/iptables -t mangle -F
/sbin/iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE
echo 1 > /proc/sys/net/ipv4/ip_forward

/sbin/iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
/sbin/iptables -A INPUT -m state --state NEW -i ! ppp0 -j ACCEPT
/sbin/iptables -P INPUT DROP #only if the first two are succesful
/sbin/iptables -A FORWARD -i ppp0 -o ppp0 -j REJECT
#----------------------------------------------------------------------------------------------------------

I hope that this might help you
 
Old 10-31-2003, 09:51 AM   #7
adz
Senior Member
 
Registered: Jun 2003
Location: Sydney
Distribution: Debian, FreeBSD
Posts: 1,713

Rep: Reputation: 53
Try upgrading to a newer kernel. This may fix it. Also, you'll be able to use iptables instead to ipchains. Although ipchains is not a messy way to do it. With an older kernel it's the ONLY way to do it.
 
  


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
apps stall at launch without internet connection astrowill Linux - Software 1 09-19-2004 03:13 PM
Browsing CLients from A Server ptreves Red Hat 2 08-16-2004 01:15 PM
large downloads (HTTP, FTP) stall (DSL connection) Choye Linux - Networking 0 01-19-2004 03:55 PM
Internet Browsing via IP MASQUERADE very slow on Windows clients digihall7 Linux - Networking 13 10-28-2003 06:14 AM
how to make linux as webserver and other windows as clients for browsing the internet halovivek Linux - Networking 3 09-01-2003 11:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:48 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration