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

    Stunnel client config in GUI.

    Scheduled Pinned Locked Moved pfSense Packages
    1 Posts 1 Posters 1.1k 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.
    • Q
      QhoLi
      last edited by

      Hi all,

      Since blocked OpenVPN by "some firewalls", searched a solution that use Stunnel service with OpenVPN to solve it. Because the solution that must set as Stunnel client in the VPN client machine but the GUI of Stunnel package that not provided the option. I added some lines in the config files, .xml and .inc, and tested that is running well. Would it be added in the next version of Stunnel for users set up easily?
      Thanks.

      Cheers,
      Qho

      /usr/local/etc/stunnel.xml
      Add the following lines AFTER "<fields>".

      
       <field><fielddescr>Client</fielddescr>
              <fieldname>client</fieldname>
              <type>checkbox</type></field> 
      
      

      /usr/local/etc/stunnel.inc
      Add the following lines BEFORE "if($pkgconfig['certificate']) {"

      
      if($pkgconfig['client']) fwrite($fout, "client = yes" . "\n");
      
      ```</fields>
      1 Reply Last reply Reply Quote 0
      • First post
        Last post
      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.