Tap-Adapter bei Installation.

Peckatop
Beiträge: 8
Registriert: 20 Mär 2023, 15:35

Tap-Adapter bei Installation.

Beitrag von Peckatop »

Sehr geehrte Damen und Herren,

ich habe ein Problem mit dem Aktualisieren des Pakets "Sophos Connect". Wenn ich es aktualisiere und über den Kiosk auf dem PC des Benutzers installiere, wird kein TAP-Treiber installiert (und wenn er für eine frühere Version bereits installiert war, wird er einfach gelöscht).

Kann mir bitte jemand einen Rat geben?

Mit freundlichen Grüßen,
Iskandar Aghagulov
Jan.Schmidt
Beiträge: 439
Registriert: 08 Jul 2017, 12:02

Re: Tap-Adapter bei Installation.

Beitrag von Jan.Schmidt »

dazu müsste man das paket kennen.
Ist das selbstgebaut?

einen Tap treiber während dem ein User angemeldet ist -> kiosk Mode <- zu aktualisieren ist ziemlich gewagt.
Läuft das denn ohne kiosk?
Peckatop
Beiträge: 8
Registriert: 20 Mär 2023, 15:35

Re: Tap-Adapter bei Installation.

Beitrag von Peckatop »

Bei manueller Installation funktioniert alles einwandfrei (ich habe einen MSI-Installer).

Beim Update durch den Admin in Opsi auf dem Client oder direkt über den Kiosk (vom Client aus) tritt etwas Seltsames auf und der TAP-Adapter wird einfach entfernt bei Update, oder einfach nicht installiert bei Neueinstallation, wodurch er nicht mehr funktioniert.

Das Paket wurde mithilfe von Opsi Setup Detector und Opsi Package Builder erstellt.
Benutzeravatar
SisterOfMercy
Beiträge: 1522
Registriert: 22 Jun 2012, 19:18

Re: Tap-Adapter bei Installation.

Beitrag von SisterOfMercy »

I assume the msi isn't downloadable somewhere? Perhaps there are some custom actions that are not executed when running the installer this way. Perhaps there is an easy workaround, but without your scripts and the msi I can only guess.
Bitte schreiben Sie Deutsch, when I'm responding in the German-speaking part of the forum!
Peckatop
Beiträge: 8
Registriert: 20 Mär 2023, 15:35

Re: Tap-Adapter bei Installation.

Beitrag von Peckatop »

SisterOfMercy hat geschrieben: 21 Mär 2023, 12:42 I assume the msi isn't downloadable somewhere? Perhaps there are some custom actions that are not executed when running the installer this way. Perhaps there is an easy workaround, but without your scripts and the msi I can only guess.
Unfortunately the MSI Package can be downloaded only through Sophos system.

I'll add Installation file from OPSI and MSI Installation file here.


The problem is that upon MSI normal installation - it installs Sophos Connect Application and adds TAP-Adapter + starts the Service (Sophos Connect)

While Opsi installation simply installs app and not doing 2 other steps (even the package built from the original MSI packet).

https://we.tl/t-zgxdb5HaB7 - Opsi Setup file + MSI installation file
Jan.Schmidt
Beiträge: 439
Registriert: 08 Jul 2017, 12:02

Re: Tap-Adapter bei Installation.

Beitrag von Jan.Schmidt »

Salve,

ich hab da ein Problem...

In dem Paket wird ein Openvpn 2.5.6.0 installliert, aktuell ist aber 2.6.1.0.
im dem MSI fehlt auch noch der Tapinstall - ist klar dass ich das nicht installieren werde aber ansehen kann ich es ja trotzdem für dich.

Dann fällt auf, dass du ganz q&d den installer SophosConnect_2.2.90_(IPsec_and_SSLVPN) (1).msi genannt hast - ja nee mach das doch hybscher.

was steht denn in einem der logs, die du da anlegst?
Peckatop
Beiträge: 8
Registriert: 20 Mär 2023, 15:35

Re: Tap-Adapter bei Installation.

Beitrag von Peckatop »

Jan.Schmidt hat geschrieben: 21 Mär 2023, 20:35 Salve,

ich hab da ein Problem...

In dem Paket wird ein Openvpn 2.5.6.0 installliert, aktuell ist aber 2.6.1.0.
im dem MSI fehlt auch noch der Tapinstall - ist klar dass ich das nicht installieren werde aber ansehen kann ich es ja trotzdem für dich.

Dann fällt auf, dass du ganz q&d den installer SophosConnect_2.2.90_(IPsec_and_SSLVPN) (1).msi genannt hast - ja nee mach das doch hybscher.

