1
UnisandK 2016-04-09 19:19:36 +08:00
编译出来能用吗。。
|
3
chinvo 2016-04-09 19:26:33 +08:00
iptables 需要内核支持
|
4
yixiang 2016-04-09 19:27:46 +08:00
|
5
UnisandK 2016-04-09 19:28:22 +08:00
@luckypoem 我是说理论上,像这个人问的。。 http://lists.netfilter.org/pipermail/netfilter/2003-June/045010.html
> If I understand correctly, there are two parts of iptables, > kernel space and user space and what we use in the RPM is > only user space. It need the kernel space change compiled > into the kernel, e.g. Linux. If so, does anyone know if > the Mac OS kernel, based on BSD I believe, supports the user > space part of the iptables? iptables 不仅是有它自己的代码实现,它还依靠了内核特性啊。。 |
6
Zzzzzzzzz 2016-04-09 19:28:58 +08:00
iptables 是用来操作 netfilter 的, netfilter 是 linux kernel 里的......
|
7
auser 2016-04-09 19:33:10 +08:00 via iPhone
我可以帮你实现内核模块让你在 mac 上用 iptables 😃
|
9
luckypoem OP 不过这里 http://lists.netfilter.org/pipermail/netfilter/2003-June/045010.html ,说:“ You don't need to even 'get' ipfw on Mac OS X. It's there by default (at
/sbin/ipfw).”,我的 mac 上怎么没有 ipfw 命令?? yudeMacBook-Air:privoxy brite$ /sbin/ipfw -bash: /sbin/ipfw: No such file or directory yudeMacBook-Air:privoxy brite$ ipfw -bash: ipfw: command not found yudeMacBook-Air:privoxy brite$ |
13
yangxin0 2016-04-09 23:09:31 +08:00 via iPhone
iptables 基于 netfilter , Mac 内核都没得这个子系统
|