OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • Archive »
  • 17.1 Legacy Series »
  • [SOLVED] Bugs in OpenVpn Client part 17.1
« previous next »
  • Print
Pages: [1]

Author Topic: [SOLVED] Bugs in OpenVpn Client part 17.1  (Read 2477 times)

michaelvv

  • Newbie
  • *
  • Posts: 5
  • Karma: 1
    • View Profile
[SOLVED] Bugs in OpenVpn Client part 17.1
« on: July 04, 2017, 11:11:04 am »
I have had a hard time to setup my VPN provider , using this excellent guide from M4DM4NZ
https://forum.opnsense.org/index.php?topic=4979.msg19771#msg19771.

Bug 1)

The problem was that every time I try too do a reboot, my VPN Client connection didn't came up.
On a working system I had these files in /var/etc/openvpn

-rw-------  1 root  wheel  2292 Jul  3 18:07 client1.ca
-rw-------  1 root  wheel  2392 Jul  3 18:07 client1.cert
-rw-------  1 root  wheel   705 Jul  3 18:07 client1.conf
-rw-------  1 root  wheel     3 Jul  3 18:07 client1.interface
-rw-------  1 root  wheel  3322 Jul  3 18:07 client1.key
srwxrwxrwx  1 root  wheel     0 Jul  3 19:09 client1.sock
-rw-------  1 root  wheel   657 Jul  3 16:07 client1.tls-auth
-rw-------  1 root  wheel    12 Jul  3 18:07 client1.up

After a Reboot

-rw-------  1 root  wheel  2292 Jul  4 10:57 client1.ca
-rw-------  1 root  wheel  2392 Jul  4 10:57 client1.cert
-rw-------  1 root  wheel   705 Jul  4 10:57 client1.conf
-rw-------  1 root  wheel     3 Jul  4 10:57 client1.interface
-rw-------  1 root  wheel  3322 Jul  4 10:57 client1.key
srwxrwxrwx  1 root  wheel     0 Jul  4 10:57 client1.sock
-rw-------  1 root  wheel   618 Jul  4 10:57 client1.tls-auth
-rw-------  1 root  wheel    12 Jul  4 10:57 client1.up

The client1.tls-auth got modified, and openvpn is not working anymore.

If I copy the original 657 Bytes back openvpn is working again.

Bug 2)

VPN: OpenVPN: Clients , If I open my Configuration and save it again. It make this
618 Bytes file does not work.

Took me a lot of time to figure out  :)



« Last Edit: July 04, 2017, 01:32:41 pm by michaelvv »
Logged

michaelvv

  • Newbie
  • *
  • Posts: 5
  • Karma: 1
    • View Profile
Re: Bugs in OpenVpn Client part 17.1
« Reply #1 on: July 04, 2017, 11:28:03 am »
This might be the problem.

If I Add a CR+LF to the 618 bytes file client1.tls-auth so it's now 620 bytes.
It works. A LF only 619 bytes is not enought.

 
Logged

michaelvv

  • Newbie
  • *
  • Posts: 5
  • Karma: 1
    • View Profile
Re: [SOLVED] Bugs in OpenVpn Client part 17.1
« Reply #2 on: July 04, 2017, 01:36:08 pm »
Entirely my own fault.

Now I can reboot/save without any issues...
Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 13679
  • Karma: 1176
    • View Profile
Re: [SOLVED] Bugs in OpenVpn Client part 17.1
« Reply #3 on: July 04, 2017, 03:15:56 pm »
Hi there,

Not entirely following. What was the reason? Is there anything we can do to prevent it in the future?  :)


Cheers,
Franco
Logged

  • Print
Pages: [1]
« previous next »
  • OPNsense Forum »
  • Archive »
  • 17.1 Legacy Series »
  • [SOLVED] Bugs in OpenVpn Client part 17.1
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2023 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2