ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Firewall Configuration in Linux in Centos 6.2

    Scheduled Pinned Locked Moved IT Discussion
    centosiptableslinuxunixnetstatcentos 6
    81 Posts 7 Posters 20.1k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • scottalanmillerS
      scottalanmiller
      last edited by

      netstat -tulpn tells you a lot.

      1 Reply Last reply Reply Quote 0
      • LakshmanaL
        Lakshmana @A Former User
        last edited by

        @thecreativeone91 Ok all.How to design the Firewall block diagram?I need to do basic firewall in Centos and how to do?

        scottalanmillerS 1 Reply Last reply Reply Quote 0
        • scottalanmillerS
          scottalanmiller
          last edited by

          Just as important, or moreso, than a firewall is patching that system. That system is years without patches. It is a VERY dangerous system that you have there.

          LakshmanaL 1 Reply Last reply Reply Quote 2
          • scottalanmillerS
            scottalanmiller @Lakshmana
            last edited by

            @Lakshmana said:

            @thecreativeone91 Ok all.How to design the Firewall block diagram?I need to do basic firewall in Centos and how to do?

            Never done a block diagram for a firewall. Just need a list of the ports that are needed.

            1 Reply Last reply Reply Quote 0
            • LakshmanaL
              Lakshmana @scottalanmiller
              last edited by

              @scottalanmiller I need to configure basic firewall by opening SSH and Ping ports only.

              StrongBadS 1 Reply Last reply Reply Quote 0
              • thanksajdotcomT
                thanksajdotcom
                last edited by

                Install Fail2Ban as well.

                StrongBadS LakshmanaL 2 Replies Last reply Reply Quote 1
                • StrongBadS
                  StrongBad @thanksajdotcom
                  last edited by

                  @thanksajdotcom said:

                  Install Fail2Ban as well.

                  Good advice. Fail2Ban is excellent. It automates some important firewall tasks.

                  1 Reply Last reply Reply Quote 2
                  • LakshmanaL
                    Lakshmana @thanksajdotcom
                    last edited by

                    @thanksajdotcom I need to do in IPtables only for the configuration for the firewall at linux OS(Centos)

                    1 Reply Last reply Reply Quote 0
                    • StrongBadS
                      StrongBad @Lakshmana
                      last edited by

                      @Lakshmana said:

                      @scottalanmiller I need to configure basic firewall by opening SSH and Ping ports only.

                      Ping does not use a part. It is not part of either TCP or UDP but of ICMP which is portless.

                      LakshmanaL 1 Reply Last reply Reply Quote 0
                      • LakshmanaL
                        Lakshmana @StrongBad
                        last edited by

                        @StrongBad How to do a block diagram for designing the Firewall?

                        thanksajdotcomT StrongBadS 2 Replies Last reply Reply Quote 0
                        • thanksajdotcomT
                          thanksajdotcom @Lakshmana
                          last edited by

                          @Lakshmana said:

                          @StrongBad How to do a block diagram for designing the Firewall?

                          What do you mean? You need to know which ports to have open, whether that's 80 (HTTP), 22 (SSH), 443 (HTTPS) or what, and then you do a deny all at the bottom, which basically says that if you didn't open it, it's blocked.

                          LakshmanaL 1 Reply Last reply Reply Quote 0
                          • LakshmanaL
                            Lakshmana @thanksajdotcom
                            last edited by

                            @thanksajdotcom I need to open Port number 22 (SSH),and also Ping.I need to do the block diagram to design the process?

                            thanksajdotcomT StrongBadS 2 Replies Last reply Reply Quote 0
                            • thanksajdotcomT
                              thanksajdotcom @Lakshmana
                              last edited by

                              @Lakshmana said:

                              @thanksajdotcom I need to open Port number 22 (SSH),and also Ping.I need to do the block diagram to design the process?

                              As @StrongBad said, ping doesn't have a port. It's ICMP as the traffic type, so it doesn't use a TCP or UDP port. It should be good to go already.

                              LakshmanaL 1 Reply Last reply Reply Quote 0
                              • LakshmanaL
                                Lakshmana @thanksajdotcom
                                last edited by

                                @thanksajdotcom said:

                                s ICMP as the traffic typ
                                OK but how can i make the other system in the same network as well as other network to be easily ping the system.

                                thanksajdotcomT 1 Reply Last reply Reply Quote 0
                                • StrongBadS
                                  StrongBad
                                  last edited by

                                  ICMP (Ping and TraceRoute) should be enabled by default. Have you tested them to see if they are already blocked?

                                  thanksajdotcomT 1 Reply Last reply Reply Quote 1
                                  • thanksajdotcomT
                                    thanksajdotcom @Lakshmana
                                    last edited by

                                    @Lakshmana said:

                                    @thanksajdotcom said:
                                    s ICMP as the traffic typ
                                    OK but how can i make the other system in the same network as well as other network to be easily ping the system.

                                    If they're on the same network, you don't have to do anything to enable it. Just type ping ip.of.the.device or the hostname.

                                    LakshmanaL 1 Reply Last reply Reply Quote 0
                                    • thanksajdotcomT
                                      thanksajdotcom @StrongBad
                                      last edited by

                                      @StrongBad said:

                                      ICMP (Ping and TraceRoute) should be enabled by default. Have you tested them to see if they are already blocked?

                                      Exactly. You're freaking out about enabling them when they are enabled by default, so unless you did something SPECIFIC TO DISABLE THEM, they are already working.

                                      1 Reply Last reply Reply Quote -1
                                      • StrongBadS
                                        StrongBad @Lakshmana
                                        last edited by

                                        @Lakshmana said:

                                        @thanksajdotcom I need to open Port number 22 (SSH),and also Ping.I need to do the block diagram to design the process?

                                        Port 22 is open by default as well. How did these get closed?

                                        thanksajdotcomT 1 Reply Last reply Reply Quote 1
                                        • LakshmanaL
                                          Lakshmana @thanksajdotcom
                                          last edited by

                                          @thanksajdotcom So now I have to use only SSH as open to use the protocol.How to do block diagram?

                                          thanksajdotcomT 1 Reply Last reply Reply Quote 0
                                          • thanksajdotcomT
                                            thanksajdotcom @StrongBad
                                            last edited by

                                            @StrongBad said:

                                            @Lakshmana said:

                                            @thanksajdotcom I need to open Port number 22 (SSH),and also Ping.I need to do the block diagram to design the process?

                                            Port 22 is open by default as well. How did these get closed?

                                            Exactly. Especially if this is a server, you shouldn't have a GUI by default, meaning you MUST have SSH access as it is.

                                            1 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 3
                                            • 4
                                            • 5
                                            • 1 / 5
                                            • First post
                                              Last post