Cambiare la porta RDP di Windows Server

La modifica della porta è necessaria perché lasciare quella predefinita rende più facile per i potenziali aggressori trovare opportunità di connessione al server. Per prima cosa è necessario aprire la porta.

È possibile aprire la porta dalla riga di comando. Importante! Nel comando sottostante, al posto di NEW_PORT, inserite il numero della porta con cui volete sostituire la porta RDP predefinita.

netsh advfirewall firewall add rule name="Custom RDP Port" dir=in action=allow protocol=TCP localport=NEW_PORT

o in un altro modo:

Accedere a"Pannello di controllo" -"Windows Firewall" -"Opzioni avanzate".

Nella finestra che appare, selezionare "Nuova regola".


Indichiamo quindi la porta specificata al punto 3, la regola che verrà applicata alle connessioni a questa porta, il tipo di rete (solo locale o anche esterna) e il nome della regola.


Cambiare la porta

Aprire l'editor del registro di sistema, premendo Win + R e digitando regedit.

Aprire il ramo
HKEY_LOCAL_MACHINE \ System \ CurrentControlSet \ Control \ TerminalServer \ WinStations \ RDP-Tcp

Selezionate il parametro PortNumber, scegliete Decimal e modificate il valore con il numero della porta che intendete utilizzare, ad esempio 55555 (per impostazione predefinita 3389).

How useful was this article?

VAT

  • Other

    Other

    0%
  • austria

    Austria

    20%
  • Belgium

    Belgium

    21%
  • Bulgaria

    Bulgaria

    20%
  • Croatia

    Croatia

    25%
  • Cyprus

    Cyprus

    19%
  • Czech Republic

    Czech Republic

    21%
  • Denmark

    Denmark

    25%
  • Estonia

    Estonia

    22%
  • France

    France

    20%
  • Finland

    Finland

    24%
  • Germany

    Germany

    19%
  • Greece

    Greece

    24%
  • Hungary

    Hungary

    27%
  • Ireland

    Ireland

    23%
  • Italy

    Italy

    22%
  • Latvia

    Latvia

    21%
  • Lithuania

    Lithuania

    21%
  • Luxembourg

    Luxembourg

    17%
  • Malta

    Malta

    18%
  • Netherlands

    Netherlands

    21%
  • Poland

    Poland

    23%
  • Portugal

    Portugal

    23%
  • Romania

    Romania

    19%
  • Slovakia

    Slovakia

    20%
  • Slovenia

    Slovenia

    %
  • Spain

    Spain

    21%
  • Sweden

    Sweden

    25%
  • USA

    USA

    0%
european
states
  • Other
  • canada
  • poland
  • european-union
  • france
  • germany
  • austria
  • austria
  • austria
  • austria
  • austria
  • austria
  • austria
  • austria
  • austria
  • austria
  • austria
  • austria
  • austria
  • austria
  • austria
  • austria
  • austria
  • austria
  • austria
  • austria
  • austria
  • austria
  • austria
  • austria
  • austria
  • austria
  • austria
  • austria
  • austria
  • austria