LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 08-28-2004, 04:30 AM   #1
fillgood
LQ Newbie
 
Registered: Aug 2003
Location: Tashkent
Distribution: SLACKWARE
Posts: 5

Rep: Reputation: 0
Dynamic internet sharing among several hosts


Hello All !

I have the difficulties in configuring dynamic priorities for several hosts to allow them share the internet in this case:
- one host with highest priority makes connection and borrow all bandwidth
- second host in the same time with lowest priority make connetion and borrow less then host with highest priority
- third host in the same time and the same priority share bandwidth in half.
... and so on
I have had read a documentaion about Linux Advanced Routing and found some similar (1) but there configuration is

statical. It would be ideally if this sample is possible to change for my needs. If somebody knows please direct me.

www . opalsoft . net / qos / DS-28 .htm
 
Old 08-28-2004, 04:42 AM   #2
maxut
Senior Member
 
Registered: May 2003
Location: istanbul
Distribution: debian - redhat - others
Posts: 1,188

Rep: Reputation: 50
there is something there :
http://www.szabilinux.hu/bandwidth/

i didnt try it. but it seems good.

also it is possible to limit bandtwith trougth squid proxy with "delaying pool" supporrt. but squid must be compiled with delaying pools support. rpms of squid come without this support.
 
Old 08-28-2004, 05:07 AM   #3
fillgood
LQ Newbie
 
Registered: Aug 2003
Location: Tashkent
Distribution: SLACKWARE
Posts: 5

Original Poster
Rep: Reputation: 0
Exactly squid's delay pools helps limit, but watch for this:

host1 ----------- \ NAT \ SQUID <--> Inet link
host2------------ / Rules etc. /

Squid download's in cache all requested data by all bandwidth. I don't want limit users, but I want to share among users. Here is the problem - If somebody download a file nobody can't get enything for the time. To allow them (for two hosts) I must disable cache or squid and insert NAT rules for limiting. But If first user stops downloading second wouldn't borrow the link on full speed.

I like CBQ but can I use this for dynamic sharing? FIFO is working but if some user makes lot of connections no way for others to borrow some.
 
Old 05-23-2006, 03:42 AM   #4
teluguswan
Member
 
Registered: Oct 2005
Posts: 116

Rep: Reputation: 15
can any one help how to share the internet over the internal network is there any small config file to make linux internet sharing easy
 
Old 05-23-2006, 07:20 AM   #5
dimis
LQ Newbie
 
Registered: May 2006
Posts: 20

Rep: Reputation: 0
Quote:
Originally Posted by teluguswan
can any one help how to share the internet over the internal network is there any small config file to make linux internet sharing easy

echo 1 > /proc/sys/net/ipv4/ip_forward

iptables --flush
iptables -t nat --flush
iptables --delete-chain
iptables -t nat --append POSTROUTING --out-interface (your internet interface, ex. eth0) -j MASQUERADE
iptables --append FORWARD --in-interface your LAN interface, ex. eth1) -j ACCEPT
 
Old 07-04-2006, 05:16 AM   #6
teluguswan
Member
 
Registered: Oct 2005
Posts: 116

Rep: Reputation: 15
hai

Quote:
Originally Posted by dimis
echo 1 > /proc/sys/net/ipv4/ip_forward

iptables --flush
iptables -t nat --flush
iptables --delete-chain
iptables -t nat --append POSTROUTING --out-interface (your internet interface, ex. eth0) -j MASQUERADE
iptables --append FORWARD --in-interface your LAN interface, ex. eth1) -j ACCEPT
Hey what it will do what more i need to do please give the information

This will be very useful if i get more explanation for the above code.

Last edited by teluguswan; 07-04-2006 at 05:19 AM.
 
  


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
mandrake 10.1 sharing files and internet sharing xfiles_arram Linux - Networking 0 05-21-2005 02:22 PM
Apache2 Virtual Dynamic Hosts and defaults techrolla Linux - Networking 1 11-01-2004 04:01 PM
Virtual Hosts with Dynamic IP and dyndns.org lexton Linux - Networking 1 08-11-2004 04:06 AM
Cannot ping internet hosts nikhiljosh Linux - General 3 12-10-2003 09:43 AM
File sharing and internet sharing mullet Linux - Networking 1 10-14-2003 01:30 PM

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

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