Solved

Using cURL (PHP) to connect via a VPN

Posted on 2011-03-21
2
2,680 Views
Last Modified: 2012-05-11
Hi Experts

Is it possible to use cURL (PHP) to connect via a VPN username and password at all?

I’m using the ip:port proxy functionality in cURL currently and would like something a bit more secure?

If you could provide me with a code example that would be great thanks.
0
Comment
Question by:wilson1000
2 Comments
 
LVL 17

Expert Comment

by:Dushan De Silva
ID: 35184885
0
 
LVL 32

Accepted Solution

by:
DrDamnit earned 500 total points
ID: 35187566
You could conceivably build a VPN client with php using sockets, but cURL isn't going to work. VPN relies not just on a single port, but also on an underlying protocol called Generic Route Encapsulation ( protocol 47), which cURL does not support.

So, while cURL could get the initial port open, it can't route traffic and actually talk to the VPN server.
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If your site has a few sections that need to be secure when data is transmitted between the server and local computer, such as a /order/ section for ordering or /customer/ which contains customer data, etc it would of course be recommended to secure…
Fine Tune your automatic Updates for Ubuntu / Debian
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question