Open Internet access for the server

Support requests about VPN Client Pro
Post Reply
orlov
Posts: 3
Joined: Fri Oct 09, 2020 6:49 pm

Open Internet access for the server

Post by orlov »

Hello, can I open Internet access for the server through VPN Client Pro?

Now I have:

client.ovpn

Code: Select all

client
dev tun
proto tcp
remote X.X.X.X 1194
resolv-retry infinite
nobind
user nobody
group nogroup
persist-key
persist-tun
remote-cert-tls server
cipher AES-256-CBC
auth SHA256
verb 3
key-direction 1
script-security 2
up /etc/openvpn/update-resolv-conf
down /etc/openvpn/update-resolv-conf
<ca>...</ca>
<cert>...</cert>
<key>...</key>
<tls-auth>...</tls-auth>
server.conf

Code: Select all

port 1194
proto tcp
dev tun
ca ca.crt
cert server.crt
key server.key                                   
dh dh.pem
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist /var/log/openvpn/ipp.txt
push "redirect-gateway def1 bypass-dhcp"
push "dhcp-option DNS 208.67.222.222"
push "dhcp-option DNS 208.67.220.220"
keepalive 10 120
tls-auth ta.key 0                      
cipher AES-256-CBC
auth SHA256
user nobody
group nogroup
persist-key
persist-tun
status /var/log/openvpn/openvpn-status.log
verb 3
explicit-exit-notify 0
With this configuration, requests from the server do not pass.

Code: Select all

ping 8.8.8.8 -I tun0
PING 8.8.8.8 (8.8.8.8) from 10.8.0.1 tun0: 56(84) bytes of data.

curl --interface tun0 -v ipinfo.io
* Rebuilt URL to: ipinfo.io/
*   Trying 216.239.38.21...
* TCP_NODELAY set
admin
Site Admin
Posts: 716
Joined: Fri Feb 15, 2019 4:04 pm
Contact:

Re: Open Internet access for the server

Post by admin »

With this configuration, requests from the server do not pass.

Code: Select all

ping 8.8.8.8 -I tun0
PING 8.8.8.8 (8.8.8.8) from 10.8.0.1 tun0: 56(84) bytes of data.

curl --interface tun0 -v ipinfo.io
* Rebuilt URL to: ipinfo.io/
*   Trying 216.239.38.21...
* TCP_NODELAY set
Did you use ping/curl commands on the client side, correct?
Can you ping the server side private ip address 10.8.0.1?
orlov
Posts: 3
Joined: Fri Oct 09, 2020 6:49 pm

Re: Open Internet access for the server

Post by orlov »

No, I called these commands on the server side. Server and client communicate and ping without problems. I need the server to access the Internet through the client.
admin
Site Admin
Posts: 716
Joined: Fri Feb 15, 2019 4:04 pm
Contact:

Re: Open Internet access for the server

Post by admin »

Ok, I thought I didn't understand.
I'm sorry but it's not possible because Android doesn't allow it.
orlov
Posts: 3
Joined: Fri Oct 09, 2020 6:49 pm

Re: Open Internet access for the server

Post by orlov »

Thanks for the answer.
Post Reply