Sunday, February 04, 2007

windows can nat too!

some times ago, my friend, vanya kurmanov try to setup home network with internet access via vpn. first problem - router is windows xp machine. second - nat.

today i try to connect our mac os x notebooks to internet via usb modem (motorola surfboard SB5100), installed on windows machine.

resolution:

1. modify registry entry


HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters
IPEnableRouter=1


2. in cmd.exe


netsh routing ip nat install
netsh routing ip nat add interface "YOUR INTERNET/VPN CONNECTION NAME" full
netsh routing ip nat add interface "YOUR LOCAL INTERNET INTERFACE NAME" private