Implement NAT for Linux and OS X

* Lint code
* Check for root priveleges