Created
May 14, 2013 15:13
-
-
Save guerrerocarlos/5576721 to your computer and use it in GitHub Desktop.
To enable a computer to act as a wifi gateway in MacOSX
This file contains hidden or 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
#!/bin/sh | |
natd -interface tun0 | |
ipfw -f flush | |
ipfw add divert natd ip from any to any via tun0 | |
ipfw add pass all from any to any | |
sysctl -w net.inet.ip.forwarding=1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Source:
http://rodrigo.sharpcube.com/2010/06/20/using-and-sharing-a-vpn-connection-on-your-mac/