Linux - SecurityThis forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.
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.
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.
I have been battling with slow internet at a client. At first I thought squid was the culprit, then possible the load balancing on the 2 lines. After some more research it could be p2p traffic causing issues. Bellow is the TX, RX, and Total output on jnettop for eth0 and eth2
Eth0 : TX 4.85k/s, RX 22.9k/s Total 27.8k/s
Eth2 : TX 135k/s, RX 96.3k/s Total 231k/s
Noticing lots of high numbered ports for tcp and udp. http, https, smtp, pop3 should be majority of the traffic. Any recommendations of what I can use to block traffic that should not be on the network?
Thanks
Last edited by D0zer; 08-11-2014 at 02:15 AM.
Reason: Changed the Jenttop information
I'm still looking for ways to block peer to peer downloads, and for a way of shaping traffic for the local network. I had the adsl line fixed today and the internet is working like a dream. I updated squid and re configured it, browsing is much better now. Squid was not giving timeout errors when browsing. I suspect all the issues where because the one line was not working correctly and routing through the eth2 was not working correctly.
Thank's for the reply unSpawn. I haven't done much research into traffic shaping yet. I am hoping to spend some time today on it.
I view the jnettop utility, but I am still getting use to understanding it. Have you got any suggestions what log files I should be monitoring, and if I should turn any other's on? I tried to use ntop to get an overview of things, but I see it seems to have crashed again when I went to check it.
Quote:
Originally Posted by unSpawn
Did you analyse your logs / stats to find clues what to block? What research have you done wrt traffic shaping?
Thank's for the reply unSpawn. I haven't done much research into traffic shaping yet. I am hoping to spend some time today on it.
If you want to go the "easy" way search for the "wonder shaper" script (should be in LARTC, IIRC), if you want to understand the whole thing search for LARTC.
Quote:
Originally Posted by D0zer
I view the jnettop utility, but I am still getting use to understanding it. Have you got any suggestions what log files I should be monitoring, and if I should turn any other's on? I tried to use ntop to get an overview of things, but I see it seems to have crashed again when I went to check it.
Ntop can be somewhat unstable (I'm sure that's an understatement). It kind of depends where you check. If the gateway runs iptables you could just log new outbound connections ("-m state --state NEW") for say twentyfour hours and then see what remote ports get hit and how many times. If it doesn't run iptables but you can run tcpdump (or via SPAN) you could save packet captures and run them on your workstation through command line analysis tools or Wireshark. Do note that might take up lots of space so use a BPF filter. If it can't do none of that tell us what it can provide.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.