Windows XP batch file to block all incoming and outgoing traffic [closed]Firewalling all incoming traffic with custom rulesiptables rule to block incoming/outgoing traffic to a Xen containerUFW/IPTables: after setting default outgoing deny, and port 80 outgoing allow, curl still doesn't workWhat does “incoming” and “outgoing” traffic mean?Security risks of allowing incoming traffic as a response of a previous requestiptables - Block incoming on Eth1 and Allow All from eth0Configure Windows Firewall to block all except for specific trafficblock all packets in windows 7 (so nothing appears in wireshark)? Can anything locally installed do it?ip6tables blocking outgoing+incoming connections

Does a bank have to tell me if a check made out to me was cashed there?

Amplitude of a crest and trough in a sound wave?

Does putting salt first make it easier for attacker to bruteforce the hash?

Is it possible to fly backward if you have really strong headwind?

What aircraft was used as Air Force One for the flight between Southampton and Shannon?

Confused with atmospheric pressure equals plastic balloon’s inner pressure

A word that means "blending into a community too much"

How do i export activities related to an account with a specific recordtype?

Derivative of a double integral over a circular region

What STL algorithm can determine if exactly one item in a container satisfies a predicate?

The usage of kelvin in formulas

Does the new finding on "reversing a quantum jump mid-flight" rule out any interpretations of QM?

What differences exist between adamantine and adamantite in all editions of D&D?

60s or 70s novel about Empire of Man making 1st contact with 1st discovered alien race

The origin of the Russian proverb about two hares

If there's something that implicates the president why is there then a national security issue? (John Dowd)

How do free-speech protections in the United States apply in public to corporate misrepresentations?

Printing Pascal’s triangle for n number of rows in Python

tabular: caption and align problem

What is this Amiga 1200 mod?

Please figure out this Pan digital Prince

What are the implications when matrix's lowest eigenvalue is equal to 0?

Electricity free spaceship

Are polynomials with the same roots identical?



Windows XP batch file to block all incoming and outgoing traffic [closed]


Firewalling all incoming traffic with custom rulesiptables rule to block incoming/outgoing traffic to a Xen containerUFW/IPTables: after setting default outgoing deny, and port 80 outgoing allow, curl still doesn't workWhat does “incoming” and “outgoing” traffic mean?Security risks of allowing incoming traffic as a response of a previous requestiptables - Block incoming on Eth1 and Allow All from eth0Configure Windows Firewall to block all except for specific trafficblock all packets in windows 7 (so nothing appears in wireshark)? Can anything locally installed do it?ip6tables blocking outgoing+incoming connections






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








0















Is it possible to block all incoming and outgoing traffic on a Windows XP host via batch file?



Bonus question, I only want to allow 1 outgoing port and all traffic going over that port.










share|improve this question













closed as off-topic by Gerald Schneider, Thomas, Greg Askew, Ward May 27 at 15:00


This question appears to be off-topic. The users who voted to close gave this specific reason:


  • "Questions should demonstrate reasonable business information technology management practices. Questions that relate to unsupported hardware or software platforms or unmaintained environments may not be suitable for Server Fault - see the help center." – Gerald Schneider, Thomas, Greg Askew, Ward
If this question can be reworded to fit the rules in the help center, please edit the question.











  • 1





    Clarify the "bonus question". Do you mean you want the machine to act as normal and make all normal traffic use a single port?!

    – Ben Campbell
    Nov 30 '11 at 22:21

















0















Is it possible to block all incoming and outgoing traffic on a Windows XP host via batch file?



Bonus question, I only want to allow 1 outgoing port and all traffic going over that port.










share|improve this question













closed as off-topic by Gerald Schneider, Thomas, Greg Askew, Ward May 27 at 15:00


This question appears to be off-topic. The users who voted to close gave this specific reason:


  • "Questions should demonstrate reasonable business information technology management practices. Questions that relate to unsupported hardware or software platforms or unmaintained environments may not be suitable for Server Fault - see the help center." – Gerald Schneider, Thomas, Greg Askew, Ward
