net.ipv4.ip_forward
#!/bin/sh
sudo route change default -interface en0
sudo sysctl -w net.inet.ip.forwarding=1
sudo sysctl -w net.inet.ip.fw.enable=1
sudo ipfw delete 00110
sudo ipfw add 00110 fwd 127.0.0.1,8888 tcp from not me to any dst-port 80
sudo route change default -interface en2
sudo sysctl -w net.inet.ip.forwarding=1
sudo sysctl -w net.inet.ip.fw.enable=1
sudo ipfw delete 00110
sudo ipfw add 00110 fwd 127.0.0.1,8888 tcp from not me to any dst-port 80
[출처] http://www.charlesproxy.com/