Raspberry Pi as a VPN Client

Need help configuring your VPN? Just post here and you'll get that help.
Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Post Reply
Chronos81
OpenVpn Newbie
Posts: 3
Joined: Thu Sep 20, 2018 10:09 pm

Raspberry Pi as a VPN Client

Post by Chronos81 » Thu Sep 20, 2018 10:19 pm

Hello,
I try to get protected access to WAN via my Keepsolid vpn service on my raspberry pi.
After I've done all the necessary steps I tried to execute my ovpn file. But it stucks always after the initialization sequence completed.
Normally a line where I have to enter my credentials should follow.

Konsole:
Thu Sep 20 23:55:02 2018 OpenVPN 2.4.0 arm-unknown-linux-gnueabihf [SSL (OpenSSL )] [LZO] [LZ4] [EPOLL] [PKCS11] [MH/PKTINFO] [AEAD] built on Jul 18 2017
Thu Sep 20 23:55:02 2018 library versions: OpenSSL 1.0.2l 25 May 2017, LZO 2.08
Thu Sep 20 23:55:02 2018 TCP/UDP: Preserving recently used remote address: [AF_I NET]162.243.134.252:1194
Thu Sep 20 23:55:02 2018 UDP link local: (not bound)
Thu Sep 20 23:55:02 2018 UDP link remote: [AF_INET]162.243.134.252:1194
Thu Sep 20 23:55:04 2018 [openvpn2.vpnunlimitedapp.com] Peer Connection Initiate d with [AF_INET]162.243.134.252:1194
Thu Sep 20 23:55:11 2018 Options error: option 'reneg-sec' cannot be used in thi s context ([PUSH-OPTIONS])
Thu Sep 20 23:55:11 2018 TUN/TAP device tun0 opened
Thu Sep 20 23:55:11 2018 do_ifconfig, tt->did_ifconfig_ipv6_setup=0
Thu Sep 20 23:55:11 2018 /sbin/ip link set dev tun0 up mtu 1500
Thu Sep 20 23:55:11 2018 /sbin/ip addr add dev tun0 local 10.200.0.58 peer 10.20 0.0.57
Thu Sep 20 23:55:11 2018 Initialization Sequence Completed



Do you have an idea? The only thing Keepsolid gave me was this ovpn no extra .crt or other files: (The xxxxxx are only placeholders)

client
dev tun
reneg-sec 0
persist-tun
persist-key
ping 5
ping-exit 30
nobind
comp-lzo no
remote-random
ns-cert-type server
route-metric 1
<ca>
-----BEGIN CERTIFICATE-----
XXXXXXXX
-----END CERTIFICATE-----
</ca>
<cert>

-----BEGIN CERTIFICATE-----
XXXXXXX
-----END CERTIFICATE-----
</cert>
<key>
-----BEGIN PRIVATE KEY-----
XXXXXXX
-----END PRIVATE KEY-----

</key>
remote fr-sbg.vpnunlimitedapp.com
proto udp

Chronos81
OpenVpn Newbie
Posts: 3
Joined: Thu Sep 20, 2018 10:09 pm

Re: Raspberry Pi as a VPN Client

Post by Chronos81 » Fri Sep 21, 2018 8:48 am

Hello,
I try to get protected access to WAN via my Keepsolid vpn service on my raspberry pi.
After I've done all the necessary steps I tried to execute my ovpn file. But it stucks always after the initialization sequence completed.
Normally a line where I have to enter my credentials should follow.

Do you have an idea? The only thing Keepsolid gave me was this ovpn no extra .crt or other files: (The xxxxxx are only placeholders)

1.
OVPN FILE:
server

client
dev tun
reneg-sec 0
persist-tun
persist-key
ping 5
ping-exit 30
nobind
comp-lzo no
remote-random
ns-cert-type server
route-metric 1
<ca>

XXXXXXXX

</ca>
<cert>


XXXXXXX

</cert>
<key>

XXXXXXX

</key>
remote fr-sbg.vpnunlimitedapp.com
proto udp


2.
Console Output:
Console
Thu Sep 20 23:55:02 2018 OpenVPN 2.4.0 arm-unknown-linux-gnueabihf [SSL (OpenSSL )] [LZO] [LZ4] [EPOLL] [PKCS11] [MH/PKTINFO] [AEAD] built on Jul 18 2017
Thu Sep 20 23:55:02 2018 library versions: OpenSSL 1.0.2l 25 May 2017, LZO 2.08
Thu Sep 20 23:55:02 2018 TCP/UDP: Preserving recently used remote address: [AF_I NET]162.xxx.xxx.xxx:1194
Thu Sep 20 23:55:02 2018 UDP link local: (not bound)
Thu Sep 20 23:55:02 2018 UDP link remote: [AF_INET]162.xxx.xxx.xxx:1194
Thu Sep 20 23:55:04 2018 [openvpn2.vpnunlimitedapp.com] Peer Connection Initiate d with [AF_INET]162.xxx.xxx.xxx:1194
Thu Sep 20 23:55:11 2018 Options error: option 'reneg-sec' cannot be used in thi s context ([PUSH-OPTIONS])
Thu Sep 20 23:55:11 2018 TUN/TAP device tun0 opened
Thu Sep 20 23:55:11 2018 do_ifconfig, tt->did_ifconfig_ipv6_setup=0
Thu Sep 20 23:55:11 2018 /sbin/ip link set dev tun0 up mtu 1500
Thu Sep 20 23:55:11 2018 /sbin/ip addr add dev tun0 local xx.xxx.x.xx peer xx.xx.x.x.xx
Thu Sep 20 23:55:11 2018 Initialization Sequence Completed


Here the program stops.

User avatar
TinCanTech
OpenVPN Protagonist
Posts: 5106
Joined: Fri Jun 03, 2016 1:17 pm

Re: Raspberry Pi as a VPN Client

Post by TinCanTech » Fri Sep 21, 2018 11:47 am

Chronos81 wrote:
Thu Sep 20, 2018 10:19 pm
But it stucks always after the initialization sequence completed.
That means openvpn is running.
Chronos81 wrote:
Thu Sep 20, 2018 10:19 pm
Normally a line where I have to enter my credentials should follow.
You have no option in your client file to enter any credentials.

You must contact the server administrator.

Chronos81
OpenVpn Newbie
Posts: 3
Joined: Thu Sep 20, 2018 10:09 pm

Re: Raspberry Pi as a VPN Client

Post by Chronos81 » Fri Sep 21, 2018 12:54 pm

Hello,
indeed it works now. I have done the wrong type of IP Check in previous attempts. I was irritated by the tutorial where the credentials were obligatory elements as well. So I assume the password settings are included in the configuration file.

Thank you for your quick and helpful answer.

Post Reply