was steht denn in einem der logs, die du da anlegst?
(86) [1] [2023-03-22 12:24:02.210] [sophos_vpn_client]
(87) [1] [2023-03-22 12:24:02.210] [sophos_vpn_client] ============ Version 4.12.5.5 script "p:\sophos_vpn_client\setup_2.opsiscript"
(88) [1] [2023-03-22 12:24:02.210] [sophos_vpn_client] used script encoding: cp1252
(89) [1] [2023-03-22 12:24:02.210] [sophos_vpn_client] used system encoding: cp1252
(90) [1] [2023-03-22 12:24:02.210] [sophos_vpn_client] start: 2023-03-22 12:24:02
(91) [1] [2023-03-22 12:24:02.210] [sophos_vpn_client] installing product: sophos_vpn_client_2.2.90.1104-2.2.90.1
(92) [1] [2023-03-22 12:24:02.210] [sophos_vpn_client] on client named ""
(93) [1] [2023-03-22 12:24:02.212] [sophos_vpn_client] loggedin user ""
(94) [1] [2023-03-22 12:24:02.213] [sophos_vpn_client] opsi-script running as "SYSTEM"
(95) [1] [2023-03-22 12:24:02.213] [sophos_vpn_client] opsi-script running with admin privileges
(96) [1] [2023-03-22 12:24:02.213] [sophos_vpn_client] opsi-script running in standard script mode
(97) [1] [2023-03-22 12:24:02.213] [sophos_vpn_client] Scaling for screen DPI: 96
(98) [1] [2023-03-22 12:24:02.213] [sophos_vpn_client] executing: "C:\Program Files (x86)\opsi.org\opsi-client-agent\opsi-script\opsi-script.exe"
(99) [1] [2023-03-22 12:24:02.213] [sophos_vpn_client] system infos:
(100) [1] [2023-03-22 12:24:02.227] [sophos_vpn_client] - PC hardware address
(101) [1] [2023-03-22 12:24:02.227] [sophos_vpn_client] - IP name
(102) [1] [2023-03-22 12:24:02.227] [sophos_vpn_client] - IP address
(103) [1] [2023-03-22 12:24:02.227] [sophos_vpn_client] DEU - System default locale
(108) [1] [2023-03-22 12:24:02.228] [sophos_vpn_client] MS Windows 10.0 64 Bit, Release: 21H2, Edition: PRODUCT_PROFESSIONAL
(109) [1] [2023-03-22 12:24:02.228] [sophos_vpn_client] opsi service version : 4
(110) [1] [2023-03-22 12:24:02.228] [sophos_vpn_client]
(221) [1] [2023-03-22 12:24:11.324] [sophos_vpn_client] ___________________
(222) [1] [2023-03-22 12:24:11.324] [sophos_vpn_client] script finished: success
(223) [1] [2023-03-22 12:24:11.324] [sophos_vpn_client] 0 errors
(224) [1] [2023-03-22 12:24:11.324] [sophos_vpn_client] 0 warnings
(225) [1] [2023-03-22 12:24:11.324] [sophos_vpn_client]
(226) [1] [2023-03-22 12:24:11.324] [sophos_vpn_client] handled product: sophos_vpn_client Version: 2.2.90.1104-2.2.90.1
(227) [1] [2023-03-22 12:24:11.325] [sophos_vpn_client]
(231) [1] [2023-03-22 12:24:11.425] [sophos_vpn_client] product sophos_vpn_client set to update
(232) [1] [2023-03-22 12:24:11.425] [sophos_vpn_client] Update script name: p:\sophos_vpn_client\setup_2.opsiscript
(240) [1] [2023-03-22 12:24:11.494] [sophos_vpn_client]
(241) [1] [2023-03-22 12:24:11.494] [sophos_vpn_client] ============ Version 4.12.5.5 script "p:\sophos_vpn_client\setup_2.opsiscript"
(242) [1] [2023-03-22 12:24:11.494] [sophos_vpn_client] used script encoding: cp1252
(243) [1] [2023-03-22 12:24:11.494] [sophos_vpn_client] used system encoding: cp1252
(244) [1] [2023-03-22 12:24:11.494] [sophos_vpn_client] start: 2023-03-22 12:24:11
(245) [1] [2023-03-22 12:24:11.494] [sophos_vpn_client] installing product: sophos_vpn_client_2.2.90.1104-2.2.90.1
(246) [1] [2023-03-22 12:24:11.494] [sophos_vpn_client] on client named ""
(247) [1] [2023-03-22 12:24:11.494] [sophos_vpn_client] loggedin user ""
(248) [1] [2023-03-22 12:24:11.495] [sophos_vpn_client] opsi-script running as "SYSTEM"
(249) [1] [2023-03-22 12:24:11.495] [sophos_vpn_client] opsi-script running with admin privileges
(250) [1] [2023-03-22 12:24:11.495] [sophos_vpn_client] opsi-script running in standard script mode
(251) [1] [2023-03-22 12:24:11.495] [sophos_vpn_client] Scaling for screen DPI: 96
(252) [1] [2023-03-22 12:24:11.495] [sophos_vpn_client] executing: "C:\Program Files (x86)\opsi.org\opsi-client-agent\opsi-script\opsi-script.exe"
(253) [1] [2023-03-22 12:24:11.495] [sophos_vpn_client] system infos:
(254) [1] [2023-03-22 12:24:11.495] [sophos_vpn_client] - PC hardware address
(255) [1] [2023-03-22 12:24:11.495] [sophos_vpn_client] - IP name
(256) [1] [2023-03-22 12:24:11.495] [sophos_vpn_client] - IP address
(257) [1] [2023-03-22 12:24:11.495] [sophos_vpn_client] DEU - System default locale
(262) [1] [2023-03-22 12:24:11.496] [sophos_vpn_client] MS Windows 10.0 64 Bit, Release: 21H2, Edition: PRODUCT_PROFESSIONAL
(263) [1] [2023-03-22 12:24:11.496] [sophos_vpn_client] opsi service version : 4
(264) [1] [2023-03-22 12:24:11.496] [sophos_vpn_client]
(375) [1] [2023-03-22 12:24:14.014] [sophos_vpn_client] ___________________
(376) [1] [2023-03-22 12:24:14.014] [sophos_vpn_client] script finished: success
(377) [1] [2023-03-22 12:24:14.014] [sophos_vpn_client] 0 errors
(378) [1] [2023-03-22 12:24:14.015] [sophos_vpn_client] 0 warnings
(379) [1] [2023-03-22 12:24:14.015] [sophos_vpn_client]
(380) [1] [2023-03-22 12:24:14.015] [sophos_vpn_client] handled product: sophos_vpn_client Version: 2.2.90.1104-2.2.90.1
(381) [1] [2023-03-22 12:24:14.015] [sophos_vpn_client]
(382) [1] [2023-03-22 12:24:14.015] [sophos_vpn_client] Set lastAction to setup
Benutzeravatar
SisterOfMercy
Beiträge: 1522
Registriert: 22 Jun 2012, 19:18

