LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 02-08-2016, 11:15 AM   #1
blason
Member
 
Registered: Feb 2016
Posts: 122

Rep: Reputation: Disabled
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

can someone guide me pls?
 
Old 02-08-2016, 11:22 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,623

Rep: Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964
Quote:
Originally Posted by blason View Post
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.
 
Old 02-08-2016, 11:34 AM   #3
blason
Member
 
Registered: Feb 2016
Posts: 122

Original Poster
Rep: Reputation: Disabled
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?
 
Old 02-08-2016, 01:16 PM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,623

Rep: Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964
Quote:
Originally Posted by blason View Post
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.

http://www.mdash.net/traffic-shaping-using-wondershaper
 
  


Reply



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
Bandwidth Shaping using QoS priority by address/port/Vlans techproblem Linux - General 7 01-26-2014 02:42 PM
Linux TCP TCB matak Linux - Networking 5 08-11-2013 04:55 PM
How to Prioritize a port with QoS CComputer Linux - Networking 2 09-20-2012 06:42 AM
IPtables to map Virtual Host IP Port 22 on same physical host to alternate port edi_corey Linux - Networking 1 05-04-2012 11:08 AM
LXer: Migrating from shadow passwords to tcb in Linux LXer Syndicated Linux News 0 08-24-2006 09:54 AM

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

All times are GMT -5. The time now is 04:36 PM.

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