LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 01-23-2004, 01:55 PM   #16
drws
Member
 
Registered: Jan 2004
Posts: 30

Rep: Reputation: 15

ifconfig and uname was just to see which NIC was int/external and uname to see which kernel we were dealing with.
 
Old 01-23-2004, 02:24 PM   #17
debloxie
Member
 
Registered: Jul 2003
Posts: 153

Original Poster
Rep: Reputation: 30
yeah DRWS,

i have tried just using it as a test with konsole using the the /sbin/iptables command and saving it to the /etc/sysconfig/iptables.

it works now coz i can ping yahoo.com and its replying fine.

thanks very much.

what next do u suggest should i just make it simple and do it like or initiate it like a script on start-up?

and again the phone device the client is using is connected via a laptop that will be using DHCP. so i need it that laptop to have as much bandwidth as it needs and the remaining bandwidth redistributed to the systems.

and another thing to explain:

my client system is browsing already but i have not setup squid yet. how come? and do u recommend i use squid. with this present configuration, can i connect using yahoo messenger etc. men this scool pls advice.

thanks a million DRWS

debloxie
 
Old 01-24-2004, 03:00 AM   #18
drws
Member
 
Registered: Jan 2004
Posts: 30

Rep: Reputation: 15
Quote:
i have tried just using it as a test with konsole using the the /sbin/iptables command and saving it to the /etc/sysconfig/iptables.
Did you make the file yourself and save it as /etc/sysconfig/iptables or did you use the "service iptables save" (or "/etc/init.d/iptables save") command?
If you type all the lines in konsole like you did before and then typed
  • /etc/init.d/iptables save
that would create a file called /etc/sysconfig/iptables that will start every time the linuxbox boots.

Quote:
what next do u suggest should i just make it simple and do it like or initiate it like a script on start-up?
if you did the thing above then it'll start at start-up for you.
but run
  • chkconfig iptables on
to make sure it is set to run at start up.

Quote:
and again the phone device the client is using is connected via a laptop that will be using DHCP. so i need it that laptop to have as much bandwidth as it needs and the remaining bandwidth redistributed to the systems.
I've never had to use phone devices / call points, so I'm probably not the best person to ask. The bandwidth limiting stuff from your first script seems to "look" right. Wish I could be more help on this one.
Is there a Linux User Group in your area that you could visit?


Quote:
my client system is browsing already but i have not setup squid yet. how come? and do u recommend i use squid. with this present configuration, can i connect using yahoo messenger etc. men this scool pls advice.
The linuxbox is routing all the traffic for your client PCs out onto the internet and back again. Almost any application should work (yahoo messenger, web browsing, games etc.)

Do you want to use squid?
This depends on whether you happy with the setup as it is now (the clients can browse the internet)
Squid would give you caching (storing of webpages that people visit) and content management (blocking of sites that you don't want people to visit)
If you really don't need features like that then, leave it out.
If you want these features, then its not going to be easy.

Your first long script (with the bandwidth limiting bit in it) has lines that would redirect requests through a proxy server. But it also contains lines like
$IPTABLES -t nat -A PREROUTING -i ${INTERNAL_INTERFACE} -p icmp -j DROP
This will drop icmp traffic going through the linuxbox from the clients (ping uses icmp traffic) - even if you had got it working before you wouldn't have been able to ping yahoo.com!

You really could do with someone standing there looking at the machines and setup. beacase a lot of your scripts rely on other things working to make them work.
have a look at
http://www.linux.org/groups/
http://lugww.counter.li.org/groups.cms

or even a Linux distro like Smoothwall (www.smoothwall.org) which is designed for this type of network config

Last edited by drws; 01-24-2004 at 03:18 AM.
 
  


Reply



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
Unable to ping web addresses, but able to resolve them? boyd98 Linux - Networking 3 03-27-2005 02:37 PM
dhcp client can't ping gateway but can ping other local hosts dirty_forks Linux - Networking 7 10-08-2004 10:54 AM
Using virtual ip-addresses for ipsec-clients neptunus Linux - Security 0 10-03-2004 10:50 AM
ping and IP addresses BACTRATE Mandriva 3 06-16-2004 06:49 PM
Can't ftp/ping external addresses from client corrierich Linux - Networking 6 04-15-2003 12:18 PM

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

All times are GMT -5. The time now is 08:57 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