If this question can be reworded to fit the rules in the help center, please edit the question.











  • 1





    Clarify the "bonus question". Do you mean you want the machine to act as normal and make all normal traffic use a single port?!

    – Ben Campbell
    Nov 30 '11 at 22:21













0












0








0








Is it possible to block all incoming and outgoing traffic on a Windows XP host via batch file?



Bonus question, I only want to allow 1 outgoing port and all traffic going over that port.










share|improve this question














Is it possible to block all incoming and outgoing traffic on a Windows XP host via batch file?



Bonus question, I only want to allow 1 outgoing port and all traffic going over that port.







windows networking firewall command-line-interface batch






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 30 '11 at 10:29









TnkflxTnkflx

11




11




closed as off-topic by Gerald Schneider, Thomas, Greg Askew, Ward May 27 at 15:00


This question appears to be off-topic. The users who voted to close gave this specific reason:


  • "Questions should demonstrate reasonable business information technology management practices. Questions that relate to unsupported hardware or software platforms or unmaintained environments may not be suitable for Server Fault - see the help center." – Gerald Schneider, Thomas, Greg Askew, Ward
If this question can be reworded to fit the rules in the help center, please edit the question.







closed as off-topic by Gerald Schneider, Thomas, Greg Askew, Ward May 27 at 15:00


This question appears to be off-topic. The users who voted to close gave this specific reason:


  • "Questions should demonstrate reasonable business information technology management practices. Questions that relate to unsupported hardware or software platforms or unmaintained environments may not be suitable for Server Fault - see the help center." – Gerald Schneider, Thomas, Greg Askew, Ward
If this question can be reworded to fit the rules in the help center, please edit the question.







  • 1





    Clarify the "bonus question". Do you mean you want the machine to act as normal and make all normal traffic use a single port?!

    – Ben Campbell
    Nov 30 '11 at 22:21












  • 1





    Clarify the "bonus question". Do you mean you want the machine to act as normal and make all normal traffic use a single port?!

    – Ben Campbell
    Nov 30 '11 at 22:21







1




1





Clarify the "bonus question". Do you mean you want the machine to act as normal and make all normal traffic use a single port?!

– Ben Campbell
Nov 30 '11 at 22:21





Clarify the "bonus question". Do you mean you want the machine to act as normal and make all normal traffic use a single port?!

– Ben Campbell
Nov 30 '11 at 22:21










5 Answers
5






active

oldest

votes


















1














You can set it using group policy instead of a batch file.






share|improve this answer























  • It's a standalone machine, no group policy.

    – Tnkflx
    Nov 30 '11 at 16:26


















1














Use netsh advfirewall firewall command to configure windows firewall.
See http://technet.microsoft.com/en-us/library/dd734783.aspx#BKMK_3_add for details.






