SuSE Linux immediately shut down firewall commands and specified open ports

Source: Internet
Author: User

SuSE firewall command

Linux :~ # Chkconfig-list | grep-I fire
Susefirewall2_init 0: off 1: off 2: off 3: off 4: off 5: off 6: Off
Susefirewall2_setup 0: off 1: off 2: off 3: off 4: off 5: off 6: Off

SuSE firewall Stop command now

Linux :~ # Susefirewall2 stop
Susefirewall2: Warning: ip6tables does not support State matching. Extended IPv6 support disabled.
Susefirewall2: Batch committing...
Susefirewall2: Firewall Rules unloaded.

The test passed in suse11.2.

Bytes -----------------------------------------------------------------------------------

The default SuSE firewall is used to disable all external connections. If you want to open a port, You have to modify the firewall settings to open the port. This article describes how to modify the SuSE firewall settings to open a specified port.

Manual modification:

# Vi/etc/sysconfig/susefirewall2

# TCP port:

Fw_services_ext_tcp = "6000"

# UDP port status:

Fw_services_ext_udp = "177"

Effective firewall settings:

# Rcsusefirewall2 restart

/Sbin/susefirewall2 start

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.