0

I'm trying to use CURL over a VPN rather than the public internet. To do this I am using this setting in the CURL request:

curl_setopt($ch, CURLOPT_INTERFACE, "eth0:01");

The value eth0:01 comes from:

DEVICE="eth0:1" 
IPADDR="1.2.3.4.5"

Located in /etc/sysconfig/network-scripts/ifcfg-eth0:1

The error I get back from CURL is:

Curl error: Could not resolve host: eth0:01; Name or service not known

Is there something else I need to do to allow this traffic over the VPN. I'm using a Linux server.

Your Answer

By clicking "Post Your Answer", you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.