Batch add firewall exception ports in Windows
Copy codeThe Code is as follows: echo off
Cls
Set var = 30000
Set end = 30010
: Continue
Set/a var + = 1
Echo add port % var %
Netsh firewall add portopening TCP % var % ftp_data _ % var %
If % var % lss % end % goto continue
Echo complete
Pause
The following article highlights that you can manually add them in order
Windows bulk Add firewall exception port
Copy Code code as follows:
echo off
Cls
Set var=30000
Set end=30010
: Continue
set/a var+=1
echo Add Port%var%
netsh firewall add portopening TCP%var% ftp_data_%var%
If%var% LSS%end% Goto Continue
Echo Complete
Pause
The following article features, if the order can be manually a
In the writing program, often encountered by the firewall interception situation, especially some network programs, whether external access or external connection, will be intercepted.
In most cases, Windows silently intercepts external internal connections, while internal access prompts the user for information.
Now we need to add our own program to the exception of the
Server cmd Enter mysqlmysql-u root-p input passwordOpen remoteGrant all privileges on * * to [email protected] '% ' identified by ' password ';Flush privileges; Then firewall release 3306 Port method/step
WINDOWS2008R2 System Firewall in the Control Panel to find (also can be found in the Server Manager)
Click to go to the 08 Firewall Settings tab and note
Step 2: Connect to the centos system by using the local machine or SSH, run the "/sbin/iptables-I input-P TCP -- dport 3306-J accept" command, and confirm.
If you want to open any port, write the port directly in the command. Generally, the default port for a web site is port 80, Tomcat is port 8080, and MySQL database is port 3306, the specific port numbers can be modified in your own software. Respect Original reprinted web site http://www.pc811.com/6/7/26004.html
Step 2: Run the "/etc/ini
Workaround for configuring Windows Server FTP to open firewall exception after you are unable to access it(a) on WINDOWS2003 server-side settings:1. First open the Control Panel to find Windows Firewall2. After opening Windows Firewall, select Allow program through Windows Firewall3. Then select Add Program4. Then click Browse to find C:\WINDOWS\system32\inetsrv\
How Windows Server 2012 Firewall adds a port exception methodIn a Windows Server 2012 system, if the user wants to open a port in the firewall, you can follow these steps:1. First click on the window icon in the bottom left corner of the desktop, click "Control Panel", then "Windows Firewall" will pop up the
Step 5: Use the local machine or ssh to connect to the centos system, run the "/sbin/iptables-I INPUT-p tcp -- dport 1st-j ACCEPT" command, and confirm the method.Note: If you want to open any port, write the port directly in the command. Generally, the default port for a web site is port 80, tomcat is port 8080, and mysql database is port 3306, the specific port numbers can be modified in your own software. To view the port information that has just been added to the
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.