CentOS system settings iptables

Edit/etc/sysconfig/iptables and run/sbin/serviceiptablesrestart. The rule will not be lost after the system restarts. You can also use the command line method to add rules (rules will be lost after the system is restarted). The following are common

CentOS iptables configuration

I. required command: view the configuration information iptables-L-n. remember to save/etc/init. d/iptablessave and add the input record iptables-AINPUT-ptcp? Dport22-jACCEPT add output records iptables-AOUTPUT-ptcp? Sport22-jACCEPT default port for

Configure iptables firewall logs

# Modify syslog. conf file # vi/etc/syslog. conf (add the following content) kern. warning/var/log/iptables. log # Create a log file # touch/var/log/iptables. log # Restart the syslog daemon #/etc/init. d/syslogrestart # configure iptabl # modify

Basic iptables and case configuration

The IPTables table and the link function IPTables have three tables: filter table, nat table, and mangle table 1. the filter table is mainly used for filtering, in IPTables, almost all filtering is done in this table. it is the default table

Differences between RHEL (RedHatEnterpriseLinux) and CentOS (10)

1. tell us the difference between RHEL and CentOS. RHEL is a paid service, centOS is a free service 2. the differences between RHEL/CentOS and other series of Linux releases are mainly different from the package management mechanisms of other Linux

CentOS6iptables: open port 80330622

CentOS6iptables open port 80330622 and so on #/sbin/iptables-IINPUT-ptcp -- dport80-jACCEPT #/sbin/iptables-IINPUT-ptcp -- dport22-jACCEPT #/sbin/iptables-IINPUT-ptcp -- dport3306-jACCE CentOS 6 IptablesOpen port 80 3306 22, etc. #/Sbin/iptables-I

Use iptables firewall to configure nat instances

This article describes how to use iptables to create NAT in linux. we can use it as a gateway so that multiple machines in the Lan can use a public IP address to connect to the Internet. the method I use is to override the source address and target

Bugzilla installation configuration process record

I configured a bugzilla in the previous group because of project requirements, and encountered some minor problems in the middle, so I recorded the process. after several months of operation, I moved from the Internet to the intranet, these two

Iptables firewall settings

# Open DNS on this host and external DNS host interaction queries: use udpiptables-AOUTPUT-oeth0-pudp-s $ FW_IP -- sport53-dany/0 -- dport53-jACCEPTiptables-AINPUT-ieth0-pudp-sany/0 -- sport53-d $ FW_IP -- dport53-j # Enable interaction between DNS

How to use the tcpdump command

The first type keyword mainly includes host, net, port, such as host210.27.48.2, specifying 210.27.48.2 as a host, net202.0.0.0 specifying 202.0.0.0 as a network address, and port23 specifying port number as 23. If no type is specified, the default

Iptables firewall and log system

Example 1), # iptables? AINPUT? Ptcp -- dport22? JLOG -- log-level5 -- log-prefix "IPTABLES:" -- log-level: log level is 5, -- log-prefix information is "IPTABLES:" for why log level is 5, possible IptablesAn example of using the firewall with the

Common commands for Linux statistical port connection

View connections across all port 80 netstat-nat | grep-i80 | wc-l sort connected IP addresses by number of connections netstat-ntu | awk {print $5} | cut-d: -f1 | sort | uniq-c | sort-n view TCP connection status netstat-nat | awk {print $6} | sort |

A collection of 32 cool Unix terminal/Console Tools

The tool under 32 command lines is listed here. Some of them are unknown, some are very useful, and some are obscure-I hope you can find some useful tools you don't know! The tool under 32 command lines is listed here. Some of them are unknown, some

LinuxShell common condition judgment

LinuxShell common conditions determine common system variables www.2cto.com $0 name of the current program $ n name of the current program n parameters, n1, 2, & hellip; 9 $ * any parameters of the current program (excluding the program itself) $ #

Content of the menu. lst file of the Grub startup item of CentOS6.3

Menu of the Grub startup item of CentOS6.3. the content of the lst file may vary depending on the disk partitions installed on different machines, but the basic information is similar. you can use it as a reference: www.2cto.com # grub.

Powerful grep command

The powerful grep command explains the grep command on the internet. it basically translates man commands. to tell the truth, forget it after reading it! I personally think that the best way to learn commands is to simulate the real environment,

Backtrak wireless configuration

Backtrak wireless configuration I used backtrack not to crack it, but because I saw a lot of themoreyouareabletohear.www.2cto.com I said how backtrack wireless Internet access, actually bt... Backtrak wireless configuration is not used to crack the

Case usage in shell

Case Statement in shell: it can match the variable content with multiple templates, and then decide which part of the code should be executed based on the template that matches successfully. Format of use for www.2cto.com: case matching mother board

Grep search for keywords in the file

The keyword -- r in the grep search file indicates recursion, and n indicates that the display line number include indicates that only php, hello, world indicates the search content, and mydir indicates the search directory www.2cto. comgrep-nr --

The centosmake command cannot be used.

The centosmake command cannot be used to solve the problem encountered when installing software under centos5. google circled it because the system did not install the compiler, so just install it. Www.2cto.com solution: Enter the following command

Total Pages: 2732 1 .... 2444 2445 2446 2447 2448 .... 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.