Iptables setting rules in the openstack computing node

Source: Internet
Author: User
Open Virtual Machine vnc port, dns, bootps and other ports. Create the chain and rules required for the nova-compute and nova-network. manually add and create virtual machines with the same effect. Iptables-IINPUT1-ptcp-mmultiport -- dport5900: 6200,53-jACCEPTiptables-IINPUT1-pudp-m Open Virtual Machine vnc port, dns, bootps and other ports. Create the chain and rules required for the nova-compute and nova-network. manually add and create virtual machines with the same effect.

Iptables-I INPUT 1-p tcp-m multiport -- dport 5900: 6200,53-j ACCEPT
Iptables-I INPUT 1-p udp-m multiport -- dport 53,67-j ACCEPT
Iptables-t filter-N nova-compute-FORWARD
Iptables-t filter-N nova-compute-INPUT
Iptables-t filter-N nova-compute-OUTPUT
Iptables-t filter-N nova-compute-inst
Iptables-t filter-N nova-compute-local
Iptables-t filter-N nova-compute-provider
Iptables-t filter-N nova-compute-sg-fallback
Iptables-t filter-a input-j nova-compute-INPUT
Iptables-t filter-a forward-j nova-compute-FORWARD
Iptables-t filter-a output-j nova-compute-OUTPUT
Iptables-t filter-A nova-compute-sg-fallback-j DROP
Iptables-t filter-A nova-filter-top-j nova-compute-local
Iptables-t filter-A nova-network-FORWARD-I br100-j ACCEPT
Iptables-t filter-A nova-network-FORWARD-o br100-j ACCEPT
Iptables-t filter-A nova-network-INPUT-I br100-p udp-m udp -- dport 67-j ACCEPT
Iptables-t filter-A nova-network-INPUT-I br100-p tcp-m tcp -- dport 67-j ACCEPT
Iptables-t filter-A nova-network-INPUT-I br100-p udp-m udp -- dport 53-j ACCEPT
Iptables-t filter-A nova-network-INPUT-I br100-p tcp-m tcp -- dport 53-j ACCEPT
Iptables-t nat-N nova-compute-OUTPUT
Iptables-t nat-N nova-compute-POSTROUTING
Iptables-t nat-N nova-compute-PREROUTING
Iptables-t nat-N nova-compute-float-snat
Iptables-t nat-N nova-compute-snat
Iptables-t nat-a prerouting-j nova-compute-PREROUTING
Iptables-t nat-a postrouting-j nova-compute-POSTROUTING
Iptables-t nat-a output-j nova-compute-OUTPUT
Iptables-t nat-A nova-compute-snat-j nova-compute-float-snat
Iptables-t nat-A nova-postrouting-bottom-j nova-compute-snat

/Etc/init. d/iptables save

Related Article

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.