Linux Firewalls and selinux__php

Source: Internet
Author: User
Tags ssh iptables

1. Shutdown Firewall permanently effective
Open: Chkconfig iptables on
Close: chkconfig iptables off immediate effect
Open: Service iptables start
OFF: Service iptables stop view
Chkconfig–list iptables

2. Close SELinux permanently valid
Modify the Selinux= "" in the/etc/selinux/config file as disabled, and then reboot to take effect immediately
Setenforce 0 View
Sestatus

3. Close the IPv6 firewall
Chkconfig Ip6tables off

4. UFW Firewall
Iptables is too cumbersome, UFW support interface operation enabled/disabled
UFW Enable
UFW Disable Allow/disable ports
UFW allow 22
UFW Delete allow 22 allow/disable services
UFW Allow SSH
UFW delete allow SSH allow/disable IP
UFW allow from 192.168.60.219
UFW Delete allow from 192.168.60.219 allow/disable TCP
UFW Allow 22/tcp
UFW Delete Allow 22/tcp View status
UFW status

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.