| 1 | To redirect all traffic from VPN clients through the VPN server, you have to configure NAT. |
| 2 | |
| 3 | At this step I assume that you have OpenVPN configured properly, if not please refer to the manual [http://community.openvpn.net/openvpn/wiki/Easy_Windows_Guide]. |
| 4 | |
| 5 | '''1. Enabling IP forwarding''' |
| 6 | Press Windows+R and type: |
| 7 | {{{ |
| 8 | regedit.exe |
| 9 | }}} |
| 10 | Now navigate to the: |
| 11 | {{{ |
| 12 | HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\Tcpip\Parameters |
| 13 | }}} |
| 14 | and set |
| 15 | {{{ |
| 16 | IpEnableRouter |
| 17 | }}} |
| 18 | to 1 |
| 19 | |
| 20 | '''2. Installing role''' |
| 21 | Open ServerManager and click on Install role[[BR]] |
| 22 | |
| 23 | [[Image(http://www.windowsnetworking.com/img/upl/image0081260538266451.jpg)]] |
| 24 | |
| 25 | [[BR]] |
| 26 | Click Next [[BR]] |
| 27 | [[Image(http://www.windowsnetworking.com/img/upl/image0101260538400669.jpg)]] |
| 28 | [[BR]] |
| 29 | |
| 30 | Wait till Windows complete instaling new role. |
| 31 | |
| 32 | '''3. Configuring NAT''' |
| 33 | Open Routing and Remote access console from Administrative Tools, right click on your server local name and select |
| 34 | {{{ |
| 35 | Configure and Enable Routing and remote Access |
| 36 | }}} |
| 37 | In a wizard click on Network address translation(NAT)[[BR]] |
| 38 | [[Image(http://www.windowsnetworking.com/img/upl/image0121260538400669.jpg)]] |
| 39 | [[BR]] |
| 40 | In next step select your network card that have access to internet and click Next.[[BR]] |
| 41 | |
| 42 | Last thing to do it to select VPN Tap-win32 network card and finish wizard. |
| 43 | |
| 44 | NAT should be working from now. |