fuel-virtualbox/contrib/osx-nat-pf/osx-nat-pf.sh

5 lines
171 B
Bash
Executable File

#!/bin/sh
sudo pfctl -f ./osx-nat-pf.rules -e # starts pfctl and loads the rules from the osx-nat-pf.rules file
sudo sysctl net.inet.ip.forwarding=1 # enabe routing mode