问题标签 [ipfw]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
2 回答
5352 浏览

windows - Dummynet 安装失败:my_socket 失败 2,无法与内核模块通信(Windows 7 X64)

我正在尝试使用此处提供的软件包在 64 位版本的 Windows 7 上安装 IPFW

我能够使用此堆栈溢出答案ipfw+dummynet中提供的说明成功地将服务添加到我的网络适配器

但是,在执行ipfw.exe包中提供的内容时,我遇到以下错误:

my_socket 失败 2,无法与内核模块通信

需要帮助以克服此错误,以便 ipfw 可以从命令行成功运行。

0 投票
0 回答
236 浏览

android - 将 Mac 设置为 wifi 热点以运行移动宽带测试用例

我需要设置一个环境,以便为没有移动数据计划的 iOS 和 Android 设备模拟移动网络互联网连接。我在想我可以使用我的 MAC 设置一个 wifi 热点,然后使用 ipfw 来限制数据连接以模拟 3G 网络。我已经设法通过我的系统偏好设置中的“Internet 共享”设置来设置我的 MAC。我可以完美地连接我的 iPhone 4 和我的三星 Galaxy S3,并且可以毫无问题地打开网页。但是,我在 ipfw 方面遇到了麻烦。我编写了一个 linux 脚本来设置管道,但是当我运行该程序时,我的智能手机无法再连接到互联网。我认为这可能是路由问题,但我不确定我错过了什么。这是我的脚本的样子:

有任何想法吗?

0 投票
1 回答
14830 浏览

java - 如何在 os x mavericks 中将端口 80 转发到 8080

我安装了 Mac OS X Mavericks (10.9),并且正在使用Jetty发布网络应用程序。我打字

(我的主机文件有127.0.0.1 abc.com

但 Safari 无法连接到 abc.com。它在 OS X 10.8 中运行。为什么?

0 投票
1 回答
1582 浏览

macos - OS X 中 (ipfw) 的等效命令取自 (iptables)

我在我的 DD-WRT 路由器上使用它。我需要将传入/传出 TTL 从 1 增加到 128。如何使用 (ipfw) 在 OS X 中使用此命令?

iptables -t mangle -I PREROUTING -i `get_wanface` -j TTL --ttl-set 128

iptables -t mangle -I POSTROUTING -o `get_wanface` -j TTL --ttl-set 128

0 投票
1 回答
2421 浏览

add - FREEBSD IPFW - 添加/删除规则

感谢您的存在并使我的生活更轻松:)。我需要你的帮助,拜托。

我需要创建一个腻子函数才能像这样工作。

putty 中的一个命令:

这将在 /etc/rules.ipfw 中添加以下行:

putty 中的一个命令:

这将在 /etc/rules.ipfw 中搜索具有特定 [IP] 的行并将其删除。要删除的示例行

谢谢你。

0 投票
1 回答
2829 浏览

osx-mavericks - Set up port forwarding for SSLSplit (Supports ipfw fwd only) on OSX Mavericks

I am trying to set up SSLSplit on OSX Mavericks according to this tutorial.

I got it working on a Ubuntu Machine, so I know SSLSplit works just fine and the issue is only with packets not being forwarded to the port on which SSLSplit is listening on Mavericks. On the SSLSplit homepage it says :

SSLsplit currently supports the following operating systems and NAT engines:

Mac OS X: ipfw fwd

so I try to set up port forwarding using the following two commands, but I read somewhere that ipfw has been dropped in OSX 10.9 Mavericks.

I even tried this in OSX 10.8.5, the commands don't give any error on either operating systems but traffic is not being forwarded.

I also tried the pfctl approach as mentioned here. But with this method, I don't think SSLSplit is too happy, since I think the packet loops around, I get too many files open error and SSLSplit crashes. Can SSLSplit work with pfctl? Does it really care how traffic is forwarded to the port on which it is listening? Or does the error occur because of some misconfiguration on my part?

Has someone been able to use SSLSplit on OSX Mavericks? Can you guide me with the port forwarding part? It would be better if you could explain the entire process.

I am not using tools such as mitmproxy since I have to decrypt the SSL Layer over non-HTTP Traffic.

0 投票
1 回答
294 浏览

networking - 在 Windows 8.1 中安装 dummynet ipfw 后无法连接到 Internet

最近我刚刚在 Windows 8.1 中完成了 dummynet ipfw 的安装。我需要先停用数字签名要求,然后才能安装它。但安装后,桌面右下角显示测试模式9600。在我删除它之后,我无法连接到互联网,直到我从我的网络适配器卸载 dummynet。我想在 dummynet ipfw 工作,但似乎不可能。有什么解决办法吗?

谢谢

0 投票
1 回答
1728 浏览

freebsd - FreeBSD ipfw & natd 重定向地址

我需要一点帮助。

我的 rc.conf:

我的 natd.conf:

我的 ipfw.rules:

一切正常,期望进入 74.92.224.227 不会进入 172.27.240.44 它最终在网关上正常但不在 LAN 上。

thx 在此先感谢。

大学教师

0 投票
1 回答
1273 浏览

firewall - IPFW - 默认的规则集

我试图将IPFW默认设置为打开,所以我做了firewall_type="open",但是当我做“ipfw flush”时,它只添加了一个“deny ip any from any”规则。它应该是“允许任何来自任何的ip”吗?我的意思是,如果我刷新规则,它应该只设置为默认规则集,还是自动添加该规则?

另一个问题。如果我重新启动防火墙执行“service ipfw restart”,它会添加整个打开的规则集,但它的最后两个规则是:

如果 firewall_type="open",它应该是“65535 allow ip from any to any”,没有最后一条规则吗?

0 投票
2 回答
1199 浏览

windows - 使用 PowerShell 自动安装 DummyNET 驱动程序

tl;博士尝试使用 PowerShell / (Set|Get)-NetAdapterBinding / PnPUtil / nvspbind 自动化驱动程序/适配器绑定/适配器服务

我一直在探索在 Windows Server 2012 和 2012 R2 的网络适配器上自动安装dummynet驱动程序。

我需要自动化这些步骤:

我相信我可以使用PnPUtil实用程序将驱动程序的 INF 文件添加到驱动程序存储中。

我探索了 (Set|Get)-NetAdapterBinding powershell 模块,但似乎无法让驱动程序正确注册。

这是我通过手动方法安装 Get-NetAdapterBinding 后的结果:

这是我尝试使用为该模块记录的参数设置 NetAdapterBinding:

在尝试找出最好的方法时,我还遇到了nvspbind实用程序,并尝试使用此工具添加驱动程序。不幸的是,我似乎也无法将其绑定到适配器。该实用程序只是不断吐出它的使用信息。

使用 PowerShell 解决此问题的最佳方法是什么?