PHP mail data via VPN

I need to connect to a web service that is behind of a VPNthrough PHP. My server is Debian Linux (Squeeze).

  • Can this be done via PHP on Linux?
  • Is it risky to do this, if possible? (When the VPN connection freezes, etc., whether the operating system is working or any other situation).
  • I have only one network card, so I really wonder if it’s possible to support the server online for ordinary users, and "send data over a completed VPN connection in the background."

Although my question seems conceptual, any special help is also welcome.

Server OS : Debian Linux (x64) compression
Web server : Apache HTTP
PHP version : 5.3
Framework : Symfony 1.4

+5
source share
2 answers

VPNs are at the network level below PHP, PHP does not know and does not care that the connection is connected to a VPN or a regular connection. It is processed by the network stack.

(, IPSEC), PHP , , PHP IP-, VPN. , , PHP. , VPN , jderda exec() . (IPSEC).

, :

  • , , PHP , - PPTP exec() , IPSEC
  • VPN- /, PHP .
  • , .
+7

PHP VPN - . .

VPN-, , , exec() . ( , , IP-), PHP .

+3

All Articles