1. redirection example I want to add an ip to prohibit access # Disable all ports/sbin/iptables-IINPUT-s5.39.67.46-pTCP-jDROP # Disable port 80/sbin/iptables-IINPUT-s183.2.145.98-pTCP -- dport80-jDROP1.2. redirect save/sbin/iptables-save 1. for
It is too cumbersome to configure iptables for several VPS. I saw a script for automatically configuring the iptables firewall in Zhu Ge's LNMP script. I borrowed it and changed it for the people who needed it; only common port settings are provided.
If you use CentOS frequently, you may encounter the same problems as me. If the firewall is enabled, port 80 cannot be accessed. For more information about centos, see. If you use CentOS frequently, you may encounter the same problems as me.
Iptables is an excellent nat + firewall tool in Linux. I used this tool to configure a flexible and powerful firewall + nat system in a low-configuration traditional pc, I have read many articles in this area on the Internet, but it seems that there
After CentOS is installed, if you want to open other ports, open the required ports. for example, open the default port 1666 of perforce and edit iptablesroot: vi/etc/sysconfig/iptables add-ARH-Firewall-1-INPUT-mstate -- stateNEW-mtcp-ptcp -- dport30
(I) basic actions list existing iptables policies iptables-L insert a policy iptables-IINPUT3-ptcp -- dport22-jACCEPT notes: all traffic that uses the TCP protocol and the target Port is 22 all allow to pass the order of 3 policy to delete a policy
PS: tcpdump is a tool used to intercept network groups and output group content. it is simply a packet capture tool. Tcpdump is the preferred tool for network analysis and troubleshooting in Linux based on its powerful functions and flexible
In Linux, add or subtract the date and format it. run the code www.2cto.com to format the system date to yyyymmdd and subtract the day. 1. java code: date + & quot; % B % e, % G & quot;-d & amp; #39;-1day & amp; #39; 2. use the Java code CUR in the
Differences between hosts files and network files in Linux there are two configuration files related to computer names in Linux: www.2cto. com1. hosts file, path:/etc/hosts. This article is used on the network to resolve the ing between the computer
How to develop and deploy a linux server in windows: For the above problem, Jun Ge believes that he has become accustomed to developing a program in windows but often needs to perform Code Testing in linux, it is indeed a problem we have encountered
In Linux, how does one output the echo-e & quot; \ 033 [44; 37; 5mME \ 033 [0 mCOOL & quot; command setting with color text in Shell script: the background color is blue, the foreground color is white, the font flashes, the output character ME, and
In Vim, the file recovery operation may not be performed using Vim in Linux many times, but some people do not know that Vim still has the file recovery function after an abnormal power failure. (Vim, you can also understand Vi. Vi on many machines
The preemptible linux process is accompanied by the execution of schedule. The kernel provides a TIF_NEED_RESCHED flag to indicate whether schedule () is used for scheduling once. The preemption can be divided into user preemption and kernel
Every day, Linux-recursively deletes files. we often face the following scenario: delete all files or directories under a given name under a directory tree. A typical example is to delete all. svn or. git folders under the source code directory.
Setting and modifying the IP address of the CentOS system when we use the CentOS system, we may feel that some settings are not suitable for ourselves. although they do not cause large errors, they do cause us a lot of trouble, next I will give you
Vi is the most common text editor on Linux/Unix. it is used to create, edit, and display text files. Www.2cto. comVi has no menu and only commands. Vifilename enters the command mode and the command mode enters the insert mode. you can use... vi is
Disable the Linux memory address randomization mechanism and disable process address space randomization. you can fix the base address, stack, and vdso page addresses of the mmap process. you can set kernel. randomize_va_space kernel parameters are
Set multiple IP addresses for NICs under RHEL5 in Linux. to solve some network access problems, you sometimes need to configure multiple IP addresses for one nic. in some documents, this is called AddsaliasesforDevice !. The following are some
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service