Page 1 of 1

Open Internet access for the server

Posted: Fri Oct 09, 2020 7:09 pm
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

Re: Open Internet access for the server

Posted: Mon Oct 12, 2020 9:03 am
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?

Re: Open Internet access for the server

Posted: Mon Oct 12, 2020 5:36 pm
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.

Re: Open Internet access for the server

Posted: Mon Oct 12, 2020 7:22 pm
by admin
Ok, I thought I didn't understand.
I'm sorry but it's not possible because Android doesn't allow it.

Re: Open Internet access for the server

Posted: Wed Oct 14, 2020 5:22 pm
by orlov
Thanks for the answer.