Re: Tap-Adapter bei Installation.

Beitrag von SisterOfMercy »

Peckatop hat geschrieben: 21 Mär 2023, 15:46 The problem is that upon MSI normal installation - it installs Sophos Connect Application and adds TAP-Adapter + starts the Service (Sophos Connect)
While Opsi installation simply installs app and not doing 2 other steps (even the package built from the original MSI packet).
Ah, I think I see it. The Winbatch call needs a /SysNative parameter, otherwise it will not run as 64-bit, and probably can't install the 64-bit tap adapter.
But I'm creating a test package now.
Bitte schreiben Sie Deutsch, when I'm responding in the German-speaking part of the forum!
Benutzeravatar
SisterOfMercy
Beiträge: 1522
Registriert: 22 Jun 2012, 19:18

Re: Tap-Adapter bei Installation.

Beitrag von SisterOfMercy »

Code: Alles auswählen

https://www.dgip.nl/downloads/sophos-vpn-client.zip
Here you go. This is based on an ancient template, with lots of unused stuff. Use jedit with opsi highlighting to make stuff clear.
For me it installs, also installs the tap adapter. Uninstall also seems to work, but haven't logged in to see if everything is gone.
Next step is maybe including the vpn config?
But if this vpn connection is used to install opsi packages then the package needs to change a bit of course.
Bitte schreiben Sie Deutsch, when I'm responding in the German-speaking part of the forum!
Peckatop
Beiträge: 8
Registriert: 20 Mär 2023, 15:35

Re: Tap-Adapter bei Installation.

Beitrag von Peckatop »

SisterOfMercy hat geschrieben: 22 Mär 2023, 14:17

Code: Alles auswählen

https://www.dgip.nl/downloads/sophos-vpn-client.zip
Here you go. This is based on an ancient template, with lots of unused stuff. Use jedit with opsi highlighting to make stuff clear.
For me it installs, also installs the tap adapter. Uninstall also seems to work, but haven't logged in to see if everything is gone.
Next step is maybe including the vpn config?
But if this vpn connection is used to install opsi packages then the package needs to change a bit of course.
Wow! You're a magician! Thank you very much for your scrypt! I never worked with OPSI before and started a new position in company, and was a bit confused with all this stuff. Thanks a lot!
Antworten