[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

Using cURL (PHP) to connect via a VPN

Posted on 2011-03-21
2
Medium Priority
?
3,190 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 2000 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

These days socially coordinated efforts have turned into a critical requirement for enterprises.
This article discusses four methods for overlaying images in a container on a web page
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
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.
Suggested Courses

656 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