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

    Firewall in Centos 6.5

    IT Discussion
    centos
    4
    19
    2.4k
    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.
    • thanksajdotcomT
      thanksajdotcom @Lakshmana
      last edited by

      @Lakshmana said:

      Whether the above IP table is correct to acces the Centos machine from other machine in Putty.Screenshot from 2015-03-14 16:28:12.png

      I may be wrong on this, but you have ICMP blocked. That's what will allow ping. Also, be as verbose as possible. What do you mean you can't access from an XP machine? You can't ping? SSH? What?

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

        How do you have your VM Guest Nic setup? By default most are using NAT. NAT will not work for this.

        LakshmanaL thanksajdotcomT 2 Replies Last reply Reply Quote 1
        • LakshmanaL
          Lakshmana @A Former User
          last edited by

          @thecreativeone91 I added NIC card from the VM settings and added new device as Network Adapter

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

            @thecreativeone91 said:

            How do you have your VM Guest Nic setup? By default most are using NAT. NAT will not work for this.

            Agreed.

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

              @Lakshmana said:

              @thecreativeone91 I added NIC card from the VM settings and added new device as Network Adapter

              Right but how is the network connection setup? You're using VMware Workstation, so is it NATing through the computer or does the virutal NIC have it's own IP address?

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

                @Lakshmana said:

                I need to know how to write iptable in Centos 6.5 and to open only ssh port and ping port to take the system only in putty to check the status

                Nothing needed. Just install and this is how it works. CentOS sets this all up for you.

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

                  @Lakshmana said:

                  Whether the above IP table is correct to acces the Centos machine from other machine in Putty.Screenshot from 2015-03-14 16:28:12.png

                  It's been modified, why?

                  That line with port 22 on it has additional restrictions to limit the source client to the IP subnet listed. Remove the "-s 192.168.50.1/255.255.255.0" to open SSH everywhere.

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

                    @Lakshmana said:

                    I cannot access the Centos system from Windows XP with the above IP table.Why?

                    Why don't you use the IP tables example that I provided for you on the other thread. It is exactly what you need to have here.

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

                      @thanksajdotcom said:

                      I may be wrong on this, but you have ICMP blocked. That's what will allow ping. Also, be as verbose as possible. What do you mean you can't access from an XP machine? You can't ping? SSH? What?

                      ICMP is not blocked, but it is not allowed. It has to be allowed. Someone has removed the allow line that is there when you install the system. My example on the other thread for him includes it.

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

                        OK I will try that at my office on monday.

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

                          Where did you get this image? Is it a modified one or something?

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

                            @thecreativeone91 said:

                            Where did you get this image? Is it a modified one or something?

                            I think it's his...

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

                              @thanksajdotcom said:

                              @thecreativeone91 said:

                              Where did you get this image? Is it a modified one or something?

                              I think it's his...

                              I mean the CentOS image.

                              thanksajdotcomT 1 Reply Last reply Reply Quote 1
                              • thanksajdotcomT
                                thanksajdotcom @A Former User
                                last edited by

                                @thecreativeone91 said:

                                @thanksajdotcom said:

                                @thecreativeone91 said:

                                Where did you get this image? Is it a modified one or something?

                                I think it's his...

                                I mean the CentOS image.

                                Ah ok. Yeah, I'm wondering who was already screwing with it....

                                1 Reply Last reply Reply Quote -1
                                • 1 / 1
                                • First post
                                  Last post