Solved

Using cURL (PHP) to connect via a VPN

Posted on 2011-03-21
2
2,567 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:Dushan911
Comment Utility
0
 
LVL 32

Accepted Solution

by:
DrDamnit earned 500 total points
Comment Utility
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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
This article discusses four methods for overlaying images in a container on a web page
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

728 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now