Linux IP address commands

Source: Internet
Author: User
Command about linux IP address description single IP address command is iptables-IINPUT-s211.1.0.0-jDROPwww.2cto.com IP address segment command is iptables-IINPUT-s211.1.0.0/16-jDROPiptables-IINPUT-s211.2.0.0/16...
Commands for linux IP address encapsulation: the command for a single IP address is iptables-I input-s 211.1.0.0-j DROP www.2cto.com. the command for IP address encapsulation is iptables-I INPUT-s 211.1.0.0/16-j. DROP iptables-I input-s 211.2.0.0/16-j DROP iptables-I input-s 211.3.0.0/16-j DROP command for the entire segment is iptables-I INPUT-s 211.0.0.0/8 -the command for j DROP mails of several segments is iptables-I input-s 61.37.80.0/24-j DROP iptables-I INPUT-s 61.37.81.0/24-j DROP www.2cto.com. the server has three self-running commands. methods: 1. add it to/etc/rc. l In ocal, 2. iptables-save>;/etc/sysconfig/iptables can put your current iptables rules in/etc/sysconfig/iptables. The system will automatically execute iptables when it starts. 3. service iptables save can also put your current iptables rules in/etc/sysconfig/iptables. The system automatically runs iptables when it starts. The last two methods are better. Generally, the iptables service will be started before the network service. more secure unblocking: iptables-L INPUTiptables-L -- line-numbers and then the iptable-d input number author wlbbswl

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.