Hi everyone,
So I tried to install PiVPN in combination with my Pi-hole in order to block ads while using LTE. The vpn works perfectly with my phone while I'm on home wifi but it cannot connect when I'm on LTE or public wifi. Could somebody help me please ?
Here is my server.conf file:
dev tun
proto udp
port 1194
ca /etc/openvpn/easy-rsa/pki/ca.crt
cert /etc/openvpn/easy-rsa/pki/issued/server_8iRqzKNya57V8nf0.crt
key /etc/openvpn/easy-rsa/pki/private/server_8iRqzKNya57V8nf0.key
dh none
topology subnet
server 10.8.0.0 255.255.255.0
push "dhcp-option DNS 192.168.0.xx"
push "redirect-gateway def1"
client-to-client
keepalive 10 120
remote-cert-tls client
tls-version-min 1.2
tls-crypt /etc/openvpn/easy-rsa/pki/ta.key
cipher AES-256-CBC
auth SHA256
compress lz4
user nobody
group nogroup
persist-key
persist-tun
crl-verify /etc/openvpn/crl.pem
status /var/log/openvpn-status.log 20
status-version 3
syslog
verb 3
Here is my setupVars.conf file in Pihole folder:
piholeInterface=eth0
piholeInterface=tun0
WEBPASSWORD=xxxxxx3d60x32211b712cxxxxx940195347xxxxae4bx53ebfbxxxxxx
PIHOLE_INTERFACE=wlan0
IPV4_ADDRESS=192.168.0.xx/24
IPV6_ADDRESS=
PIHOLE_DNS_1=199.85.126.10
PIHOLE_DNS_2=199.85.127.10
QUERY_LOGGING=true
INSTALL_WEB=true
LIGHTTPD_ENABLED=1
Here is my 01-pihole.conf file:
addn-hosts=/etc/pihole/gravity.list
addn-hosts=/etc/pihole/black.list
addn-hosts=/etc/pihole/local.list
localise-queries
no-resolv
cache-size=10000
log-queries=extra
log-facility=/var/log/pihole.log
local-ttl=2
log-async
server=199.85.126.10
server=199.85.127.10
interface=tun0
listen-address=127.0.0.1
listen-address=192.168.0.xx
I have tried many ways that I found online but the VPN still ends up disconnecting when I'm on LTE
Thank you!