Solved

Using cURL (PHP) to connect via a VPN

Posted on 2011-03-21
2
2,942 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

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

If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
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.

705 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