A Pen by Oliver Keller on CodePen.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This file is part of arduino-fsm. | |
// | |
// arduino-fsm is free software: you can redistribute it and/or modify it under | |
// the terms of the GNU Lesser General Public License as published by the Free | |
// Software Foundation, either version 3 of the License, or (at your option) | |
// any later version. | |
// | |
// arduino-fsm is distributed in the hope that it will be useful, but WITHOUT | |
// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
// FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# enable IP forwarding and firewall in the kernel | |
sudo sysctl -w net.inet.ip.forwarding=1 | |
sudo sysctl -w net.inet.ip.fw.enable=1 | |
#flush all FW rules | |
sudo pfctl -F all # or -F nat, for just the nat rules | |
cat ./nat-rules | |
nat on en0 from 192.168.1.0/24 to any -> ozelmacpro #put this line in a text file |