LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   a little problem with ip-masq (https://www.linuxquestions.org/questions/linux-software-2/a-little-problem-with-ip-masq-55101/)

saturn_vk 04-15-2003 02:28 AM

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?

jharris 04-15-2003 07:02 AM

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...

saturn_vk 04-15-2003 08:39 AM

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

jharris 04-15-2003 08:45 AM

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...

saturn_vk 04-15-2003 01:54 PM

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???

jharris 04-15-2003 02:01 PM

A simple Google search found it for me...

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

Jamie...

saturn_vk 04-15-2003 02:05 PM

yeah, i found it, dont even know why i posted the earlier comment.
sorry for that :)


All times are GMT -5. The time now is 01:39 AM.