Connecting to VPN through cellular
-
- OpenVpn Newbie
- Posts: 8
- Joined: Wed May 05, 2021 9:55 pm
Connecting to VPN through cellular
I setup my VPN on a Raspberry Pi 4B and I can connect to it from my home network and also from cellular. The only problem is that i can't access the internet through the VPN on both my computer as well as my mobile devices. I tried setting up a NAT but that did not seem to make a difference. Does anyone here have a solution to my problem? Thanks in advance.
-
- OpenVPN Protagonist
- Posts: 11139
- Joined: Fri Jun 03, 2016 1:17 pm
Re: Connecting to VPN through cellular
Last edited by TinCanTech on Fri May 07, 2021 8:55 pm, edited 2 times in total.
-
- OpenVpn Newbie
- Posts: 8
- Joined: Wed May 05, 2021 9:55 pm
Re: Connecting to VPN through cellular
I think I used a script, I used some fairly simple guides.TinCanTech wrote: ↑Fri May 07, 2021 5:42 pmDid you setup the server yourself or did you use a script ?
Also, I looked at the link you sent but I could not find the server.conf for example...
Sorry I'm not able to find these things, this is my first time doing this...
-
- OpenVPN Protagonist
- Posts: 11139
- Joined: Fri Jun 03, 2016 1:17 pm
Re: Connecting to VPN through cellular
Please Start with the Howto and familiarise yourself with Openvpn at least a little.
Your server config file will probably be in /etc/openvpn ..
And please name the script.
Your server config file will probably be in /etc/openvpn ..
And please name the script.
-
- OpenVpn Newbie
- Posts: 8
- Joined: Wed May 05, 2021 9:55 pm
Re: Connecting to VPN through cellular
Alright I looked some stuff up and now I'm not sure whether I used a script or not. What I did was download openvpn on the pi, and after that I had to configure some things like UDP/TCP and so forth.
I have found the server.conf, thanks a bunch for the clear explanation.
Also, do I need to send you the whole openvnp.log? Because then I'd have a lot of ip addresses to delete... Is it correct that it is located in "/var/log/openvpn.log"?
I looked at the HOWTO extensively but I was not able to find the client files and did not understand how to get the server log...
Thanks again for the help and I'm sorry I'm not able to find those files...
I have found the server.conf, thanks a bunch for the clear explanation.
server
1
dev tun
2
proto udp
3
port 1194
4
ca /etc/openvpn/easy-rsa/pki/ca.crt
5
cert /etc/openvpn/easy-rsa/pki/issued/raspberrypi_7fd32f4a-3f71-4427-8993-ad459cd0832f.crt
6
key /etc/openvpn/easy-rsa/pki/private/raspberrypi_7fd32f4a-3f71-4427-8993-ad459cd0832f.key
7
dh none
8
ecdh-curve prime256v1
9
topology subnet
10
server
11
push "dhcp-option DNS 9.9.9.9"
12
push "dhcp-option DNS 149.112.112.112"
13
push "block-outside-dns"
14
push "redirect-gateway def1"
15
client-to-client
16
client-config-dir /etc/openvpn/ccd
17
keepalive 15 120
18
remote-cert-tls client
19
tls-version-min 1.2
20
tls-crypt /etc/openvpn/easy-rsa/pki/ta.key
21
cipher AES-256-CBC
22
auth SHA256
23
user openvpn
24
group openvpn
25
persist-key
26
persist-tun
27
crl-verify /etc/openvpn/crl.pem
28
status /var/log/openvpn-status.log 20
29
status-version 3
30
syslog
31
verb 3
Also, do I need to send you the whole openvnp.log? Because then I'd have a lot of ip addresses to delete... Is it correct that it is located in "/var/log/openvpn.log"?
I looked at the HOWTO extensively but I was not able to find the client files and did not understand how to get the server log...
Thanks again for the help and I'm sorry I'm not able to find those files...
-
- OpenVPN Protagonist
- Posts: 11139
- Joined: Fri Jun 03, 2016 1:17 pm
-
- OpenVpn Newbie
- Posts: 8
- Joined: Wed May 05, 2021 9:55 pm
Re: Connecting to VPN through cellular
Yep that's the one...

Could you also please explain how to get those files? I googled it as well without any good result.
-
- OpenVPN Protagonist
- Posts: 11139
- Joined: Fri Jun 03, 2016 1:17 pm
-
- OpenVPN Protagonist
- Posts: 11139
- Joined: Fri Jun 03, 2016 1:17 pm
Re: Connecting to VPN through cellular
Then I presume this is for your work.
You can either study the extensive documentation like everybody else does
or you can pay somebody to do it for you.
I am available for hire: tincantech <at> protonmail dot com