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

    Windows firewall

    IT Discussion
    windows server 2008 windows firewall
    4
    10
    1.3k
    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.
    • I
      inroute
      last edited by scottalanmiller

      Hi,

      i need a little help its about windows firewall rules and batch file script on windows server 2008

      i have created a rule in windows firewall inbound connections to block unwanted ip addresses.

      the normal way to block unwanted ip's i open the rule and go to the scope tab and add the ip I want to block.

      Is there a way that I can update the rule I created using a batch file and text note? What I mean is updating the scope with new ip’s that will be in the note.

      wirestyle22W 1 Reply Last reply Reply Quote 2
      • wirestyle22W
        wirestyle22 @inroute
        last edited by wirestyle22

        Does this help you?

        http://serverfault.com/questions/653814/windows-firewall-netsh-block-all-ips-from-a-text-file

        1 Reply Last reply Reply Quote 0
        • I
          inroute
          last edited by

          i did a test but it wont work i cant find the test ip i want it to be in the scope

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

            So are you just looking for a way to use PowerShell to update the block list?

            1 Reply Last reply Reply Quote 0
            • I
              inroute
              last edited by

              a bat file will be better

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

                @inroute said in Windows firewall:

                a bat file will be better

                Ewww. But okay, so I had that right idea.

                Servers don't have PS on them?

                I 1 Reply Last reply Reply Quote 0
                • I
                  inroute @scottalanmiller
                  last edited by

                  @scottalanmiller umm... well i think i have to do it manual

                  1 Reply Last reply Reply Quote 0
                  • I
                    inroute
                    last edited by

                    thanks all for trying to help

                    1 Reply Last reply Reply Quote 0
                    • T
                      tiagom
                      last edited by

                      http://superuser.com/questions/694523/netsh-block-all-ip-addresses-in-a-text-file

                      Sounds like what you are trying to do.

                      I 1 Reply Last reply Reply Quote 0
                      • I
                        inroute @tiagom
                        last edited by

                        @tiagom thanks i will check it now

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