如何将数据包redirect到本地pf中?

我试图redirect到内部networking的数据包到本地主机的防火墙

我写了这个规则,但是不起作用。

int_net = "{10.0.0.0/24}" ext_if = "{igb0}" int_if = "{igb1}" rdr on $ext_if proto tcp from any to $int_net port www -> 127.0.0.1 port 9999 

当我在浏览器上编写10.0.0.2时,它应该从防火墙得到一个testing页面。 但是就我不能那样做而言。

我在这里错过了什么?

我想你也想在这里“通过”

rdr 传递 $ ext_if proto tcp从任何到$ int_net端口www – > 127.0.0.1端口9999