I'm looking for the way that the firewall(using pf in OS X Yosemite) of a user redirects every single packet to proxy(192.168.3.199:4001) automatically whenever getting the packet that is “originated from localhost” and toward DB(192.168.6.10: 1521)
So, I tried with this, but it doesn't work.
> sudo sysctl net.inet.ip.forwarding=1
> echo "
rdr pass proto tcp from any to 192.168.6.10 port 1521 -> 192.168.3.10 port 4002
" | sudo pfctl -ef -
I wish I could use the ifpw / iptables, but it should work on os x yosemite.
Please let me know if any one know the answer.
Thanks for reading,
Thanks in advance for your help
So, I tried with this, but it doesn't work.
> sudo sysctl net.inet.ip.forwarding=1
> echo "
rdr pass proto tcp from any to 192.168.6.10 port 1521 -> 192.168.3.10 port 4002
" | sudo pfctl -ef -
I wish I could use the ifpw / iptables, but it should work on os x yosemite.
Please let me know if any one know the answer.
Thanks for reading,
Thanks in advance for your help