{"id":5405,"date":"2024-03-22T10:29:16","date_gmt":"2024-03-22T10:29:16","guid":{"rendered":"https:\/\/calcolo.mi.infn.it\/?page_id=5405"},"modified":"2024-04-04T09:38:17","modified_gmt":"2024-04-04T09:38:17","slug":"configurazione-vpn-2-3","status":"publish","type":"page","link":"https:\/\/calcolo.mi.infn.it\/?page_id=5405","title":{"rendered":"VPN Configuration"},"content":{"rendered":"<p style=\"text-align: right;\"><span class=\"content\"><a href=\"\/?page_id=2902\">Italian version<\/a><\/span><\/p>\n<p style=\"text-align: left;\"><strong><span class=\"content\">How to set up access via VPN:<br \/>\n<\/span><\/strong><span class=\"content\"><br \/>\n<\/span><span class=\"content\">The Computing Service has made available to users a VPN service based on <strong>OpenVPN software<\/strong> (<a href=\"https:\/\/openvpn.net\/community\/\">https:\/\/openvpn.net\/community\/<\/a>).<\/span><\/p>\n<p><strong>Authentication<\/strong> (for access to the service) <strong>is via username and password<\/strong>.<br \/>\n<strong><br \/>\nACCESS<\/strong>:<br \/>\nThe service is <strong>automatically active for those who have accounts on bastion<\/strong>\/<strong>idefix<\/strong> with the <strong>same login credentials<\/strong> and for UNIMI staff afferent to the Department of Physics with the <strong>University credentials @unimi.it<\/strong> with the &#8220;username&#8221;<strong><em> without domain<\/em>.<\/strong><\/p>\n<p>Non-employee UNIMI colleagues (research fellows, PhD students, etc.) must make an explicit request for a technical enablement by sending a request to <a href=\"mailto:troubles@fisica.unimi.it\">troubles@fisica.unimi.it<\/a><\/p>\n<p><strong>Howto install a OpenVPN client:<br \/>\n<\/strong><\/p>\n<p>install a vpn client first, then follow the instructions below.<\/p>\n<p><strong>Package for Windows 10<\/strong>: we suggest downloading the latest updated package from the OPENVPN web site: a &#8220;OpenVPN community&#8221; version &#8220;MSI Installer&#8221; (.msi) for Windows 64\/32 bit downloadable from <a href=\"https:\/\/openvpn.net\/community-downloads\/\">https:\/\/openvpn.net\/community-downloads\/<\/a> (or &#8220;OpenVPN Connect v3&#8221; for Windows 7, 8, 10, and 11) downloadable from <a href=\"https:\/\/openvpn.net\/client-connect-vpn-for-windows\/\">https:\/\/openvpn.net\/client-connect-vpn-for-windows\/<\/a><\/p>\n<p><strong>Package and instructions for Mac OS X<\/strong>:<br \/>\nInstall Tunnelblick software, &#8220;stable&#8221; version, downloadable from <a href=\"https:\/\/tunnelblick.net\/downloads.html\">https:\/\/tunnelblick.net\/downloads.html<\/a><br \/>\nFollow the <a href=\"https:\/\/tunnelblick.net\/cInstallConfigurations.html\">instructions on the Tunnelblick website<\/a>:<br \/>\n&#8211; Create a directory with the name &#8220;Tunnelblick VPN Configuration.tblk&#8221;.<br \/>\n&#8211; Create a <strong>[filename].conf<\/strong> file (see paragraph <strong>CONFIGURATION FILES<\/strong> to download it in the following section).<br \/>\n&#8211; Double-click on the directory, from the Finder, to install the configuration<br \/>\n&#8211; If you want to change the configuration file, replace it in the Tunnelblick directory and then double-click from the Finder on that directory: the new configuration is set up.<\/p>\n<p><strong>Packages for Linux<\/strong>:<br \/>\nDownload from OPENVPN website: <a href=\"https:\/\/openvpn.net\/community-downloads\/\">https:\/\/openvpn.net\/community-downloads\/<\/a><br \/>\nCommand must be <strong>run with root permissions<\/strong>.<\/p>\n<hr \/>\n<p><strong>CONFIGURATION FILES with ACCESS with<\/strong><strong> USERNAME \/ PASSWORD<\/strong><\/p>\n<ul>\n<li style=\"list-style-type: none;\">\n<ul>\n<li style=\"list-style-type: none;\">\n<ul>\n<li style=\"list-style-type: none;\">\n<ul>\n<li style=\"list-style-type: none;\"><\/li>\n<li><strong>Standard configuration file (access LOCAL resources as if you were in the Department):<\/strong><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<ul>\n<li style=\"list-style-type: none;\">\n<ul>\n<li style=\"list-style-type: none;\">configuration file for <strong>Linux e Mac OS X<\/strong>: <a href=\"\/wp-content\/uploads\/2021\/06\/client-auth.conf\">client-auth.conf<\/a><br \/>\nconfiguration file for <strong>Windows<\/strong>: <a href=\"\/wp-content\/uploads\/2021\/06\/client-auth.ovpn\">client-auth.ovpn<\/a><a href=\"http:\/\/calcolo.fisica.unimi.it\/VPN\/client-auth.ovpn\"><br \/>\n<\/a><\/li>\n<li><strong>Configuration files to reconfiguring your client&#8217;s default gateway (access to ALL resources as if you were in the department):<\/strong><br \/>\n<em>with<strong> Fisica&#8217;s<\/strong> default gateway:<\/em><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<ul>\n<li style=\"list-style-type: none;\">\n<ul>\n<li style=\"list-style-type: none;\">configuration file for <strong>Linux e Mac OS X:<\/strong> <a href=\"\/wp-content\/uploads\/2021\/06\/client-auth-def-gw-fisica.conf\">client-auth-def-gw-fisica.conf<\/a><br \/>\nconfiguration file for <strong>Windows:<\/strong> <a href=\"\/wp-content\/uploads\/2021\/06\/client-auth-def-gw-fisica.ovpn\">client-auth-def-gw-fisica.ovpn<\/a><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<ul>\n<li style=\"list-style-type: none;\">\n<ul>\n<li style=\"list-style-type: none;\"><em>with<strong> INFN&#8217;s<\/strong> default gateway:<\/em><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<ul>\n<li style=\"list-style-type: none;\">\n<ul>\n<li style=\"list-style-type: none;\">configuration file for <strong>Linux e Mac OS X<\/strong>: <a href=\"\/wp-content\/uploads\/2021\/06\/client-auth-def-gw-infn.conf\">client-auth-def-gw-infn.conf<\/a><br \/>\nconfiguration file for <strong>Windows<\/strong>: <a href=\"\/wp-content\/uploads\/2021\/06\/client-auth-def-gw-infn.ovpn\">client-auth-def-gw-infn.ovpn<\/a><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<ul>\n<li style=\"list-style-type: none;\">\n<ul>\n<li style=\"list-style-type: none;\">\n<ul>\n<li style=\"list-style-type: none;\"><strong><br \/>\nInstructions for Windows 10<\/strong><strong><br \/>\n1.\u00a0Download the configuration file<\/strong> and install the OpenVPN package from the site <a href=\"https:\/\/openvpn.net\/client-connect-vpn-for-windows\/\">https:\/\/openvpn.net\/client-connect-vpn-for-windows\/<\/a><br \/>\n<strong><strong><strong>2. Create an &#8220;Openvpn Administrators&#8221; group and add to it the user of the PC that will use the VPN.<br \/>\n<\/strong><\/strong><\/strong>On Windows HOME follow the instructions at the end of this page.<br \/>\n<strong>On Windows 10 PRO \/ ENT (= ENTERPRISE):<\/strong><br \/>\nTo create the group with a user with PC administrator privileges perform the following steps.<br \/>\nThis PC -&gt; right-click (on mouse) -&gt; Manage -&gt; under &#8220;System Tools&#8221; click on &#8220;Local Users and Groups&#8221; -&gt; &#8220;Groups&#8221;, right-click, choose option &#8220;New group&#8230;&#8221;. Enter as &#8220;Group name&#8221; Openvpn Administrators and, on the same screen, use &#8220;Add&#8230;&#8221; button to add the local PC user\/users who should be able to use the VPN (under &#8220;Enter the obiect&#8217;s name to select&#8221; enter a local PC User name and use &#8220;Check names&#8221;, then select the right one with &#8220;Ok&#8221; and then &#8220;Close&#8221;).<br \/>\nYou log on to your Windows PC with the user with whom you want to use the VPN and in the taskbar on the program icon &#8220;OpenVPN GUI&#8221;, right-click opens an option &#8220;Import&#8221; &#8211;&gt; &#8220;Import file&#8230;&#8221;: import the configuration file (with .opvn extension) previously downloaded.<br \/>\nIn this way Windows by default imports it into a folder with path of the following type:<br \/>\nC:\\Users\\[User Name]\\OpenVPN\\config\\<br \/>\nThe folder containing the configuration files can also be<br \/>\nC:\\Program Files\\OpenVPN\\config\\<br \/>\nYou can check the current configuration by opening in the taskbar, under the &#8220;OpenVPN GUI&#8221; icon, option &#8220;Settings&#8221; shows in folder &#8220;Advanced&#8221; your paths (&#8220;Folder:&#8221;) for Configuration Files and Log Files.<br \/>\n<strong>3. Start OpenVPN<\/strong>: you can use &#8220;openvpn-gui.exe&#8221; in C:\\Users\\[User Name]\\OpenVPN\\bin\\ &#8211;&gt; right-click &#8211;&gt; Run as administrator<br \/>\n<strong>4.<\/strong> Now using the icon (bottom right) of &#8220;OpenVPN GUI&#8221; you can use <strong>Connect<\/strong> with username and password. If you&#8217;ve installed more than one configuration file, under the &#8220;OpenVPN GUI&#8221; icon, under the name of the configuration file you want to use, click on <strong>Connect<\/strong>.<br \/>\n5. When you no longer need the VPN use similarly <strong>Disconnect<\/strong>.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<ul>\n<li style=\"list-style-type: none;\">\n<ul>\n<li style=\"list-style-type: none;\"><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<ul>\n<li style=\"list-style-type: none;\">\n<hr \/>\n<ul>\n<li><strong>On Windows 10 HOME: <\/strong>how to create a group &#8220;Openvpn Administrators&#8221; and add the user of the PC that will use the VPN.<em><br \/>\n<\/em>Open a Command Prompt window, taking care to use (right-click) &#8220;Run as administrator&#8221;.<br \/>\nThen check the full name of the logged-in user (who wants to use the VPN):<br \/>\nC:\\WINDOWS\\system32&gt;whoami<br \/>\nThe output is of the type [PC-name]\\[UserName]<br \/>\nAdd the local group and the user to this group:<br \/>\nC:\\WINDOWS\\system32&gt;net localgroup &#8220;OpenVPN Administrators&#8221; \/add<br \/>\nC:\\WINDOWS\\system32&gt;net localgroup &#8220;OpenVPN Administrators&#8221; [UserName] \/add<br \/>\nFinally check: the last two commands should provide a command execution successful; however you can check it so:<br \/>\nC:\\WINDOWS\\system32&gt;net localgroup<br \/>\n*OpenVPN Administrators should also be found in the list. Or so:<br \/>\nC:\\WINDOWS\\system32&gt;net localgroup &#8220;OpenVPN Administrators&#8221;<br \/>\nIt must show the desired user as a member of the group.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<ul>\n<li style=\"list-style-type: none;\"><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Italian version How to set up access via VPN: The Computing Service has made available to users a VPN service based on OpenVPN software (https:\/\/openvpn.net\/community\/). Authentication (for access to the service) is via username and password. ACCESS: The service is automatically active for those who have accounts on bastion\/idefix with the same login credentials and for UNIMI staff afferent to the Department of Physics with the University credentials @unimi.it with the &#8220;username&#8221;<\/p>\n","protected":false},"author":3,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-5405","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/calcolo.mi.infn.it\/index.php?rest_route=\/wp\/v2\/pages\/5405","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/calcolo.mi.infn.it\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/calcolo.mi.infn.it\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/calcolo.mi.infn.it\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/calcolo.mi.infn.it\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5405"}],"version-history":[{"count":37,"href":"https:\/\/calcolo.mi.infn.it\/index.php?rest_route=\/wp\/v2\/pages\/5405\/revisions"}],"predecessor-version":[{"id":5449,"href":"https:\/\/calcolo.mi.infn.it\/index.php?rest_route=\/wp\/v2\/pages\/5405\/revisions\/5449"}],"wp:attachment":[{"href":"https:\/\/calcolo.mi.infn.it\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5405"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}