
OpenVPN Configuration Client
Paquet d’installation silencieuse pour OpenVPN Configuration Client
0
- package: tis-openvpn-config-template
- name: OpenVPN Configuration Client
- version: 0
- categories: System and network,Drivers,Utilities,Configuration
- maintainer: WAPT Team,Tranquil IT,Flavien Schelfaut
- editor: OpenVPN Inc.
- licence: GNU GPL
- locale: all
- target_os: windows
- architecture: all
- signature_date:
- size: 6.92 Ko
- homepage : https://openvpn.net/
package : tis-openvpn-config-template
version : 0
architecture : all
section : base
priority : optional
name : OpenVPN Configuration Client
categories : System and network,Drivers,Utilities,Configuration
maintainer : WAPT Team,Tranquil IT,Flavien Schelfaut
description : Configuration template for OpenVPN Client
depends :
conflicts :
maturity : PROD
locale : all
target_os : windows
min_wapt_version : 2.1
sources :
installed_size :
impacted_process :
description_fr :
description_pl :
description_de :
description_es :
description_pt :
description_it :
description_nl :
description_ru :
audit_schedule :
editor : OpenVPN Inc.
keywords : openvpn,vpn,private,network
licence : GNU GPL
homepage : https://openvpn.net/
package_uuid : ad5364e8-eace-4cdf-ac2b-d91351fe67fd
valid_from :
valid_until :
forced_install_on :
changelog :
min_os_version :
max_os_version :
icon_sha256sum : 18848bc4babf25a75264225d9fd7251453186e19518d4426680a8d93b3c81cdb
signer : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature_date : 2024-10-06T14:15:43.000000
signed_attributes : package,version,architecture,section,priority,name,categories,maintainer,description,depends,conflicts,maturity,locale,target_os,min_wapt_version,sources,installed_size,impacted_process,description_fr,description_pl,description_de,description_es,description_pt,description_it,description_nl,description_ru,audit_schedule,editor,keywords,licence,homepage,package_uuid,valid_from,valid_until,forced_install_on,changelog,min_os_version,max_os_version,icon_sha256sum,signer,signer_fingerprint,signature_date,signed_attributes
signature : fd/iL7kE0E3nOgaVjvsVzYCZmocMTlFCyyR+ONlRr4vYaZoawqGQuo9dELJ9AywK3tyn9o9fYwrE7fMaFEeo+gqsvKQamGOvElqYJPX4d1CxzKhzJQikmv5zSo8RKxEo5oDll+F/XM9UpoIbMMNsoa8WPYU/FQ4y5HOpLqoHVnE4o0av2r/4tF5ze02abI+jnNDcAT/rpG7soxApy/BN8sQoVqZdC60aOimwaZp78VLRPigiTaCm8KFMcmqDVRTiVOm65ym6jmzB+DvRLoNMU66fM+j19uYUOaKz/+ZqiP1Cs3V/c4h7dUj9JNBs+63OsnkSdCAqOGc1YKucY7aZ6g==
# -*- coding: utf-8 -*-
from setuphelpers import *
import win32net
openvpn_config_folder = makepath(programfiles64, 'OpenVPN', 'config')
member_allow_to_vpn = r'CONTOSO\GG_VPN'
openvpn_group_name = r'OpenVPN Administrators'
def create_group_with_check(groupname):
try:
create_group(groupname)
print(f"Local group {groupname} successfully created")
except win32net.error as e:
if e.winerror == 1379:
print(f"Local group {groupname} already exists !")
def add_member_to_group(member, groupname):
if member not in local_group_members(groupname):
add_user_to_group(member, groupname)
def remove_member_from_group(member, groupname):
if member in local_group_members(groupname):
remove_user_from_group(member, groupname)
def install():
print(f"Creating the {openvpn_group_name} group and adding the {member_allow_to_vpn} group as a member")
create_group_with_check(openvpn_group_name)
add_member_to_group(member_allow_to_vpn, openvpn_group_name)
# Comment this part if not needed
print("Importing the VPN config")
mkdirs(openvpn_config_folder)
# Importation of the vpn configuration file
for f in glob.glob('*.ovpn'):
if not (isfile(f)):
print(f"Copy config '{f}' to OpenVPN config folder")
filecopyto(f, openvpn_config_folder)
else:
print(f"Config file '{f}' already in folder")
def uninstall():
print(f"Deleting vpn configuration files")
if isdir(openvpn_config_folder):
remove_tree(openvpn_config_folder)
print(f"Deleting the member {member_allow_to_vpn} into {openvpn_group_name}")
remove_member_from_group(member_allow_to_vpn, openvpn_group_name)
# -*- coding: utf-8 -*-
from setuphelpers import *
from setupdevhelpers import *
def update_package():
# Declaring local variables
package_updated = False
# Renaming package
if "template" in control.package:
complete_control_package(control)
complete_control_name(control)
if "template" in control.package:
error("Please rename the package.")
last_version_digit = str(int(control.get_software_version().split(".")[-1]) + 1)
version = ".".join(control.get_software_version().split(".")[:-1] + [last_version_digit])
ask_message(
control.package,
"Please note that you will still need to edit this package to apply your own configuration that is compliant with your company's internal policies. You are sole responsible for the use of this package on your network.",
48,
)
else:
last_version_digit = str(int(control.get_software_version().split(".")[-1]) + 1)
version = ".".join(control.get_software_version().split(".")[:-1] + [last_version_digit])
# Changing version of the package
if Version(version) > Version(control.get_software_version()):
print("Software version updated (from: %s to: %s)" % (control.get_software_version(), Version(version)))
package_updated = True
else:
print("Software version up-to-date (%s)" % Version(version))
control.set_software_version(version)
control.save_control_to_wapt()
# Validating or not update-package-sources
return package_updated
38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
b5db18b846f2fb6033e2c319dc1f9c69631c002725deb6148e34992ffb7bd2e1 : WAPT/control
18848bc4babf25a75264225d9fd7251453186e19518d4426680a8d93b3c81cdb : WAPT/icon.png
5183cb31104c22bae4a0f211ce7fa577af8d39889df06089f00fa35de08c58ae : luti.json
c0ef5a6a98c683ad0f368bd542b8c29fc874c5f5463dcea832d683e9d9a9c434 : setup.py
2904194f45032c696ac1b3792b9816b72192672fdf426bdaed417f2b4535a9fc : update_package.py