?
Solved

Using cURL (PHP) to connect via a VPN

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

Secure Your WordPress Site: 5 Essential Approaches

WordPress is the web's most popular CMS, but its dominance also makes it a target for attackers. Our eBook will show you how to:

Prevent costly exploits of core and plugin vulnerabilities
Repel automated attacks
Lock down your dashboard, secure your code, and protect your users

Question has a verified solution.

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

Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
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…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
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

764 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