News :: Science & Tech :: Computer :: Software

Last Updated: 2/18/2013 3:06:38 PM
Visits | Place Your Comments | Printable Version | Email this to a friend


Default Centos 5.9 iptables rules Plus web ports

# Firewall configuration written by system-config-securitylevel
# Manual customization of this file is not recommended.
*filter
:FORWARD ACCEPT [0:0]
:INPUT ACCEPT [0:0]
:RH-Firewall-1-INPUT - [0:0]
:OUTPUT ACCEPT [0:0]
-A INPUT -j RH-Firewall-1-INPUT
-A FORWARD -j RH-Firewall-1-INPUT
-A RH-Firewall-1-INPUT -i lo -j ACCEPT
-A RH-Firewall-1-INPUT -p icmp --icmp-type any -j ACCEPT
-A RH-Firewall-1-INPUT -p 50 -j ACCEPT
-A RH-Firewall-1-INPUT -p 51 -j ACCEPT
-A RH-Firewall-1-INPUT -p udp -d 224.0.0.251 --dport 5353 -j ACCEPT
-A RH-Firewall-1-INPUT -p udp -m udp --dport 631 -j ACCEPT
-A RH-Firewall-1-INPUT -p tcp -m tcp --dport 631 -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
-A RH-Firewall-1-INPUT -p tcp -m tcp -m multiport -m state --state NEW -j ACCEPT --dports 22,80,443,7778,10000
-A RH-Firewall-1-INPUT -j REJECT --reject-with icmp-host-prohibited
COMMIT
# Generated by webmin
*mangle
:FORWARD ACCEPT [0:0]
:INPUT ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
:PREROUTING ACCEPT [0:0]
:POSTROUTING ACCEPT [0:0]
COMMIT
# Completed
# Generated by webmin
*nat
:OUTPUT ACCEPT [0:0]
:PREROUTING ACCEPT [0:0]
:POSTROUTING ACCEPT [0:0]
COMMIT
# Completed


Source: Shot4u

Share with others


Comments


 

Latest updates

RSS






Search

Quick Search
Exact phrase  All words  Any word

News letter

Google Groups
Email:

Show in your site

Do you want to feed your website visitors with latest updates from our site?.
Simply get the category code here.

Our Partners

  • Iran Hot Links
    Iran's biggest website directory.
  • Shot4u Design Studio
    Web based application development experts.
  • Shot4u Shop
    One stop shop for domain registration and web hosting quality services.
  • The 5th Dimension
    Graphic, Interior Design, and Print services masters.
  •  Notice: Undefined index: REQUEST_URI in C:\HostingSpaces\mrvahid\shenidar.com\wwwroot\sec\news\cache\tnx.php on line 89 Notice: Undefined index: REQUEST_URI in C:\HostingSpaces\mrvahid\shenidar.com\wwwroot\sec\news\cache\tnx.php on line 94 Notice: Undefined index: DOCUMENT_ROOT in C:\HostingSpaces\mrvahid\shenidar.com\wwwroot\sec\news\cache\tnx.php on line 124

    PHP Notice: Undefined index: REQUEST_URI in C:\HostingSpaces\mrvahid\shenidar.com\wwwroot\sec\news\cache\tnx.php on line 89 PHP Notice: Undefined index: REQUEST_URI in C:\HostingSpaces\mrvahid\shenidar.com\wwwroot\sec\news\cache\tnx.php on line 94 PHP Notice: Undefined index: DOCUMENT_ROOT in C:\HostingSpaces\mrvahid\shenidar.com\wwwroot\sec\news\cache\tnx.php on line 124