QOS/tcb on linux for particular host on particular port
Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
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.
QOS/tcb on linux for particular host on particular port
Hi Guys,
can someone guide me how do I configure QOS/traffic shaping policy on mu linux box for one IP or network for one port?
e.g. I have my linux box which is at 192.168.50.2 and have other server 192.168.50.30. I need to restrict 192.168.50.30 to talk to 192.168.50.2 on port 25 with bandwidth 2mbit and burst rate 2.5mbit
Hi Guys,
can someone guide me how do I configure QOS/traffic shaping policy on mu linux box for one IP or network for one port?
e.g. I have my linux box which is at 192.168.50.2 and have other server 192.168.50.30. I need to restrict 192.168.50.30 to talk to 192.168.50.2 on port 25 with bandwidth 2mbit and burst rate 2.5mbit
can someone guide me pls?
Please see the LQ Rules about text-speak, and about not using it.
QOS is typically done on the network (router/switch), not on the system itself. That said, many of the SERVICES on your system can be configured to restrict access to a specific port/address, and may be able to do bandwidth throttling for that service as well. However, you don't tell us what service is running on port 25, or tell us what version/distro of Linux you're using. Without details, there isn't much we can tell you.
Well, I have postfix server running on port 25 and have CentOS 6.4. I just need to restrict bandwidth for port 25 and else should run fine.
Would it be possible for one port then?
Again, QOS is done on routers/switches, not on the server. There are four directives in Postfix that let you limit *THROUGHPUT*, but not bandwidth.
The initial_destination_concurrency, default_destination_concurrency_limit, local_destination_concurrency_limit, and default smtp_destination_concurrency_limit do those things, to a point, but that's not what you're asking. You might be able to use wondershaper to limit bandwidth, but that *IS NOT* QOS.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.