VPN

From DD-WRT Wiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 16:50, 9 December 2005 (edit)
193.250.0.2 (Talk)
(Setting up PPTP VPN)
← Previous diff
Revision as of 21:55, 4 January 2019 (edit) (undo)
Ian5142 (Talk | contribs)
(Added language header.)
Next diff →
(44 intermediate revisions not shown.)
Line 1: Line 1:
-DoC_DaR says in thread: http://forum.bsr-clan.de/viewtopic.php?p=23607+{{Languages|VPN}}
-On DD-WRT, set pptp server to active, set IP of router (192.168.1.1),+A VPN (Virtual Private Network) is a virtual encrypted tunnel through an network (e.g. the internet) to connect a client (or whole network) to a server (or network). This allows you to not only use local network resources, such as printers or file servers, from anywhere you have an internet connection but also gives you a safe tunnel to browse the web through. Using a VPN you can browse web sites from a free access point at a hotel without worrying about others seeing your data. This is also a common way to bypass web content filters. Another solution for VPN would be setting up and configuring [[OpenVPN]] to better fit you needs
-set range for connections(192.168.1.20-30) example of ten client set up.+
-Set up Chap Secret ex. ( testmachine * password1234 *) All done here. +For more information see [http://en.wikipedia.org/wiki/VPN the Wikipedia article on VPNs]
-Goto PC and select Create new Connection in Network Connection area. +=Security=
-Select Connect to Network at my Workplace, select Virtual Private Connection, give it a name (home link). +
-Select what applies, dial up or LAN. Type WAN IP address (10.28.44.71) Must be static address. [loxza says that s/he has had luck with dynamic IP using dyndns.org]+Interesting article about strength and security of PKI today [http://www.pro-linux.de/news/1/20246/roeckx-aktueller-stand-der-kryptografie.html Pro-Linux (german)]
-Then at connect window, type name and password (testmachine password1234). Use no capital letters. +=VPN with PPTP=
 +On DD-WRT, go to the Administration->Services and set PPTP server to active, save the changes, then set the IP of router (192.168.1.1) for the server IP, and under Client IP(s) set a range for connections. (192.168.1.20-29 for example of a ten client set up)
-There is more info on winxp VPN at <[http://www.microsoft.com]> under PPTP VPN. +Under Chap Secret put in <code>username * password *</code> for example: <code>testmachine * password1234 *</code> ( The "*" are NOT a Placeholder, they must be there ! ) Use no capital letters. Also avoid using the # character since this breaks pptp. (This also applies to the router administration password that is included by default in the password file for pptpd.)
-Good Luck.+Now on your PC select Create new Connection under Control Panel -> Network Connections.
 +Select Connect to Network at my Workplace, then select Virtual Private Connection, give it a name (home link). Select what applies, dial up or LAN. Type the WAN IP address of your router, it must be static address or an address through DynDNS.org or the likes. (Thanks loxza)
 + 
 +Then at connect window, type the username and password you used earlier under Chap Secret (in our example: <code>testmachine:password1234</code>). Use no capital letters.
 + 
 +If you have followed the above steps and still cannot connect to the VPN, try forwarding the PPTP Port (1723) with TCP protocol to the LAN IP Address of your router (i.e. 192.168.1.1). Although it seems like this is a weird approach since you are using your router to forward to itself, it often times allows the VPN connection to suceed.
 + 
 +For more information on setting up a VPN connection in Windows XP see [http://support.microsoft.com/default.aspx?scid=kb;en-us;305550&sd=tech this article].
 + 
 +For other Windows versions see [http://support.real-time.com/windows/vpn/windows_98_vpn.html this link].
 + 
 +If you have Problems to see your Network Neighbourhood or Programs like VNC and Remote Desktop are not working, then you should Disable the Loopback Adapter under Administration -> Management in your Router. If this does not work, then it is also useful to edit your new VPN Connection under Properties -> TCP/IP -> Advanced -> and select Use Standard Gateway of the Remote Network. With this Option you are fully inside the Router's Network, all Traffic include your Surfing is then over your VPN Connect. With both Settings, you are fully integrated in the Remote LAN.
 + 
 +=See also=
 +* [[OpenVPN]]
 +* [[OpenVPN Remote Access by Static Key (The Simple Way)]]
 +* [[VPN (the easy way) v24+|VPN Server Setup]]
 +* [[Wireguard]] "is an extremely simple yet fast and modern VPN"
 + 
 +=External Links=
 +*[http://www.macdevcenter.com/pub/a/mac/2002/12/20/vpn.html VPN on Mac OSX]
 +*[http://www.overplay.net/blog/dd-wrt-overplay-pptp/ PPTP VPN to OverPlay.net]
 +*[https://ironsocket.com/setup/ddwrt-router Setup OpenVPN Connect, PPTP, L2TP and Smart DNS Proxy using DD-WRT with IronSocket]
 + 
 +[[Category:Tunneling]]

Revision as of 21:55, 4 January 2019


A VPN (Virtual Private Network) is a virtual encrypted tunnel through an network (e.g. the internet) to connect a client (or whole network) to a server (or network). This allows you to not only use local network resources, such as printers or file servers, from anywhere you have an internet connection but also gives you a safe tunnel to browse the web through. Using a VPN you can browse web sites from a free access point at a hotel without worrying about others seeing your data. This is also a common way to bypass web content filters. Another solution for VPN would be setting up and configuring OpenVPN to better fit you needs

For more information see the Wikipedia article on VPNs

Contents

Security

Interesting article about strength and security of PKI today Pro-Linux (german)

VPN with PPTP

On DD-WRT, go to the Administration->Services and set PPTP server to active, save the changes, then set the IP of router (192.168.1.1) for the server IP, and under Client IP(s) set a range for connections. (192.168.1.20-29 for example of a ten client set up)

Under Chap Secret put in username * password * for example: testmachine * password1234 * ( The "*" are NOT a Placeholder, they must be there ! ) Use no capital letters. Also avoid using the # character since this breaks pptp. (This also applies to the router administration password that is included by default in the password file for pptpd.)

Now on your PC select Create new Connection under Control Panel -> Network Connections. Select Connect to Network at my Workplace, then select Virtual Private Connection, give it a name (home link). Select what applies, dial up or LAN. Type the WAN IP address of your router, it must be static address or an address through DynDNS.org or the likes. (Thanks loxza)

Then at connect window, type the username and password you used earlier under Chap Secret (in our example: testmachine:password1234). Use no capital letters.

If you have followed the above steps and still cannot connect to the VPN, try forwarding the PPTP Port (1723) with TCP protocol to the LAN IP Address of your router (i.e. 192.168.1.1). Although it seems like this is a weird approach since you are using your router to forward to itself, it often times allows the VPN connection to suceed.

For more information on setting up a VPN connection in Windows XP see this article.

For other Windows versions see this link.

If you have Problems to see your Network Neighbourhood or Programs like VNC and Remote Desktop are not working, then you should Disable the Loopback Adapter under Administration -> Management in your Router. If this does not work, then it is also useful to edit your new VPN Connection under Properties -> TCP/IP -> Advanced -> and select Use Standard Gateway of the Remote Network. With this Option you are fully inside the Router's Network, all Traffic include your Surfing is then over your VPN Connect. With both Settings, you are fully integrated in the Remote LAN.

See also

External Links