Question: Due to scientific research requirements, most of our departments do not use Windows system, but use Linux, very unaccustomed, a boot is a dark interface, like the legendary DOS. Fortunately, the software for doing research has instructions, but the Linux firewall is not mentioned, I am worried about worms or backdoor intrusions, how to start?
Answer: Because you didn't specify which Linux distribution, but the underlying things of Linux are basically the same, so the method that Xiaobian gives you is effective for most distributions. Linux's own firewall is called "iptables". The dark thing you said is the terminal. Open the firewall by entering the following command in the terminal:
chkconfig iptables on
If you close the firewall, enter:
chkconfig iptables off
The above two commands must restart the system. To be effective.
If you don't want to take effect immediately by rebooting the system, you can use the "service" command. The disadvantage is that the settings will be lost after rebooting the system.
The firewall is turned on:
service iptables start
Close the firewall:
service iptables stop
To set some port switches in the firewall, you can modify Edit the /etc/sysconfig/iptables file. For example, to enable SSH port 22, you can add the following:
-A RH-Firewall-1-INPUT -m state -state NEW -m tcp -p tcp ― ―dport 22 -j ACCEPT
In short, the "ptables" function is very powerful, so you can't make it clear here. For details, please refer to the "ptables" information.
Requirement Description Set SNAT policy using iptables Make hosts on 192.168.100.0/24 network segmen
Overview This article describes how to transfer files between a Linux host and a Windows host. Beca
The SELinux function is an implementation of mandatory access control, which can
Windows, Linux systems support interface themes, you can easily change your face, and it is not dif
Linux awk built-in variable introduction
What if your Unix/Linux chmod file is canceled with the x attribute?
The Linux ls command parameters are detailed
Linux new file permissions issue
Configuration Notes on Strengthening Linux Operating System Security
Seven points of advice on learning Linux
Rescue mode after a serious fault in the Linux operating system
Linux adsl dialing and sharing Internet
Tizen 1.0 released Linux-based mobile operating system
How to install varish as a cache and proxy
How to prevent and prevent Dyreza Trojans from attacking Win10 and Edge?
Win7 manually enable Windows Event Log service error solution
Windows 10 IoT Core IoT Released Free Download
Demystifying the windows system directory function
Solve the Win 7 system blue screen processing settings operation
A thrilling scene, win7 64-bit system memory is not fully recognized
How to solve the problem that the start menu is not running
Win10 official version does not receive the 10586 version of the update push how to do?