WAPT Store: configuration package (Fortinet)

Questions about WAPT Packaging / Requests and help regarding Wapt packages.
Forum Rules
Community Forum Rules
* English support on www.reddit.com/r/wapt
* French community support is available on this forum
* Please prefix the topic title with [RESOLVED] if it is resolved.
* Please do not edit a topic that is tagged [RESOLVED]. Open a new topic referencing the old one.
* Specify the installed WAPT version, full version, and build number (2.2.1.11957 / 2.2.2.12337 / etc.) as well as the Enterprise/Discovery edition.
* Versions 1.8.2 and earlier are no longer supported. The only questions accepted regarding version 1.8.2 are related to upgrading to a supported version (2.1, 2.2, etc.).
* Specify the server OS (Linux/Windows) and version (Debian Buster/Bullseye - CentOS 7 - Windows Server 2012/2016/2019).
* Specify the OS of the administration/package creation machine and the machine with the problematic agent, if applicable (Windows 7/10/11/Debian 11/etc.).
* Avoid asking multiple questions when opening a topic, otherwise it may be ignored. If there are multiple topics, open separate topics, preferably one after the other and not all at the same time (i.e., do not spam the forum).
* Include code snippets, screenshots, and other images directly in the post. Links to Pastebin, Bitly, and other third-party sites will be systematically removed.
* As with any community forum, support is provided voluntarily by members. If you require commercial support, you can contact Tranquil IT's sales department at 02.40.97.57.55
Answer
sebastien4444
Messages: 22
Registration: Sep 14, 2023 - 08:53

July 11, 2024 - 2:17 PM

Hello,

I need to deploy the Fortinet client across my network and I saw that it exists on the store.
Additionally, there's a "forticlient-vpn-config-template" package that seems to allow deploying a specific configuration (and is better coded than my personal package which manipulated registry keys to modify the configuration :D ).

However, I can't understand how this type of package works. :roll:
How do I pass it the configuration file it expects?

Unless this type of package isn't meant to be imported and used in the console, but rather the purpose is to retrieve the code and use it, customizing it within a custom package?
User avatar
dcardon
WAPT Expert
Messages: 1930
Registration: June 18, 2014 - 09:58
Location: Saint Sébastien sur Loire
Contact :

July 11, 2024 - 2:46 PM

Hi Sébastien,

yes, *-template packages have this suffix to indicate that they must be edited before deployment. Afterward, you remove the "-template" suffix to prevent the console from prompting you to update it if a new version is released on the store (otherwise, the generic configuration of the store package would override your internal configuration since the package index would be incremented).

Hoping my answer is clear enough :-)

. Best regards,

Denis
Denis Cardon - Tranquil IT
Share your experiences on WAPT! Send us your blog and article URLs in the "Your Opinion of the forum, and we'll feature them on the WAPT
sebastien4444
Messages: 22
Registration: Sep 14, 2023 - 08:53

July 17, 2024 - 2:36 PM

Hello,

thank you for your reply. :)

Actually, I hadn't realized it was possible to modify a package in the private repository. :oops:
I thought editing package files was only possible by building a custom package...

Thanks to your answer, I discovered the Control and Setup tabs in the package editor.

However, I don't understand where I should store the expected configuration file ("company.conf" in the script).
sebastien4444
Messages: 22
Registration: Sep 14, 2023 - 08:53

August 2, 2024 - 4:11 PM

Hello,

Having not found an answer to this question elsewhere, I'm taking the liberty of asking again: :oops:

"However, I don't understand where I should store the expected configuration file ('company.conf' in the script)."
What I mean is that when you build a package yourself, you work in a directory that contains the various files, including setup.py, so it's easy to add files that you then call in the code.
But when you modify a package in the console, how do you add a file to that package?

Because in the case of FotriClient VPN Configuration, setup.py clearly expects a company.conf file.
User avatar
t.heroult
Messages: 307
Registration: December 8, 2020 - 10:13 AM

August 5, 2024 - 3:50 PM

Hello,
to modify files in the package, you must edit it locally; it is impossible in the console.
Server: WAPT Enterprise 2.6.1.17786 on Debian
Consoles: Windows 10 & 11
Infrastructure: Windows

Did you know? When parrotfish undergo smoltification, their osmoregulation mechanism is reversed!
Answer