title: Corresponding rules in MacOS for this Iptables rules
body: <p>I need to give Internet access to a VM under Vmware fusion 7 in Host-Only mode. I know how to do it in Linux, with the following IPtables rules:</p>
  
  <pre><code>sysctl -w net.ipv4.ip_forward=1
  
  iptables -A FORWARD -o eth0 -i vboxnet0 -s 192.168.56.0/24 -m conntrack --ctstate NEW -j ACCEPT
  iptables -A FORWARD -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT
  iptables -A POSTROUTING -t nat -j MASQUERADE
  </code></pre>
  
  <p>But I can not find out how to do it in MacOS Sierra. Any help?</p>
  
  <p>Thanks in advance!</p>