What's new

Closed How to create your own vpn using google cloud

Status
Not open for further replies.

donnie01

Honorary Poster
Established
Joined
Mar 25, 2017
Posts
284
Reaction
123
Points
164
Age
26
1) Create a VM Instance

Go to Main Menu > Compute > Compute Engine > VM Instances
Choose Ubuntu(any)
Choose the server you like
Make sure to check the two checkbox that allows HTTP and HTTPS traffic

First, update your system with apt-get update && apt-get dist-upgrade and reboot. This is optional, but recommended. *sudo reboot*

Next:
wget You do not have permission to view the full content of this post. Log in or register now. -O vpnsetup.sh
nano -w vpnsetup.sh
[Replace with your own values: YOUR_IPSEC_PSK, YOUR_USERNAME and YOUR_PASSWORD]
sudo sh vpnsetup.sh

Done.

Testing on IPAD 2:
  • Go to Settings -> General -> VPN.
  • Tap Add VPN Configuration....
  • Tap Type. Select L2TP and go back.
  • Tap Description and enter anything you like.
  • Tap Server and enter Your VPN Server IP.
  • Tap Account and enter Your VPN Username.
  • Tap Password and enter Your VPN Password.
  • Tap Secret and enter Your VPN IPsec PSK.
  • Make sure the Send All Traffic switch is ON.
  • Tap Done.
  • Slide the VPN switch ON.


[FIXED] l2tp-vpn server did not respond error [FIXED]
VPC Network > Firewall rules
edit > default-allow-http > Protocols and ports > tcp:80; udp:500-4500
edit >default-allow-https > Protocols and ports > tcp:443; udp:500-4500
OR
edit > default-allow-http > Protocols and ports > tcp:80; udp:500
edit >default-allow-https > Protocols and ports > tcp:443; udp:4500

hindi ko sure kung anung ginawa ko pero gumana. try to play with it

credits to raymundpogi for google cloud
I think pede din ito sa mga may VPS like digital ocean
patulong n lang tau sa mga master alam paganahin using with or w/out promo


Android Phone
  • Launch the Settings application.
  • Tap More... in the Wireless & Networks section.
  • Tap VPN.
  • Tap Add VPN Profile or the + icon at top-right of screen.
  • Enter anything you like in the Name field.
  • Select L2TP/IPSec PSK in the Type drop-down menu.
  • Enter Your VPN Server IP in the Server address field.
  • Enter Your VPN IPsec PSK in the IPSec pre-shared key field.
  • Tap Save.
  • Tap the new VPN connection.
  • Enter Your VPN Username in the Username field.
  • Enter Your VPN Password in the Password field.
  • Check the Save account information checkbox.
  • Tap Connect.


Windows 10 and 8.x


  • Right-click on the wireless/network icon in your system tray.
  • Select Open Network and Sharing Center.
  • Click Set up a new connection or network.
  • Select Connect to a workplace and click Next.
  • Click Use my Internet connection (VPN).
  • Enter Your VPN Server IP in the Internet address field.
  • Enter anything you like in the Destination name field, and then click Create.
  • Return to Network and Sharing Center. On the left, click Change adapter settings.
  • Right-click on the new VPN entry and choose Properties.
  • Click the Security tab. Select "Layer 2 Tunneling Protocol with IPsec (L2TP/IPSec)" for the Type of VPN.
  • Click Allow these protocols. Be sure to select the "Challenge Handshake Authentication Protocol (CHAP)" checkbox.
  • Click the Advanced settings button.
  • Select Use preshared key for authentication and enter Your VPN IPsec PSK for the Key.
  • Click OK to close the Advanced settings.
  • Click OK to save the VPN connection details.


Windows 7, Vista and XP

  • Click on the Start Menu and go to the Control Panel.
  • Go to the Network and Internet section.
  • Click Network and Sharing Center.
  • Click Set up a new connection or network.
  • Select Connect to a workplace and click Next.
  • Click Use my Internet connection (VPN).
  • Enter Your VPN Server IP in the Internet address field.
  • Enter anything you like in the Destination name field.
  • Check the Don't connect now; just set it up so I can connect later checkbox.
  • Click Next.
  • Enter Your VPN Username in the User name field.
  • Enter Your VPN Password in the Password field.
  • Check the Remember this password checkbox.
  • Click Create, and then Close.
  • Return to Network and Sharing Center. On the left, click Change adapter settings.
  • Right-click on the new VPN entry and choose Properties.
  • Click the Options tab and uncheck Include Windows logon domain.
  • Click the Security tab. Select "Layer 2 Tunneling Protocol with IPsec (L2TP/IPSec)" for the Type of VPN.
  • Click Allow these protocols. Be sure to select the "Challenge Handshake Authentication Protocol (CHAP)" checkbox.
  • Click the Advanced settings button.
  • Select Use preshared key for authentication and enter Your VPN IPsec PSK for the Key.
  • Click OK to close the Advanced settings.
  • Click OK to save the VPN connection details.
 
salamat sa tips on firewall rules, 2 lang kasi nakalagay dun sa akin http tcp:80 at https:443 , ineedit lang pala yun then mag-aadd. pag nagki-create ng new ayaw gumana eh. salamat din sa script installer nung l2tp. by the way gumagawa din ako ng openvpn script for low flash storage routers. check my thread na lang kung interested ka. :)
 
Hi donnie01
l2tp connects and works perfectly. I tried on my 4g router but it does not connect, I installed a script that installs squid3 dropbear stunnel ssh nginx and openvpn, with openvpn that adds the proxy server in client.ovpn works on the phone with my operator, the 4g modem does not use openvpn but use l2tp pap chap can not connect, where wrong?
 
Status
Not open for further replies.
Back
Top