Set Firewall rule Restart failure

Source: Internet
Author: User
Tags sybase sybase database

Problem Description:

Security Scan port, the following security rectification recommendations
192.168.229.40 4100 requires no open Sybase database port, precise access control, only for trusted addresses
132.228.166.14 1433 requires not open SQL2000 database port, do precise access control, only open to the trust address

Workaround:

I add the following firewall rules on the corresponding host,

Iptables-i input-p TCP--dport 4100-j DROP iptables-i input-s 192.168.229.40-p tcp--dport 4100-j ACCEPT

192.168.229.40 only allow 4100 port access to this machine;

Iptables-i input-p TCP--dport 1433-j DROP iptables-i input-s 132.228.166.14-p tcp--dport 1433-j ACCEPT

132.228.166.14 only allow 1433 port access to this machine;

[[Email protected] sybase]# service iptables restart Clears firewall rules:                                              [set  chains  to  ACCEPT  policy:filter nat                    [OK] uninstalling  iiptables   Module:                                   [ OK] Apply  iptables  firewall rules:                                   [OK] load additional  iptables  Module:ip_conntrack_netbios_ns             [OK]

After restarting the Firewall service, it was found that the firewall rules that had just been set did not take effect, and finally, by looking at the official documents of Iptables, it was found that the firewall would be permanently

/etc/sysconfig/iptables add the appropriate rules;

Set Firewall rule Restart failure

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.