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

    Firewall Configuration in Linux in Centos 6.2

    IT Discussion
    centos iptables linux unix netstat centos 6
    7
    81
    19.5k
    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.
    • LakshmanaL
      Lakshmana @scottalanmiller
      last edited by

      @scottalanmiller Whether a firewall can have IP address of Gateway.Whether it is possible to have?

      ? scottalanmillerS 2 Replies Last reply Reply Quote 0
      • ?
        A Former User @Lakshmana
        last edited by

        @Lakshmana said:

        @scottalanmiller Whether a firewall can have IP address of Gateway.Whether it is possible to have?

        What are you asking? I'm not sure.

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

          @Lakshmana said:

          @scottalanmiller Whether a firewall can have IP address of Gateway.Whether it is possible to have?

          No, firewalls are like filters. They have no concept of gateways or routes.

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

            @scottalanmiller Ok I am having the WAN network as 192.168.1.0/24 and firewall in betwwen the LAN connection.What is the IP needs to be given to Firewall?

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

              I don't understand. The firewall on Linux has no IP address or anything like that. Have you switched from talking about Linux to something completely different?

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

                @scottalanmiller No I am talking about only in linux firewall

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

                  @Lakshmana said:

                  @scottalanmiller No I am talking about only in linux firewall

                  Then there is no need to talk IP addresses. Ports are all that you need to know.

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

                    @scottalanmiller
                    I have to assign IP for the VM machines I going to install.The requirements are 512 MB RAM,10 GB Hard disk and Centos minimal desktop.I have to use 3 NIC.That is One NIC for allowing WAN,one NIC for LAN and other for my VMmachine

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

                      @Lakshmana said:

                      @scottalanmiller
                      I have to assign IP for the VM machines I going to install.The requirements are 512 MB RAM,10 GB Hard disk and Centos minimal desktop.I have to use 3 NIC.That is One NIC for allowing WAN,one NIC for LAN and other for my VMmachine

                      Yes, but the IP has nothing to do with the firewall. The firewall in Linux works off ports as a rule. You can restrict access to the machine from certain IP ranges, but the default is to either allow all IPs to a port or deny all.

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

                        @Lakshmana said:

                        @scottalanmiller
                        I have to assign IP for the VM machines I going to install.The requirements are 512 MB RAM,10 GB Hard disk and Centos minimal desktop.I have to use 3 NIC.That is One NIC for allowing WAN,one NIC for LAN and other for my VMmachine

                        Sure, but why are you connecting that to configuring the firewall? Setting up the basic networking and configuring the firewall are unrelated activities.

                        ? 1 Reply Last reply Reply Quote 1
                        • ?
                          A Former User @scottalanmiller
                          last edited by A Former User

                          @scottalanmiller said:

                          @Lakshmana said:

                          @scottalanmiller
                          I have to assign IP for the VM machines I going to install.The requirements are 512 MB RAM,10 GB Hard disk and Centos minimal desktop.I have to use 3 NIC.That is One NIC for allowing WAN,one NIC for LAN and other for my VMmachine

                          Sure, but why are you connecting that to configuring the firewall? Setting up the basic networking and configuring the firewall are unrelated activities.

                          Wait are you configuring this machine as a VM Host or either a router/gateway device? Something seems odd.

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

                            I think that you should back up and talk to us about your goals, rather than getting stuck in small technical details. You are asking tiny questions that are very specific but are not telling us what you are trying to accomplish. So the information that we give you might be dangerous or wrong because you were not sure what question to ask.

                            You are skipping the steps that allow a community like this to help you help yourself. We need a bigger picture so that we can help with solutions before you get stuck or into a dangerous position.

                            thanksajdotcomT 1 Reply Last reply Reply Quote 0
                            • ?
                              A Former User
                              last edited by

                              http://community.spiceworks.com/topic/254525-asking-better-questions - Just Saying.

                              scottalanmillerS 1 Reply Last reply Reply Quote 1
                              • scottalanmillerS
                                scottalanmiller @A Former User
                                last edited by

                                @thecreativeone91 said:

                                http://community.spiceworks.com/topic/254525-asking-better-questions - Just Saying.

                                http://mangolassi.it/topic/306/asking-better-questions

                                We've had a local copy too for a long time 🙂

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

                                  @scottalanmiller said:

                                  I think that you should back up and talk to us about your goals, rather than getting stuck in small technical details. You are asking tiny questions that are very specific but are not telling us what you are trying to accomplish. So the information that we give you might be dangerous or wrong because you were not sure what question to ask.

                                  You are skipping the steps that allow a community like this to help you help yourself. We need a bigger picture so that we can help with solutions before you get stuck or into a dangerous position.

                                  I second this. You are so hung up on "how do I do this or that" that you are probably shooting yourself in the foot when it comes to the big picture.

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

                                    @thanksajdotcom Ok Dont get angry.I will confirm my situation and after that I will ask my queries without confusing others

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

                                      @Lakshmana said:

                                      @thanksajdotcom Ok Dont get angry.I will confirm my situation and after that I will ask my queries without confusing others

                                      I'm not angry. If you think this is anger, you've obviously never seen me get heated. Lol

                                      No, but what we are trying to emphasize is that you need to think big picture, give us all the details of what the big picture goals are, and how you've gone about attacking the problem. Once we have the macro-level info, we can start helping you with the micro-level problems. But without the big picture, we could give you the right answers to the wrong questions.

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

                                        @thanksajdotcom Ok I understood

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

                                          How to block the SSH port in the IP table.I used the following command but it does not work?
                                          My aim is that when I try to access the machine in Putty,the Centos machine should not be taken in the Putty

                                          /sbin/iptables -A INPUT -p tcp --destination-port {PORT-NUMBER-HERE} -j DROP

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

                                            @Lakshmana said:

                                            How to block the SSH port in the IP table.I used the following command but it does not work?
                                            My aim is that when I try to access the machine in Putty,the Centos machine should not be taken in the Putty

                                            /sbin/iptables -A INPUT -p tcp --destination-port {PORT-NUMBER-HERE} -j DROP

                                            I want to say this is missing something at the end but I might be wrong. IPTables isn't my specialty.

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