centos 5

Discussion in 'Server Operation' started by aaa999, Nov 26, 2007.

  1. aaa999

    aaa999 New Member

    HI,


    ok I like the linux server, after I follow the hoto centos 5. server setup is working well.

    but now I want to tur some firewall on, so I restart the iptabels and loaded at startup, now I can access my website, ftp, and webadmin.

    can some some one give the the instructions: hot to correc this. I reading on the iptables some where on centos site, but not really quite understand.

    TIA.
     
  2. 40esp

    40esp New Member

    why would you want a firewall?

    if you have ispconfig, theres an included firewall.
     
  3. aaa999

    aaa999 New Member

    no isp loaded I load webadmin
     
  4. aaa999

    aaa999 New Member

    here is the iptables: list
    [[email protected] ~]# iptables -L
    Chain INPUT (policy ACCEPT)
    target prot opt source destination
    RH-Firewall-1-INPUT all -- anywhere anywhere

    Chain FORWARD (policy ACCEPT)
    target prot opt source destination
    RH-Firewall-1-INPUT all -- anywhere anywhere

    Chain OUTPUT (policy ACCEPT)
    target prot opt source destination

    Chain RH-Firewall-1-INPUT (2 references)
    target prot opt source destination
    ACCEPT all -- anywhere anywhere
    ACCEPT icmp -- anywhere anywhere icmp any
    ACCEPT esp -- anywhere anywhere
    ACCEPT ah -- anywhere anywhere
    ACCEPT udp -- anywhere 224.0.0.251 udp dpt:mdns
    ACCEPT udp -- anywhere anywhere udp dpt:ipp
    ACCEPT tcp -- anywhere anywhere tcp dpt:ipp
    ACCEPT all -- anywhere anywhere state RELATED,ESTAB LISHED
    ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:6 677
    ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:s sh
    ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:h ttp
    ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:f tp
    ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:h ttps
    REJECT all -- anywhere anywhere reject-with icmp-ho st-prohibited
    [[email protected] ~]#
     
  5. falko

    falko Super Moderator ISPConfig Developer

    On CentOS 5.0, you can reconfigure the firewall by running
    Code:
    system-config-securitylevel
     

Share This Page