How to automatically save iptables rules in CentOS

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

One-click configuration script for CentOSiptables firewall

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.

Enable port 80 in iptables firewall

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.

Principles and Applications of iptables firewall

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

How to enable port and view rules in CentOS iptables

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

Enable common ports in iptables firewall

# Enable port 22 iptables-AINPUT-ptcp -- dport22-jACCEPTiptables-AOUTPUT-ptcp -- sport22-jACCEPT # Disable all ports iptables-PINPUTDROPiptables-PFORWARDDROPiptables-POUTPUTDROP # enable port 80, HTT # enable port 22 Iptables-A input-p tcp -- dport

Basic configuration of iptables firewall

(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

Introduction to tcpdump commands in Linux

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

How to capture packets using tcpdump in android

Adbrootadbremountadbpush/wherever/you/put/tcpdump/system/xbin/tcpdumpadbshellchmod6755/data/local/tmp/logs/wherever/you/put/tcpdump/s adb root Adb remount Adb push/wherever/you/put/ Tcpdump/System/xbin/ Tcpdump Adb shell chmod

Add, subtract, and format dates in Linux

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

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 linux servers in windows

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

How to output color text with Shell scripts in Linux

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

File recovery after power failure in Vim

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

Linux process preemption

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

A little Linux every day --- recursively delete files

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.

Set and modify CentOS system IP address details

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

Common commands for text editor Vi

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 Linux memory address randomization

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 the NIC under RHEL5

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

Total Pages: 2732 1 .... 891 892 893 894 895 .... 2732 Go to: GO

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.