i'm trying to setup open vpn client to connect to tunnelbear vpn, and use it to do some anonymous requests in php with curl.
i'm doing that on a remote VPS, so if i do a mistake the vpn block me and i'm forced to reboot the vps.
actually my client config is like this :
config.ovpn
client
dev tun0
proto udp
nobind
ns-cert-type server
persist-key
persist-tun
reneg-sec 0
dhcp-option DNS 8.8.8.8
dhcp-option DNS 8.8.4.4
verb 3
auth-user-pass login.key
ca CACertificate.crt
cert UserCertificate.crt
key PrivateKey.key
remote fr.*.com 443
cipher AES-256-CBC
auth SHA256
keysize 256
keepalive 10 30
up vpnon.sh
down vpnoff.sh
script-security 2
i don't have any redirect gateway setup, because if i add it, my whole traffic go through the vpn and everything is blocked.
i just want to use the vpn for somes specials requests.
like :
whole traffic -> without vpn except for tun0 requests
i use this in php to use the vpn interface :
curl_setopt($ch, CURLOPT_INTERFACE, "tun0");
but the traffic seems to don't use the vpn cause the public ip of the curl request is not anonymous.
i'm very lost with all theses routes settings help me please