Macos 本地源流量的pf-NAT
我正在尝试代理来自我的机器的22个流量,因此它将被代理/转发到远程服务器。这对ipfw来说很容易,但约塞米蒂只有pf 有人知道如何在OSX Yosemite上的本地(源于机器)流量上进行rdr吗 这不管用Macos 本地源流量的pf-NAT,macos,nat,osx-yosemite,Macos,Nat,Osx Yosemite,我正在尝试代理来自我的机器的22个流量,因此它将被代理/转发到远程服务器。这对ipfw来说很容易,但约塞米蒂只有pf 有人知道如何在OSX Yosemite上的本地(源于机器)流量上进行rdr吗 这不管用 # Custom pf Rules ####################################### # target_ip is the ip of which I would like traffic to be proxied target_ip = "10.0.0.2
# Custom pf Rules
#######################################
# target_ip is the ip of which I would like traffic to be proxied
target_ip = "10.0.0.2”
# porxy_ip is the proxy address
porxy_ip = "192.168.1.100”
rdr pass log on lo0 proto tcp from en0 to $target_ip port 80 -> $porxy_ip port 8080
pass out on en0 route-to lo0 inet proto tcp from en0 to $target_ip port 80 keep state
# End
有什么建议吗