Découvrez les nouveautés de cette version : Fonctionnalités, améliorations et évolutions vous attendent ! 👉 Cliquez ici pour en savoir plus

Modifications pour le document Configuration Linux

Modifié par Stéphane Dugravot le 07/11/2024 - 13:16

Depuis la version 27.1
modifié par Frédéric Nass
sur 15/06/2022 - 16:53
Commentaire de modification : Il n'y a aucun commentaire pour cette version
À la version 20.1
modifié par Stéphane Dugravot
sur 17/01/2018 - 11:15
Commentaire de modification : Migrated to Confluence 5.3

Résumé

Détails

Propriétés de la Page
Auteur du document
... ... @@ -1,1 +1,1 @@
1 -XWiki.nass5
1 +XWiki.dugravot6
Contenu
... ... @@ -1,6 +1,6 @@
1 -rV
1 +
2 2  
3 -\\
3 +
4 4  
5 5  {{confluence_section}}
6 6  {{confluence_column width="30%"}}
... ... @@ -17,7 +17,7 @@
17 17  {{/confluence_column}}
18 18  {{/confluence_section}}
19 19  
20 -\\
20 +
21 21  
22 22  = Configuration Linux (Ubuntu - Mint) =
23 23  
... ... @@ -33,24 +33,49 @@
33 33  
34 34  Network Manager, le logiciel qui gère les connexions réseaux que l'on trouve sous différentes distributions Linux (ici Ubuntu) sait gérer les connexions [[WiFi>>url:http://wikidocs.univ-lorraine.fr/display/WiFi/Configuration+Network+Manager||shape="rect"]] et VPN UHP. Pour la gestion du VPN, vous devez disposer bien sûr de Network Manager, mais aussi du client vpnc :
35 35  
36 -{{code language="bash" theme="Confluence"}}
37 -apt install vpnc network-manager-vpnc
36 +(((
37 +(% class="syntaxhighlighter nogutter java" %)
38 +(((
39 +
40 +
41 +|(((
42 +(% class="container" title="Hint: double-click to select code" %)
43 +(((
44 +(% class="line number1 index0 alt2" %)
45 +(((
46 +{{code language="none"}}
47 +> apt-get install vpnc
38 38  {{/code}}
49 +)))
50 +)))
51 +)))
39 39  
40 -Pour gnome, il faut ajouter
53 +
54 +)))
55 +)))
41 41  
42 -{{code language="bash" theme="Confluence"}}
43 -apt install network-manager-vpnc-gnome
44 -{{/code}}
57 +Et enfin, du plugin network-manager-vpnc :
45 45  
46 -{{error}}
47 -(% class="code" %)
48 48  (((
49 -Si vous venez d'installer les paquets précédents (vpnc, network-manager-vpnc, etc ...), alors vous devez redémarrer votre poste de travail !
60 +(% class="syntaxhighlighter nogutter java" %)
61 +(((
62 +
63 +
64 +|(((
65 +(% class="container" title="Hint: double-click to select code" %)
66 +(((
67 +(% class="line number1 index0 alt2" %)
68 +(((
69 +{{code language="none"}}
70 +> apt-get install network-manager-vpnc
71 +{{/code}}
50 50  )))
51 -{{/error}}
73 +)))
74 +)))
52 52  
53 -\\
76 +
77 +)))
78 +)))
54 54  
55 55  === Configuration ===
56 56  
... ... @@ -66,11 +66,19 @@
66 66  * Domaine : Ne rien y inscrire
67 67  * Méthode chiffrement : **//Sécurisé//**
68 68  * Traversée du NAT : **//UDP Cisco//**
69 -Dans l'onglet Paramètres IPv4, ne rien changer car l'adresse doit être attribuée automatiquement.
94 + Dans l'onglet Paramètres IPv4, ne rien changer car l'adresse doit être attribuée automatiquement.
70 70  
71 71  (% class="panelMacro" %)
72 72  (((
73 -\\
98 +
99 +
100 +{{error}}
101 +Si vous venez d'installer les paquets précédents (vpnc, network-manager-vpnc, etc ...), alors vous devez redémarrer votre poste de travail !
102 +
103 +
104 +{{/error}}
105 +
106 +
74 74  )))
75 75  
76 76  === Connexion ===
... ... @@ -92,7 +92,7 @@
92 92  
93 93  en allant le chercher sur le [[https:~~/~~/vpn.lothaire.net>>url:https://vpn.lothaire.net||shape="rect"]]
94 94  
95 -\\
128 +
96 96  
97 97  [[image:attach:VPN_Linux1.png||width="800" title="VPN_Linux1.png"]]
98 98  
... ... @@ -100,13 +100,13 @@
100 100  
101 101  [[image:attach:VPN_Linux2.png||title="VPN_Linux2.png"]]
102 102  
103 -\\
136 +
104 104  
105 105  Une fois le script récuperé, on install le produit :
106 106  
107 -\\
140 +
108 108  
109 -{{code language="bash" theme="RDark" title="install_anyconnect"}}
142 +{{code theme="RDark" language="bash" title="install_anyconnect"}}
110 110  xxxxxx@pcxxxxx ~/Téléchargements $ sudo sh vpnsetup_64b.sh
111 111  [sudo] password for xxxxxx:
112 112  Installing Cisco AnyConnect Secure Mobility Client...
... ... @@ -120,12 +120,8 @@
120 120  
121 121  {{/code}}
122 122  
123 -{{confluence_tip title="Remarque Linux MINT"}}
124 -pour les utilisateur de Linux MINT : Il est nécessaire d'installer la librairie **libpangox**
125 -{{/confluence_tip}}
156 +
126 126  
127 -\\
128 -
129 129  on doit rebooter sa machine, pour voir apparaître dans un menu l'application "Cisco Anyconnect Secure Mobility Client" :
130 130  
131 131  [[image:attach:VPN_Linux3.png||title="VPN_Linux3.png"]]
... ... @@ -149,10 +149,17 @@
149 149  
150 150  **NB : si on a ces erreurs "AnyConnect cannot confirm it is connected to your secure gateway.  The local network may not be trustworthy.  Please try another network."**
151 151  
152 -**c'est qu'il manque le certificat TERENA SSL CA, que l'on peut récupérer ici :**
181 +**c'est qu'il manque le certificat TERENA SSL CA**
153 153  
154 -* **[[attach:DigiCertCA.crt]]**
183 +
155 155  
185 +{{code}}
186 +cd /opt/.cisco/certificates/ca
187 +wget http://www.crium.univ-metz.fr/chaintcs.crt -o chaintcs.pem
188 +{{/code}}
189 +
190 +
191 +
156 156  === Fichier XML pour la configuration d'anyconnect ===
157 157  
158 158  Dans le cas ou il y a plusieurs concentrateur vpn à gérer.
... ... @@ -205,7 +205,7 @@
205 205  </AnyConnectProfile>
206 206  {{/code}}
207 207  
208 -\\
244 +
209 209  
210 210  == Via le package Openconnect en CLI ==
211 211  
... ... @@ -215,7 +215,7 @@
215 215  sudo apt-get install openconnect
216 216  {{/code}}
217 217  
218 -\\
254 +
219 219  
220 220  Commande :
221 221  
... ... @@ -223,29 +223,31 @@
223 223  sudo openconnect -u dugravot6@dn-infra --authgroup='Universite-de-Lorraine' --no-cert-check vpn.lothaire.net
224 224  {{/code}}
225 225  
226 -\\
262 +
227 227  
228 228  == Via le package Openconnect avec Network-Manager ==
229 229  
230 -On installe le package openconnect et les plugin network-manager-openconnect, network-manager-openconnect-gnome (fonctionne aussi avec linux mint 18.3 en cinnamon)
266 +On install le package openconnect et les plugin network-manager-openconnect, network-manager-openconnect-gnome
231 231  
232 -\\
268 +
233 233  
234 -{{code language="bash" theme="RDark" title="Openconnect"}}
270 +{{code theme="RDark" language="bash" title="Openconnect"}}
235 235  sudo apt-get install openconnect network-manager-openconnect network-manager-openconnect-gnome
236 236  {{/code}}
237 237  
238 -Rebooter sa machine , on verra maintenant apparaître dans son module de gestion réseau/VPN un nouveau module "VPN Compatible Cisco Anyconnect ( openconnect)"
274 +
239 239  
240 -\\
276 +rebooter sa machine , on verra maintenant apparaître dans son module de gestion réseau/VPN un nouveau module "VPN Compatible Cisco Anyconnect ( openconnect)"
241 241  
278 +
279 +
242 242  [[image:attach:VPN_Linux6.png||title="VPN_Linux6.png"]]
243 243  
244 -\\
282 +
245 245  
246 246  [[image:attach:VPN_Linux7.png||title="VPN_Linux7.png"]]
247 247  
248 -\\
286 +
249 249  
250 250  créer , Renseigner uniquement le nomde la connexion et la passerelle
251 251  
... ... @@ -262,7 +262,7 @@
262 262  
263 263  cocher " Automatically start ....." et cliquer à coté du VPN host pour la connexion :
264 264  
265 -\\
303 +
266 266  
267 267  [[image:attach:VPN_Linux10.png||title="VPN_Linux10.png"]]
268 268  
... ... @@ -270,11 +270,11 @@
270 270  
271 271  [[image:attach:VPN_Linux11.png||title="VPN_Linux11.png"]]
272 272  
273 -\\
311 +
274 274  
275 275  puis loguer vous :
276 276  
277 -\\
315 +
278 278  
279 279  [[image:attach:VPN_Linux12.png||title="VPN_Linux12.png"]]
280 280  
... ... @@ -318,6 +318,4 @@
318 318  
319 319  Il faut modifier la conf du VPN comme ça :
320 320  
321 -[[image:attach:Capture d'écran de 2015-02-03 12 14 28.png||width="458"]]
322 -
323 -\\
359 +[[image:attach:Capture d'écran de 2015-02-03 12:14:28.png]]
Confluence.Code.ConfluencePageClass[0]
Id
... ... @@ -1,1 +1,1 @@
1 -380719370
1 +249768941