Windous command line will help you open the port

2023-10-28 03:53:06
2023-10-28 03:53:06
How to open a port using Windous command line (7, 8, 10)? To do this, you need to open the search by simultaneously pressing the Win + S keys or use the search at the bottom of the panel. In the search column you should type “command line” or “cmd”. A regular login will not have any effect; the user needs to right-click on the command line block and select login as administrator in the menu that opens. In the window that opens, you must enter two commands sequentially. If the line entry was successful, the system will respond “OK”.
netsh advfirewall firewall add rule name=L2TP_TCP protocol=TCP localport=8001 action=allow dir=IN
netsh advfirewall firewall add rule name=L2TP_UDP protocol=UDP localport=8001 action=allow dir=IN
It is necessary to enter exactly two lines, but after entering each line, press the Enter key and wait for the terminal to respond. To work with the PPTP tunnel protocol, you must enter one more line.
netsh advfirewall firewall add rule name=ALL_GRE protocol=47 dir=in action=allow