VPN client for DietPi Topic is solved

Have some feedback, questions, suggestions, or just fancy a chat? Pop it in here.
User avatar
Joulinar
Posts: 2091
Joined: Sat Nov 16, 2019 12:49 am

Re: VPN client for DietPi

Post by Joulinar »

ok but something seems to be wrong around line 17 on your conf file

Code: Select all

Unrecognized option or missing or extra parameter(s) in /etc/openvpn/dietpi.conf:17
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
przemko
Posts: 70
Joined: Sun Mar 15, 2020 5:40 pm

Re: VPN client for DietPi

Post by przemko »

That's it:

Code: Select all

setenv opt block-outside-dns # Prevent Windows 10 DNS leak
I have similar situation when Libreelec installed on Rpi4. I delete that line but don't help.
User avatar
Joulinar
Posts: 2091
Joined: Sat Nov 16, 2019 12:49 am

Re: VPN client for DietPi

Post by Joulinar »

can you check on OpenVPN Logs for further error messages.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
przemko
Posts: 70
Joined: Sun Mar 15, 2020 5:40 pm

Re: VPN client for DietPi

Post by przemko »

I cannot find any openvpn log file but I have in ssh terminal still apearing messeges:

Code: Select all

Broadcast message from root@DietPi (Tue 2020-03-24 15:38:38 CET):

Password entry required for 'Enter Private Key Password:' (PID 8108).
Please enter password with the systemd-tty-ask-password-agent tool:


Broadcast message from root@DietPi (Tue 2020-03-24 15:40:13 CET):

Password entry required for 'Enter Private Key Password:' (PID 8203).
Please enter password with the systemd-tty-ask-password-agent tool:


Broadcast message from root@DietPi (Tue 2020-03-24 15:41:48 CET):

Password entry required for 'Enter Private Key Password:' (PID 8230).
Please enter password with the systemd-tty-ask-password-agent tool:


Broadcast message from root@DietPi (Tue 2020-03-24 15:43:24 CET):

Password entry required for 'Enter Private Key Password:' (PID 8254).
Please enter password with the systemd-tty-ask-password-agent tool:

^C
dietpi@DietPi:/var/log$ ls
alternatives.log  apt  btmp  dietpi-move_userdata.log  dpkg.log  fail2ban.log  lastlog	letsencrypt  lighttpd  mysql  php7.3-fpm.log  private  proftpd	redis  wtmp
dietpi@DietPi:/var/log$ 
Broadcast message from root@DietPi (Tue 2020-03-24 15:44:59 CET):

Password entry required for 'Enter Private Key Password:' (PID 8299).
Please enter password with the systemd-tty-ask-password-agent tool:
I think it's because the first file dietpi.ovpn I create. That file was password protected. Second file with the same name dietpi.ovpn was without password but messeges still appear.
User avatar
Joulinar
Posts: 2091
Joined: Sat Nov 16, 2019 12:49 am

Re: VPN client for DietPi

Post by Joulinar »

probably you can create a new file with with complete different name. and to clean everything, do a reboot before.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
przemko
Posts: 70
Joined: Sun Mar 15, 2020 5:40 pm

Re: VPN client for DietPi

Post by przemko »

Can You tell if I will install PiVP or openvpn server on my Dietpi how it will work? Do I will get some different IP than my Public IP?
przemko
Posts: 70
Joined: Sun Mar 15, 2020 5:40 pm

Re: VPN client for DietPi

Post by przemko »

Joulinar wrote: Tue Mar 24, 2020 3:51 pm probably you can create a new file with with complete different name. and to clean everything, do a reboot before.
Can You tell me how to clean openvpn configuration? I delete file dietpi.conf and dietpi.ovpn
User avatar
trendy
Posts: 127
Joined: Tue Feb 25, 2020 2:54 pm

Re: VPN client for DietPi

Post by trendy »

Did you add password in the private key?
przemko
Posts: 70
Joined: Sun Mar 15, 2020 5:40 pm

Re: VPN client for DietPi

Post by przemko »

OK, I create new file and now it works. I see I use my VPN but now my ...ddns.net/nextcloud stop working. Can this work together?
User avatar
trendy
Posts: 127
Joined: Tue Feb 25, 2020 2:54 pm

Re: VPN client for DietPi

Post by trendy »

I am not familiar with ddns.net/nextcloud, but I suspect that you are redirecting all traffic to the VPN and these applications don't work when they are behind VPN. Is that so?
Post Reply