归档于 January, 2008
操作步骤:
- Start with a 1.1.1 or 1.1.2 jailbroken phone with Installer.app installed.
- Plug in your phone via USB to your computer.
- Download, extract, and run iBrickr Special 1.1.3 jailbreak edition ( http://devices.natetrue.com/iphone/ibrickr-jb113.zip )(ibrickr.exe in the archive).
- iBrickr will determine what firmware you are running on your phone and make sure you can run the update.
- [...]
1.启用 pf
在 rc.conf 中配置了 pf_enable=”YES” 就可以加载pf 模块了,当然你也可以编译到内核
pfctl(8)
-d Disable the packet filter.
-e Enable the packet filter.
-f /etc/pf.conf 载入 pf.conf 文件
-nf /etc/pf.conf 解析文件,但不载入
-Nf /etc/pf.conf 只载入文件中的 NAT 规则
-Rf /etc/pf.conf 只载入文件中的过滤规则
-sn 显示当前的 NAT 规则
-sr 显示当前的过滤规则
-ss 显示当前的状态表
-si 显示过滤状态和计数
-sa 显示任何可显示的
注意:要先写NAT再写过滤规则;规则是从上到下,全部读取完后再执行.
一个朋友的朋友帮忙写的简单例子:
ext_if="fxp0"
int_if="re0"
lo_if="lo0"
ext_ports="{21, 22, 80}"
int_ips="{ 192.168.0.1, 192.168.0.2}"
scrub in all
no rdr on $lo_if from any to any
block in all
pass in quick on $ext_if proto tcp from any to $ext_if port $ext_ports
pass in quick on $int_if from [...]

















