Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
10-30-2003, 06:18 PM
|
#1
|
Member
Registered: Aug 2003
Location: Australia
Distribution: Debian 3.0, Mandrake 9.0
Posts: 41
Rep:
|
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
|
|
|
10-30-2003, 09:02 PM
|
#2
|
Member
Registered: Apr 2003
Location: Vancouver, BC
Distribution: Slackware, Ubuntu
Posts: 558
Rep:
|
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?)
|
|
|
10-30-2003, 09:02 PM
|
#3
|
Member
Registered: Apr 2003
Location: Vancouver, BC
Distribution: Slackware, Ubuntu
Posts: 558
Rep:
|
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.
|
|
|
10-31-2003, 06:03 AM
|
#4
|
Member
Registered: Aug 2003
Location: Australia
Distribution: Debian 3.0, Mandrake 9.0
Posts: 41
Original Poster
Rep:
|
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.
|
|
|
10-31-2003, 06:24 AM
|
#5
|
LQ Newbie
Registered: Jan 2003
Location: USA
Posts: 18
Rep:
|
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, : ) ).
|
|
|
10-31-2003, 07:07 AM
|
#6
|
Member
Registered: Oct 2003
Distribution: Slackware 14.1
Posts: 41
Rep:
|
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
|
|
|
10-31-2003, 09:51 AM
|
#7
|
Senior Member
Registered: Jun 2003
Location: Sydney
Distribution: Debian, FreeBSD
Posts: 1,713
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 02:48 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|