Steps to Configure DD-WRT Router for a PPTP VPN Connection

Many VPN services support different routers, out of which, DD-WRT is a commonly supported type. A stepwise guide to configure this router for a PPTP VPN connection to be used through it is given below:

  • To start with the configuration, type in the address “192.168.1.1” in your internet explorer’s address bar. You might be prompted to enter the log in credentials to access the device’s settings.
  • After getting access to the settings page, move to the ‘services’ tab by clicking on its name and then move to the ‘VPN’ tab under this tab.
  • Under the ‘VPN’ tab, you will find an option named ‘PPTP Server’, which you need to enable to continue with the connection process.
  • You will get to see a detailed form for the configuration of the PPTP client on the router, which you need to fill in with the desired details.
  • In the field labeled ‘Server IP or DNS name’, enter the value of the VPN server that you wish to connect through this connection. You will find the server address in the welcome mail received from your VPN service provider or by contacting the customer support service.
  • In the field marked as ‘Remote Subnet Mask’, enter the value as 255.255.255.0.
  • In the next field labeled as ‘MPPE Encryption’, the value to be entered can be obtained from your VPN provider. You should copy and paste the value as such.
  • Next, you can see the fields marked ‘username’ and ‘password’, where you need to enter the log in details for the VPN service. You will get these details from your VPN provider, either in the welcome mail or you can also get these by contacting representatives present there to help customers.
  • After entering all the values as desired in the form, click on the ‘Apply Settings’ button at the bottom of the page to make all the changes take effect.
  • Now move to the ‘Administration’ tab by clicking on its name and then on the ‘Commands’ tab under it. Here you need to enter the commands for handling the connection on disconnection of your VPN connection, where you can choose either of the two options:
    If you wish to continue with your default internet provider, enter the following commands:
    “ #!/bin/sh”
    “sleep 120”
    “PPTPSERVER=$(/usr/sbin/nvram get pptpd_client_srvip)”
    “PPTPGWY=$(/usr/sbin/nvram get wan_gateway)”
    “/sbin/route add -host $PPTPSERVER gw $PPTPGWY dev vlan2”
    “/sbin/route del default”
    “/sbin/route add default gw $PPTPGWY metric 100”
    “/sbin/route add default dev ppp0”
    “iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE”
    If you wish to terminate internet traffic, use this script:
    “#!/bin/sh”
    “sleep 120”
    “PPTPSERVER=$(/usr/sbin/nvram get pptpd_client_srvip)”
    “PPTPGWY=$(/usr/sbin/nvram get wan_gateway)”
    “/sbin/route add -host $PPTPSERVER gw $PPTPGWY dev vlan2”
    “/sbin/route del default”
    “/sbin/route add default dev ppp0”
    “iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE”
  • Now click on the ‘save startup’ button to save your desired command and then click on the ‘reboot router’ button to restart the router and get connected to your VPN service using the router.

VPN Router

 

Thus, you are now able to configure your DD-WRT router to use your PPTP VPN service through it.

Rank Provider Name Starting Price Money Back Guarantee Visit Provider Site
ExpressVPN $8.32/month 30 Days visit expressvpn
2 Hidemyass $6.55/month 30 Days visit expressvpn
3 IPVanish $10.00/month 7 Days visit ipvanish
4 StrongVPN $21/ 3 months 7 Days visit strongvpn
5 VyprVPN $14.95/month 7 Days visit vyprvpn
VN:F [1.9.22_1171]
Rating: 0.0/10 (0 votes cast)

Leave a Reply

© 2017 Top Country-Wise VPN. All rights reserved. Site Admin · Entries RSS · Comments RSS
Designed by Countriesvpn.com