OSX Leopard - 限制共享互联网连接

发布于 2025-01-05 04:19:49 字数 1539 浏览 5 评论 0原文

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

沫尐诺 2025-01-12 04:19:49

我发现这个工具对于测试各种类型的连接非常有用。
慢速应用程序:http://slowyapp.com/

它有一些预设(56K、EDGE、3G、LTE 和 DSL)但允许您设置各种参数以将网络流量限制到指定的目标端口或接口。

我推荐大家都去尝试一下。

I found this very useful tool for testing various types of connection.
Slowy app: http://slowyapp.com/

It has some preset (56K, EDGE, 3G, LTE and DSL) but allows you to set various parameters to limit the network traffic to a specified destination port or interface.

I recommend everyone to try it.

金橙橙 2025-01-12 04:19:49

你很幸运 - 你的 OSX 版本应该仍然支持 IPFW;所以我们可以

 sudo ipfw pipe 1 config bw 15KByte/s
 sudo ipfw add 1 pipe 1 src-port 80

减少任何东西,在上面的例子中是端口 80。一定要让规则覆盖通过你的 Mac 的流量。请参阅http://intrarts.com/throttled.html
http://www.hanynet.com/waterroof/ 以获得更友好的工具。

超越 Leopard - 你想看看 pfctl。 http://blog.segment7.net/2009 /07/27/bandwidth-limiting-with-pf-and-altqhttp://www.openbsd.org/faq/pf/queueing.html 很好开始。请注意,默认情况下您不能使用 ALTQ(它不在默认的 OSX 内核中)。

You are in luck - your version of OSX should still support IPFW; so one can do

 sudo ipfw pipe 1 config bw 15KByte/s
 sudo ipfw add 1 pipe 1 src-port 80

to cut down anything, in above example for port 80. Be sure to make the rule cover the traffic going through your mac. See http://intrarts.com/throttled.html
or http://www.hanynet.com/waterroof/ for friendlier tools.

Beyond Leopard - you want to look at pfctl. http://blog.segment7.net/2009/07/27/bandwidth-limiting-with-pf-and-altq and http://www.openbsd.org/faq/pf/queueing.html are good starts. Note though that by default you cannot use ALTQ (it is not in the default OSX kernel).

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文