Zmiana portu RDP systemu Windows Server

Zmiana portu jest konieczna, ponieważ pozostawienie domyślnego ułatwia potencjalnym atakującym znalezienie możliwości połączenia się z serwerem. Najpierw należy otworzyć port.

Port można otworzyć z poziomu wiersza poleceń. Ważne! W poniższym poleceniu zamiast NEW_PORT wpisz numer portu, którym chcesz zastąpić domyślny port RDP.

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

lub w inny sposób:

Następnie należy przejść do"Panel sterowania" -"Zapora systemu Windows" -"Opcje zaawansowane"

W wyświetlonym oknie wybieramy "Nowa reguła"


Następnie wskazujemy port określony w punkcie 3, regułę, która będzie stosowana do połączeń z tym portem, typy sieci (tylko lokalne lub zewnętrzne) oraz nazwę reguły.


Zmiana portu

Otwórz edytor rejestru, w tym celu naciśnij Win + R i wpisz regedit

Otwórz gałąź
HKEY_LOCAL_MACHINE \ System \ CurrentControlSet \ Control \ TerminalServer \ WinStations \ RDP-Tcp

Wybierz parametr PortNumber, wybierz Decimal i zmień jego wartość na numer portu, którego planujesz używać, na przykład 55555 (domyślnie 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