share|improve this answer






























    0














    Even if there would be such a command (and there isn't), then you can't block outgoing traffic, as only the newer Windows versions have outgoing firewall support. Use a recent version of Windows.






    share|improve this answer






























      0














      The only method that occurs to me directly via bat file is using netsh commands to severely restrict the internal network settings... filtering and such. I'm still not convinced this will work the way you want. I'm not sure why you would use a bat file method when you could just use a software firewall and just whitelist the traffic as you see fit. However, you may be able to enable or disable a firewall configuration with a bat file that could have the desired effect.






      share|improve this answer
































        -1














        netsh advfirewall firewall add rule name="BlockPort01" protocol=TCP dir=out remoteport=01 action=block





        share|improve this answer

























        • Could you please describe your answer

          – Sergey Nudnov
          May 27 at 8:23

















        5 Answers
        5






        active

        oldest

        votes








        5 Answers
        5






        active

        oldest

        votes









        active

        oldest

        votes






        active

        oldest

        votes









        1














        You can set it using group policy instead of a batch file.






        share|improve this answer























        • It's a standalone machine, no group policy.

          – Tnkflx
          Nov 30 '11 at 16:26















        1














        You can set it using group policy instead of a batch file.






        share|improve this answer























        • It's a standalone machine, no group policy.

          – Tnkflx
          Nov 30 '11 at 16:26













        1












        1








        1







        You can set it using group policy instead of a batch file.






        share|improve this answer













        You can set it using group policy instead of a batch file.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Nov 30 '11 at 13:14









        JamesRyanJamesRyan

        7,78322036




        7,78322036












        • It's a standalone machine, no group policy.

          – Tnkflx
          Nov 30 '11 at 16:26

















        • It's a standalone machine, no group policy.

          – Tnkflx
          Nov 30 '11 at 16:26
















        It's a standalone machine, no group policy.

        – Tnkflx
        Nov 30 '11 at 16:26





        It's a standalone machine, no group policy.

        – Tnkflx
        Nov 30 '11 at 16:26













        1














        Use netsh advfirewall firewall command to configure windows firewall.
        See http://technet.microsoft.com/en-us/library/dd734783.aspx#BKMK_3_add for details.






        share|improve this answer



























          1














          Use netsh advfirewall firewall command to configure windows firewall.
          See http://technet.microsoft.com/en-us/library/dd734783.aspx#BKMK_3_add for details.






          share|improve this answer

























            1












            1








            1







            Use netsh advfirewall firewall command to configure windows firewall.
            See http://technet.microsoft.com/en-us/library/dd734783.aspx#BKMK_3_add for details.






            share|improve this answer













            Use netsh advfirewall firewall command to configure windows firewall.
            See http://technet.microsoft.com/en-us/library/dd734783.aspx#BKMK_3_add for details.







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Nov 30 '11 at 22:30









            MatejMatej

            18816




            18816





















                0














                Even if there would be such a command (and there isn't), then you can't block outgoing traffic, as only the newer Windows versions have outgoing firewall support. Use a recent version of Windows.






                share|improve this answer



























                  0














                  Even if there would be such a command (and there isn't), then you can't block outgoing traffic, as only the newer Windows versions have outgoing firewall support. Use a recent version of Windows.






                  share|improve this answer

























                    0












                    0








                    0







                    Even if there would be such a command (and there isn't), then you can't block outgoing traffic, as only the newer Windows versions have outgoing firewall support. Use a recent version of Windows.






                    share|improve this answer













                    Even if there would be such a command (and there isn't), then you can't block outgoing traffic, as only the newer Windows versions have outgoing firewall support. Use a recent version of Windows.







                    share|improve this answer












                    share|improve this answer



                    share|improve this answer










                    answered Nov 30 '11 at 22:24









                    mailqmailq

                    15.5k23062




                    15.5k23062





















                        0














                        The only method that occurs to me directly via bat file is using netsh commands to severely restrict the internal network settings... filtering and such. I'm still not convinced this will work the way you want. I'm not sure why you would use a bat file method when you could just use a software firewall and just whitelist the traffic as you see fit. However, you may be able to enable or disable a firewall configuration with a bat file that could have the desired effect.






                        share|improve this answer





























                          0














                          The only method that occurs to me directly via bat file is using netsh commands to severely restrict the internal network settings... filtering and such. I'm still not convinced this will work the way you want. I'm not sure why you would use a bat file method when you could just use a software firewall and just whitelist the traffic as you see fit. However, you may be able to enable or disable a firewall configuration with a bat file that could have the desired effect.






                          share|improve this answer



























                            0












                            0








                            0







                            The only method that occurs to me directly via bat file is using netsh commands to severely restrict the internal network settings... filtering and such. I'm still not convinced this will work the way you want. I'm not sure why you would use a bat file method when you could just use a software firewall and just whitelist the traffic as you see fit. However, you may be able to enable or disable a firewall configuration with a bat file that could have the desired effect.






                            share|improve this answer















                            The only method that occurs to me directly via bat file is using netsh commands to severely restrict the internal network settings... filtering and such. I'm still not convinced this will work the way you want. I'm not sure why you would use a bat file method when you could just use a software firewall and just whitelist the traffic as you see fit. However, you may be able to enable or disable a firewall configuration with a bat file that could have the desired effect.







                            share|improve this answer














                            share|improve this answer



                            share|improve this answer








                            edited Nov 30 '11 at 22:25

























                            answered Nov 30 '11 at 22:20









                            Ben CampbellBen Campbell

                            532416




                            532416





















                                -1














                                netsh advfirewall firewall add rule name="BlockPort01" protocol=TCP dir=out remoteport=01 action=block





                                share|improve this answer

























                                • Could you please describe your answer

                                  – Sergey Nudnov
                                  May 27 at 8:23















                                -1














                                netsh advfirewall firewall add rule name="BlockPort01" protocol=TCP dir=out remoteport=01 action=block





                                share|improve this answer

























                                • Could you please describe your answer

                                  – Sergey Nudnov
                                  May 27 at 8:23













                                -1












                                -1








                                -1







                                netsh advfirewall firewall add rule name="BlockPort01" protocol=TCP dir=out remoteport=01 action=block





                                share|improve this answer















                                netsh advfirewall firewall add rule name="BlockPort01" protocol=TCP dir=out remoteport=01 action=block






                                share|improve this answer














                                share|improve this answer



                                share|improve this answer








                                edited May 26 at 15:29









                                Jenny D

                                24.6k126296




                                24.6k126296










                                answered May 26 at 0:19









                                glyn watkinsglyn watkins

                                1




                                1












                                • Could you please describe your answer

                                  – Sergey Nudnov
                                  May 27 at 8:23

















                                • Could you please describe your answer

                                  – Sergey Nudnov
                                  May 27 at 8:23
















                                Could you please describe your answer

                                – Sergey Nudnov
                                May 27 at 8:23





                                Could you please describe your answer

                                – Sergey Nudnov
                                May 27 at 8:23



                                Popular posts from this blog

                                Wikipedia:Vital articles Мазмуну Biography - Өмүр баян Philosophy and psychology - Философия жана психология Religion - Дин Social sciences - Коомдук илимдер Language and literature - Тил жана адабият Science - Илим Technology - Технология Arts and recreation - Искусство жана эс алуу History and geography - Тарых жана география Навигация менюсу

                                Bruxelas-Capital Índice Historia | Composición | Situación lingüística | Clima | Cidades irmandadas | Notas | Véxase tamén | Menú de navegacióneO uso das linguas en Bruxelas e a situación do neerlandés"Rexión de Bruxelas Capital"o orixinalSitio da rexiónPáxina de Bruselas no sitio da Oficina de Promoción Turística de Valonia e BruxelasMapa Interactivo da Rexión de Bruxelas-CapitaleeWorldCat332144929079854441105155190212ID28008674080552-90000 0001 0666 3698n94104302ID540940339365017018237

                                What should I write in an apology letter, since I have decided not to join a company after accepting an offer letterShould I keep looking after accepting a job offer?What should I do when I've been verbally told I would get an offer letter, but still haven't gotten one after 4 weeks?Do I accept an offer from a company that I am not likely to join?New job hasn't confirmed starting date and I want to give current employer as much notice as possibleHow should I address my manager in my resignation letter?HR delayed background verification, now jobless as resignedNo email communication after accepting a formal written offer. How should I phrase the call?What should I do if after receiving a verbal offer letter I am informed that my written job offer is put on hold due to some internal issues?Should I inform the current employer that I am about to resign within 1-2 weeks since I have signed the offer letter and waiting for visa?What company will do, if I send their offer letter to another company