LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-15-2003, 02:28 AM   #1
saturn_vk
Member
 
Registered: Feb 2003
Location: Sofia
Distribution: slackware
Posts: 104

Rep: Reputation: 15
a little problem with ip-masq


hello

i've made a little rc.firewall script with the help of the howto files, however, it does seem that the server (192....1) and the computer next to it, which i use (192.....2), which both use slack 9, seem to be getting the least amount of bandwith or %3 when someone else from the network is also using the internet. is it possible with iptables to specify preferred computers for bandwidth and/or specify a bandwidth limit for each ip?
 
Old 04-15-2003, 07:02 AM   #2
jharris
Senior Member
 
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 46
You can bandwidth limit if you wish. Take a look at http://www.tldp.org/HOWTO/Adv-Routing-HOWTO/index.html for details on how to do it, although it can get a bit scary in places. There's no reason why one host should monopolise the available bandwidth.

Do you see this all the time or only during large downloads or duting link saturation (either upstream or downstream)?

cheers

Jamie...
 
Old 04-15-2003, 08:39 AM   #3
saturn_vk
Member
 
Registered: Feb 2003
Location: Sofia
Distribution: slackware
Posts: 104

Original Poster
Rep: Reputation: 15
thx for the link, will read up on limiting it

now for the bandhogging. i dont know what link saturation is, but when the other computer is downloads, neither the server nor my main machine can get a lot of bandwidth (like i said, sometimes all i get are bites!).

ah and btw, is it possible to looks at what computers are downloading through the server. a friend of mine manages his own lan, but he uses windows (he wanted to use linux, but i didnt know then anything about masqing and could not help him), and wingate. wingate shows him what other computers are downloading. is that possible with iptables (or in linux for that matter)

thx for the help
 
Old 04-15-2003, 08:45 AM   #4
jharris
Senior Member
 
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 46
If you have IPTables' connection tracking enabled then you can look at /proc/net/ip_conntrac to see what connections are live, although this won't tell you exactly whats going on in terms of current throughput etc etc. You may want to server for conntrack-viewer.pl to make it a bit easier to read!

cheers

Jamie...
 
Old 04-15-2003, 01:54 PM   #5
saturn_vk
Member
 
Registered: Feb 2003
Location: Sofia
Distribution: slackware
Posts: 104

Original Poster
Rep: Reputation: 15
thx, that worked out nicely, but i have a question.

how do i stop a given connection? is there some sort of gui program for this, either X or preferably, ncurses? and can i see exactly what is being downloaded and how much speed does each connection take???

Last edited by saturn_vk; 04-15-2003 at 02:01 PM.
 
Old 04-15-2003, 02:01 PM   #6
jharris
Senior Member
 
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 46
A simple Google search found it for me...

http://www.google.com/search?hl=en&i...nntrack-viewer

Jamie...
 
Old 04-15-2003, 02:05 PM   #7
saturn_vk
Member
 
Registered: Feb 2003
Location: Sofia
Distribution: slackware
Posts: 104

Original Poster
Rep: Reputation: 15
yeah, i found it, dont even know why i posted the earlier comment.
sorry for that
 
  


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
qmail +qmail-qfilter + qmail-scanner-queue+qmail-user-masq.pl problem countcobolt Linux - Networking 0 07-08-2004 11:29 AM
linux masq server to linux masq server VPN rob_roman23 Linux - Networking 0 09-13-2003 09:54 AM
IP Masq ExEleven Linux - Networking 4 12-14-2002 06:36 AM
firewall script run at boot -> no masq, rerun manually -> masq worx Griffon26 Linux - Networking 2 06-24-2002 03:17 AM
IP MASQ / Routing Problem isbrower Linux - Networking 9 06-12-2001 05:58 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:17 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration