In linux, the firewall is a tool named iptables. Next I will introduce you to the commands for enabling the relevant ports and disabling the linux Firewall (iptables) in iptables firewall, I hope this method will be helpful to you.
1) It takes effect permanently and will not be restored after restart
Enable:
The Code is as follows:
Copy code
we use is to connect the Virtual Machine bridge to the physical network, occupying the IP address of the physical LAN, to achieve communication between the virtual machine and the physical machine and cross-Physical Machine Communication. Build a virtual machine again, this time using virtualbox View Firewall Disable Firewall Chkconfig -- list to view all
Redhat uses SELinux to enhance security. The closing method is as follows: 1. permanently modify selinux = "" in the/etc/SELINUX/config file to disabled, and then restart. 2. the setenforce 0 method to disable the firewall is as follows: 1. permanently enabled: chkconfig iptables on Disabled: chkconfig iptables off2. effective immediately. Disabled upon restart: service iptables start disabled: the service
The firewall in Linux mainly sets and manages iptables.
1. restart the system to take effect
Enable: chkconfig iptables on
Close: chkconfig iptables off
2. It takes effect immediately and becomes invalid after restartEnable: Service iptables startDisable: Service iptables stop
You can use the preceding command to enable or disable other services in Linux.
When the
Change the default keyboard to eliminate text garbled characters
Windows XP has multiple versions. After a non-Chinese version of Windows XP is installed, the default language in the region option is the language of another country or region. Although you can add a Chinese Language Pack to change the interface to Chinese, there is still a small problem-when the default input language is not "simplified (or traditional) Chinese-American keyboard, you paste text from some applications to notepad
Because the system restarts the firewall and is automatically enabled, SSH remote login fails. Therefore, you must permanently disable the built-in firewall. The command is as follows:
# Chkconfig -- list | grep fire
Susefirewall2_init 0: off 1: off 2: off 3: off 4: off 5: off 6: off B: OnSusefirewall2_setup 0: off 1: off 2: off 3: off 4: off 5: off 6: Off
W
1. Find the "computer" icon on the desktop and double-click it (xp is all different from my computer). Select the "control panel" details, as shown in the following figure.2. Find windows Firewall and click it.3. Click open or close windows firewall on the open interface. You can disable the firewall
Modify the Registry to enable or disable the Windows Firewall port. Take Remote Desktop port 3389 as an example:
Setport. bat
@ Echo offSet Ts = "HKLM \ System \ CurrentControlSet \ Control \ Terminal Server"Set list = "HKLM \ System \ CurrentControlSet \ Services \ sharedaccess \ ParametersSet list = % List % \ firewallpolicy \ standardprofile \ globallyopenports \ list"
: Open port 3389If [%
1, # Chkconfig--list: Display the service that can start automatically on bootResults: iptables 0:off 1:off 2:on 3:on 4:on 5:on 6:off indicates that the iptables power on 2, 3, 4, 5-level service automatically.2. # chkconfig--ADD command name: Add Power on auto start command name ServiceChkconfig--add iptables: Boot automatically start iptables service;After power-on through the command iptables-l-n check whether the setting is successful;3. # chkconfig--del command name: Delete boot command nam
Modify selinux = disabled in the/etc/SELINUX/config file, and then restart the server.
Disable SELinux in Linux
1) it takes effect permanently after restart:
Modify selinux = disabled in the/etc/SELINUX/config file, and then restart the server.
2) it takes effect immediately and becomes invalid after restart:
Run the setenforce 0 command.
Appendix:
Setenforce 1 sets SELinux to enforcing mode
Setenforce 0 sets SELinux to permissive mode
Generally, iptables is included in the Linux release.Run iptables -- version to check whether iptables is installed.
Start iptables:Service iptables start
View the iptables rule set:Iptables -- list
The following figure shows the iptables when no planning is defined:Chain input (Policy accept)Target prot opt source destinationChain forward (Policy accept)Target prot opt source destinationChain output (Policy accept)Target prot opt source destination
How to enable/
Objective:
Do not know the safety of the game is how, but it must be the day to go, then the story came, Daniel will certainly be crazy IP, just at the beginning is definitely a section of the spree. How can I let him not sweep you? This is the article. In fact, it's all just ICMP.
Windows2003 Operation:WINDOW7/8/10 operationNew inbound rule and custom rules, next, next.Then such as:Use Windows Firewall to
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.