修补s换向防火墙.pyIPFW到PF

2024-10-01 17:40:10 发布

您现在位置:Python中文网/ 问答频道 /正文

有人修好了吗防火墙.py'让sshuttle在Yosemite 10.10更新中使用PF而不是IPFW?在

https://github.com/apenwarr/sshuttle
https://github.com/apenwarr/sshuttle/blob/master/firewall.py

我四处寻找解决办法,但似乎什么也没有。我更喜欢rails,对python不太了解。我不知道从哪里开始做这个改变,希望社区能帮忙,或者希望有人已经修好了叉子。在


Tags: pyhttpsgithubmastercomblobrails防火墙
2条回答

更新:下面提到的拉取请求在一段时间后仍然失败。在

原始答案

Philip Thrasherhar完成了Fredrik Gustafsson's工作,并为sshuttle创建了一个pull request。在

我尝试了一下,并能让它正常工作(至少对于传出的连接)。我用了这个脚本:

#/bin/bash
sudo echo "Installing PyXAPI"
curl -O http://www.pps.univ-paris-diderot.fr/~ylg/PyXAPI/PyXAPI-0.1.tar.gz
tar -xzvf PyXAPI-0.1.tar.gz
cd PyXAPI-0.1
./configure
make
sudo make install
cd ..

echo "Installing autossh"
brew update
brew install autossh

echo "Getting sshuttle"
git clone https://github.com/pthrasher/sshuttle.git
cd sshuttle/src/
echo "Please add '`pwd`' to your path or run 'alias sshuttle=`pwd`/sshuttle'"

在这之后,我可以像往常一样运行它

^{pr2}$

摘自Tom Luff在Google Group中的评论:

There are a few forks of the repository that have begun work on supporting the new packet filter interface (pfctl). I've not actually tried any of them yet but it could be worth looking over them.

This seems to be the most recent: https://github.com/zabracks/sshuttle/

This also looks promising: https://github.com/jagheterfredrik/sshuttle

相关问题 更多 >

    热门问题