OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • Archive »
  • 23.7 Legacy Series »
  • OpenVPN CSO what happened to custom_options
« previous next »
  • Print
Pages: 1 [2] 3 4

Author Topic: OpenVPN CSO what happened to custom_options  (Read 11903 times)

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 17709
  • Karma: 1618
    • View Profile
Re: OpenVPN CSO what happened to custom_options
« Reply #15 on: August 10, 2023, 02:45:12 pm »
Yes, but you need to put the correct subnet size.


Cheers,
Franco
Logged

teo88

  • Newbie
  • *
  • Posts: 19
  • Karma: 0
    • View Profile
Re: OpenVPN CSO what happened to custom_options
« Reply #16 on: August 14, 2023, 08:28:56 am »
Hello,

had the following directives under OpenVPN - Clients - Advanced:

Code: [Select]
pull-filter ignore "ifconfig-ipv6"
pull-filter ignore "route-ipv6"

and under OpenVPN - Servers - Advanced:

Code: [Select]
allow-compression no

How to get now the directives after the Update again as the custom options are missing?
Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 17709
  • Karma: 1618
    • View Profile
Re: OpenVPN CSO what happened to custom_options
« Reply #17 on: August 14, 2023, 12:16:44 pm »
@teo88

Please use the old GUI for backwards compatibility.

@muchacha_grande

https://github.com/opnsense/core/commit/605042ada8
https://github.com/opnsense/core/commit/0a4eacfb6ab

# opnsense-patch 605042ada8 0a4eacfb6ab

(mssfix latches on to fragment if set as per OpenVPN documentation)

@broesel68

After going through the documentation, bug reports and performance guides I think the server side should not matter on modern FreeBSD. So you might look at push requirements only. Can you try to verify? The goal is to remove obsolete/defunct things and sndbuf/rcvbuf looks a bit like it (at least from the OPNsense side).


Cheers,
Franco
« Last Edit: August 15, 2023, 02:46:05 pm by franco »
Logged

teo88

  • Newbie
  • *
  • Posts: 19
  • Karma: 0
    • View Profile
Re: OpenVPN CSO what happened to custom_options
« Reply #18 on: August 14, 2023, 03:34:35 pm »
Thanks, Franco

What is the Command to revert back to 23.1.11 Gui?

Code: [Select]
opnsense-revert -r
Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 17709
  • Karma: 1618
    • View Profile
Re: OpenVPN CSO what happened to custom_options
« Reply #19 on: August 15, 2023, 08:49:32 am »
Reverting is not possible between major versions.


Cheers,
Franco
Logged

teo88

  • Newbie
  • *
  • Posts: 19
  • Karma: 0
    • View Profile
Re: OpenVPN CSO what happened to custom_options
« Reply #20 on: August 15, 2023, 12:39:35 pm »
Thx, i was understanding to revert back, as you mentioned "use old GUI for backwards compatibility"

How do i do that?
Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 17709
  • Karma: 1618
    • View Profile
Re: OpenVPN CSO what happened to custom_options
« Reply #21 on: August 15, 2023, 02:31:34 pm »
Reinstall with config import.


Cheers,
Franco
Logged

muchacha_grande

  • Full Member
  • ***
  • Posts: 219
  • Karma: 19
    • View Profile
Re: OpenVPN CSO what happened to custom_options
« Reply #22 on: August 15, 2023, 02:35:50 pm »
@franco, I tried patch 0a4eacfb6ab, but when I use the command opnsense-patch 0a4eacfb6ab it shows:

root@router:~ # opnsense-patch 0a4eacfb6ab
Fetched 0a4eacfb6ab via https://github.com/opnsense/core
1 out of 3 hunks failed while patching opnsense/mvc/app/models/OPNsense/OpenVPN/OpenVPN.php

It appears to haven't been applied.

Also can't find the intended options on the gui.

Cheers
Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 17709
  • Karma: 1618
    • View Profile
Re: OpenVPN CSO what happened to custom_options
« Reply #23 on: August 15, 2023, 02:46:44 pm »
Sorry, another fix was preventing it to apply. Try these two:

# opnsense-patch 605042ada8 0a4eacfb6ab

Added options are at the bottom under "Advanced".


Cheers,
Franco
Logged

teo88

  • Newbie
  • *
  • Posts: 19
  • Karma: 0
    • View Profile
Re: OpenVPN CSO what happened to custom_options
« Reply #24 on: August 16, 2023, 08:58:49 am »
Quote from: franco on August 15, 2023, 02:31:34 pm
Reinstall with config import.


Cheers,
Franco

Is there no possibility to install a patch to get the fields back, without complete reinstall?
Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 17709
  • Karma: 1618
    • View Profile
Re: OpenVPN CSO what happened to custom_options
« Reply #25 on: August 16, 2023, 09:12:18 am »
No, the whole component was replaced to provide API capabilities.

We are discussing file-based overrides that fit our advanced configuration policy at the moment. But that tends to be messy since common name and server combinations can cause quite a number of files to be added (users alone could be many and it's quite dynamic compared to just changing configuration options on an instance).


Cheers,
Franco
Logged

gdur

  • Full Member
  • ***
  • Posts: 124
  • Karma: 2
    • View Profile
Re: OpenVPN CSO what happened to custom_options
« Reply #26 on: August 16, 2023, 04:08:54 pm »
Quote from: franco on August 10, 2023, 02:45:12 pm
Yes, but you need to put the correct subnet size.


Cheers,
Franco

Assuming you meant to modify "IPv4 Tunnel Network" setting in the clients option I have changed it to 192.168.x.x but it has no effect even after restarting the instance. I got connected though but with a different IP address.
Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 17709
  • Karma: 1618
    • View Profile
Re: OpenVPN CSO what happened to custom_options
« Reply #27 on: August 16, 2023, 04:19:11 pm »
Hmm, I'm not aware that it doesn't work all the time so I'm unable to help directly in this particular case.


Cheers,
Franco
Logged

gdur

  • Full Member
  • ***
  • Posts: 124
  • Karma: 2
    • View Profile
Re: OpenVPN CSO what happened to custom_options
« Reply #28 on: August 16, 2023, 08:08:02 pm »
Has anyone found a solution to get pre-defined fixed IP addresses?
Logged

PIv0

  • Newbie
  • *
  • Posts: 19
  • Karma: 2
    • View Profile
Re: OpenVPN CSO what happened to custom_options
« Reply #29 on: August 21, 2023, 04:41:06 pm »
Quote from: franco on August 10, 2023, 02:45:12 pm
Yes, but you need to put the correct subnet size.


Cheers,
Franco

If on version 23.1.11 we used the line

ifconfig-push 192.168.yyy.xxx 255.255.255.0

Now in the IPv4 Tunnel Network field, you need to set the value

192.168.yyyy.xxx/24 ?

Did I understand correctly?
Logged

  • Print
Pages: 1 [2] 3 4
« previous next »
  • OPNsense Forum »
  • Archive »
  • 23.7 Legacy Series »
  • OpenVPN CSO what happened to custom_options
 

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