是否可以配置 OS X VPN 以在 VPN 和本地接口之间分割流量?

发布于 2024-09-18 14:04:30 字数 1549 浏览 5 评论 0原文

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

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

发布评论

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

评论(3

世界如花海般美丽 2024-09-25 14:04:30

是的,这是可能的。首先,您必须在“设置”->“通过 VPN 连接发送所有流量”中取消选中标记。网络->您的 VPN ->先进的。

然后,您可以从终端使用“路由”来添加应通过 VPN 路由的特定主机。

sudo /sbin/route add -host pandora.com -interface ppp0

在此示例中,“pandora.com”是应通过 VPN 路由的主机,ppp0 是 VPN 网络接口的名称(ifconfig 显示了以下列表)网络接口)。

Yes, this is possible. First, you have to remove the checkmark from "Send all traffic over VPN connection" in Settings -> Network -> Your VPN -> Advanced.

Then, from the Terminal you can use "route" to add specific hosts that should be routed via your VPN.

sudo /sbin/route add -host pandora.com -interface ppp0

In this example, "pandora.com" is the host that should be routed via the VPN and ppp0 is the name of the VPN network interface (ifconfig shows you the list of network interfaces).

ˇ宁静的妩媚 2024-09-25 14:04:30

要使其也与 Pandora 应用程序一起使用,您可以使用

sudo /sbin/route add -host internal-tuner.pandora.com -interface ppp0

,完成后,您可以简单地执行以下操作

sudo /sbin/route delete -host internal-tuner.pandora.com -interface ppp0

To make it work also with the Pandora app, you can use

sudo /sbin/route add -host internal-tuner.pandora.com -interface ppp0

and when you finish, you can simply do

sudo /sbin/route delete -host internal-tuner.pandora.com -interface ppp0
宁愿没拥抱 2024-09-25 14:04:30

我没有足够的声誉来评论 kiteloop 的答案(截至今天得分 28)或 opoloko 的答案(截至今天得分 2)。我遇到了同样的问题(在 OS X 10.6.8 上收听 Pandora),现在通过 Pandora 应用程序收听 Pandora(我相信它比通过浏览器具有更好的音质,并且肯定使用更少的 CPU(大约 3% 的活动) Maskime

对 schlingel.me 的评论不会指向有关 Pandora IP 地址的详细帖子,而是指向一个不包含该帖子的摄影博客,谷歌搜索“schlingel + pandora”也不会显示当前位置。 。

另一方面,Opoloko 对 Pandora 应用程序的建议非常有效,

  1. 只需
  2. 在“设置”->“通过 VPN 连接发送所有流量”中关闭复选标记即可 您的 VPN -> 连接
  3. 的 VPN
  4. 打开
  5. 终端 将该
  6. 字符串包含在 opoloko 的命令中:sudo /sbin/route add -host internal-tuner.pandora.com -interface ppp0

附加说明:在这种情况下,您不需要涵盖一系列Pandora IP 只是internal-tuner.pandora.com 地址。不需要覆盖所有 CDN/等服务器,也不需要覆盖最初的internal-tuner.pandora.com。虽然我认为可以用 pandora.com 替换 internal-tuner.pandora.com,但这行不通。像 *.pandora.com 这样的简单通配符也不会在路由中工作。它返回错误地址警告。

要关闭 Pandora VPN,请使用 opoloko 的命令和正确的 ppp 接口编号:

sudo /sbin/route delete -host internal-tuner.pandora.com -interface ppp0

快乐聆听。非常感谢 opoloko,自 Last.FM 广播关闭以来,他为音乐爱好者提供了一个简单且可用的解决方案来解决这个棘手的问题。 Pandora 是唯一一个真正优秀的建议算法,它向听众介绍了新音乐。

I don't have reputation enough to comment on kiteloop's answer (score 28 as of today) or opoloko's answer (score 2 as of today). I was facing the same problem (listening to Pandora on OS X, 10.6.8) and am now listening to Pandora via the Pandora app (which has better sound quality I believe than via browser and certainly uses less CPU (about 3% in activity monitor).

The comment from Maskime to schlingel.me does not lead to a detailed post about Pandora's IP addresses but rather to a photography weblog which does not include that post. Neither does Googling "schlingel + pandora" bring up a current location. It's a dead end.

On the other hand, Opoloko's suggestion for the Pandora app works brilliantly.

  1. Download and install the Pandora OS X app.
  2. Just turn off the checkmark from "Send all traffic over VPN connection" in Settings -> Network -> Your VPN -> Advanced.
  3. Apply changes.
  4. Connect your VPN.
  5. Open terminal.
  6. Run ifconfig.
  7. Look for ppp to discover the exact location of the VPN interface whatever the ppp address is.
  8. Include that string in opoloko's command: sudo /sbin/route add -host internal-tuner.pandora.com -interface ppp0

Additional Notes: In this case you don't need to cover a range of Pandora IP's just the internal-tuner.pandora.com address. All CDN/etc servers don't need to be covered either just the initial internal-tuner.pandora.com. While I thought one could replace internal-tuner.pandora.com with pandora.com this won't work. Neither will a simple wildcard like *.pandora.com work in route. It returns a bad address warning.

To turn off the Pandora VPN, use opoloko's command with the correct ppp interface number:

sudo /sbin/route delete -host internal-tuner.pandora.com -interface ppp0

Happy listening. Huge thanks to opoloko who offered a simple and usable solution to what is a keen issue for music lovers since Last.FM radio went down. Pandora is the only really good suggestion algorithm left standing and which introduces a listener to new music.

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