The following pictures illustrate the instruction methods of PPTP Client on OpenWRT machine and the local traffic will be routed to the remote gateway of the remote VPN server. In the following example, OpenWRT 12.09 is used.
1. Click [System]->[Software]. Before the installation of any packages, update the package list of OpenWRT
[attach]2952[/attach]
2. Install the package "ppp-mod-pptp"
[attach]2941[/attach]
3. Wait for a moment, it gives the following screen
[attach]2942[/attach]
4. Check installed packages which includes "ppp-mod-ppp"
[attach]2943[/attach]
5. Click [Network]->[Interface]. Go to the bottom and click "Add new interface"
[attach]2944[/attach]
6. Enter "vpn" in the field "Name of the new interface" and select "PPtP" in field "Protocol of the new interface". Press "Submit" to proceed to the next screen in 7.
[attach]2945[/attach]
7. Enter <VPN server name or ip> in the field "VPN Server". Enter <VPN user name> in the field "PAP/CHAP username". Enter <VPN password> in the field "PAP/CHAP password". Press "Save & Apply" to proceed.
[attach]2954[/attach]
8. Click "Advanced Settings" and note the check of "Bring up on boot". If it is changed, then press "Save & Apply" to proceed.
[attach]2947[/attach]
9. Click "Firewall Settings" and change the "Create/Assign firewall-zone" to "WAN". Press "Save & Apply" to proceed.
[attach]2948[/attach]
10. Choose [Network]->[Firewall]->[General Settings], check "vpn" added to the WAN. (You do not need to change everything).
[attach]2949[/attach]
11 Go to [Network]->[Interfaces] and check whether you have the following the screen
[attach]2950[/attach]
12. Reboot the router to make the PPTP client work for you
[attach]2951[/attach]
If you want the OpenWRT router to connect the remote VPN server router, then you have to put a tick at Step 8 of the first post. If you do not wnat, uncheck it.
General operations:
1. If you want to disconnect the VPN, then press "Stop" buttong in Step 11 of the first post. You have to stop the "WAN" port as well. After a few seconds, you can connect the Internet by pressing "Connect" button as again.作者: Skypeus 時間: 2013-11-17 20:32