Deprecated: Creation of dynamic property Timber\Site::$pingback is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Site.php on line 180

Deprecated: Creation of dynamic property Timber\User::$name is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/User.php on line 118

Deprecated: Creation of dynamic property Timber\Post::$old_id is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$_thumbnail_id is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$ext-thumbnail_url is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$_edit_last is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$_yoast_wpseo_metadesc is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$post_date_gmt is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$comment_status is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$ping_status is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$post_password is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$post_name is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$to_ping is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$pinged is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$post_modified is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$post_modified_gmt is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$post_content_filtered is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$guid is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$menu_order is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$post_mime_type is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$comment_count is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$filter is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$status is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71
Configurare un server OpenVPN con pfSense | IlSoftware.it

Configurare un server OpenVPN con pfSense

Qualche indicazione di carattere generale per configurare il firewall pfSense come server OpenVPN in locale o sul cloud e stabilire una connessione sicura site-to-site.

pfSense è un’ottima soluzione per configurare un potente, efficace ed efficiente firewall in locale (on premises) così come sul cloud. Il prodotto, distribuito sotto licenza BSD, quindi disponibile anche come software libero e open source, oltre a fornire un firewall completo e versatile, integra funzionalità di load balancing – per il bilanciamento del carico tra più server -, permette la configurazione di captive portal e consente la configurazione rapida di un server OpenVPN.

Il vantaggio è evidente: servendosi di pfSense è possibile collegarsi al proprio data center sul cloud in maniera sicura e amministrare tutti i server, siano essi Linux o Windows, senza esporre alcuna porta sull’IP pubblico, tranne quelle essenziali per la fornitura dei servizi (tipicamente 80 per HTTP e 443 per HTTPS).
Il firewall permetterà di lasciare tutte le altre porte di comunicazione accessibili solo attraverso la LAN virtuale: pfSense, come usarlo per configurare un firewall sul cloud.

Come configurare pfSense come server OpenVPN

Configurando pfSense come server OpenVPN ci si potrà collegare alla propria rete LAN, sia in locale che sul cloud, in tutta sicurezza acquisendo un indirizzo IP locale, come se il proprio sistema fosse fisicamente connesso a tale network.
Gli utenti più esperti possono addirittura creare un tunnel cifrato tra due reti completamente separate tra loro, siano esse entrambe sul cloud, entrambe on premises oppure in configurazione ibrida.

Per configurare pfSense come server OpenVPN è sufficiente seguire alcuni semplici passaggi:

1) Cliccare sul menu VPN, OpenVPN di pfSense.
2) Nella scheda Server fare clic sul pulsante verde Add in basso a destra.

3) Rispetto alle impostazioni di default proposte da pfSense consigliamo di inserire ad esempio:
– Scegliere Peer to peer (shared key) accanto a Server mode
– 2048 bit in corrispondenza di DH Parameter length
– Accanto a Tunnel Network inserire 10.0.8.0/24
– Nella casella Remote Network inserire 10.0.2.0/24

4) Copiare il contenuto del riquadro Shared key e salvarlo in locale, sul proprio PC, in un file di testo.

5) Portarsi in Firewall, Rules, cliccare su Add, importare UDP come protocollo sull’interfaccia WAN e 1194 nei campi Destination port range.

6) Spostandosi questa volta in Firewall, Rules, OpenVPN, basterà indicare Any in corrispondenza di Protocol e impostare la regola firewall, anche in questo caso, su Pass.

A questo punto la chiave crittografica potrà essere utilizzata per configurare un client OpenVPN e impostare una connessione sicura site-to-site.

Ti consigliamo anche

Link copiato negli appunti