• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
Netgate Discussion Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login

OpenVPN Command Line Arguments

Scheduled Pinned Locked Moved OpenVPN
4 Posts 3 Posters 485 Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R
    RHLinux
    last edited by Oct 26, 2019, 7:53 PM

    Hello All,

    Is it possible to pass command line arguments to the openVPN daemon? I need to pass some specific command line arguments to openVPN. I have tried through SSH to modify the startup scripts in /etc/rc.d/openvpn but couldn't get them to work.

    RHLinux

    G 1 Reply Last reply Oct 28, 2019, 9:51 AM Reply Quote 0
    • R
      Rico LAYER 8 Rebel Alliance
      last edited by Oct 27, 2019, 4:07 PM

      Use the Custom options in Advanced Configuration:

      pfsense_openvpn_customoptions.png

      -Rico

      1 Reply Last reply Reply Quote 0
      • G
        Gertjan @RHLinux
        last edited by Oct 28, 2019, 9:51 AM

        @RHLinux said in OpenVPN Command Line Arguments:

        /etc/rc.d/openvpn

        ?
        FreeBSD doesn't start daemon like "Linux" based OS's ....
        pfSense isn't even following pure "FreeBSD" conventions.
        To finalize : editing core file will probably get wiped (re written) when saving config, and for sure when upgrading.

        If you really have to, look here :
        /usr/local/etc/rc.d/openvpn

        No "help me" PM's please. Use the forum, the community will thank you.
        Edit : and where are the logs ??

        R 1 Reply Last reply Oct 28, 2019, 12:01 PM Reply Quote 1
        • R
          RHLinux @Gertjan
          last edited by Oct 28, 2019, 12:01 PM

          @Gertjan said in OpenVPN Command Line Arguments:

          @RHLinux said in OpenVPN Command Line Arguments:

          /etc/rc.d/openvpn

          ?
          FreeBSD doesn't start daemon like "Linux" based OS's ....
          pfSense isn't even following pure "FreeBSD" conventions.
          To finalize : editing core file will probably get wiped (re written) when saving config, and for sure when upgrading.

          If you really have to, look here :
          /usr/local/etc/rc.d/openvpn

          Thanks for the information, I'm used to Fedora, Debian/Ubuntu Linux distros :)... It's purely for testing, I realize they will be overwritten during upgrades, but they shouldn't be overwritten by config changes.

          RHLinux

          1 Reply Last reply Reply Quote 0
          3 out of 4
          • First post
            3/4
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
            This community forum collects and processes your personal information.
            consent.not_received