openbsd: limit network bandwidth

為{幸葍}努か 提交于 2019-12-11 20:01:32

问题


I have task:

"Develop the program on JavaEE(simple web application using Servlet/JSP techlogies), that will be run on 'OpenBSD 5.6. amd64' server and that provides interface for controlling network ports(up/down and limit speed)"

Up/Down is simple: ifup 'interface-name'/ifdown 'inteface-name'.

But with 'limit speed' i have some difficulties.

I want do this with shal command, but i can't find sample.

Only with third-party tools: Wondershaper, Trickle.

Related topics: 1, 2

Any ideas?

In advance thanks for help!


回答1:


On OpenBSD, this is done using the built-in packet filter, which also performs bandwidth control. I recommend starting with the pfctl(8) man page and reviewing the related ones as well.




回答2:


I found this topic, but he a little complex. Tell me please, it that what I need?



来源:https://stackoverflow.com/questions/33108069/openbsd-limit-network-bandwidth

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!