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;
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
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
add a comment |
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
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
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
add a comment |
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
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
windows networking firewall command-line-interface batch
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
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
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
add a comment |
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
add a comment |
5 Answers
5
active
oldest
votes
You can set it using group policy instead of a batch file.
It's a standalone machine, no group policy.
– Tnkflx
Nov 30 '11 at 16:26
add a comment |
Use netsh advfirewall firewall
command to configure windows firewall.
See http://technet.microsoft.com/en-us/library/dd734783.aspx#BKMK_3_add for details.
add a comment |
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.
add a comment |
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.
add a comment |
netsh advfirewall firewall add rule name="BlockPort01" protocol=TCP dir=out remoteport=01 action=block
Could you please describe your answer
– Sergey Nudnov
May 27 at 8:23
add a comment |
5 Answers
5
active
oldest
votes
5 Answers
5
active
oldest
votes
active
oldest
votes
active
oldest
votes
You can set it using group policy instead of a batch file.
It's a standalone machine, no group policy.
– Tnkflx
Nov 30 '11 at 16:26
add a comment |
You can set it using group policy instead of a batch file.
It's a standalone machine, no group policy.
– Tnkflx
Nov 30 '11 at 16:26
add a comment |
You can set it using group policy instead of a batch file.
You can set it using group policy instead of a batch file.
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
add a comment |
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
add a comment |
Use netsh advfirewall firewall
command to configure windows firewall.
See http://technet.microsoft.com/en-us/library/dd734783.aspx#BKMK_3_add for details.
add a comment |
Use netsh advfirewall firewall
command to configure windows firewall.
See http://technet.microsoft.com/en-us/library/dd734783.aspx#BKMK_3_add for details.
add a comment |
Use netsh advfirewall firewall
command to configure windows firewall.
See http://technet.microsoft.com/en-us/library/dd734783.aspx#BKMK_3_add for details.
Use netsh advfirewall firewall
command to configure windows firewall.
See http://technet.microsoft.com/en-us/library/dd734783.aspx#BKMK_3_add for details.
answered Nov 30 '11 at 22:30
MatejMatej
18816
18816
add a comment |
add a comment |
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.
add a comment |
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.
add a comment |
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.
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.
answered Nov 30 '11 at 22:24
mailqmailq
15.5k23062
15.5k23062
add a comment |
add a comment |
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.
add a comment |
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.
add a comment |
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.
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.
edited Nov 30 '11 at 22:25
answered Nov 30 '11 at 22:20
Ben CampbellBen Campbell
532416
532416
add a comment |
add a comment |
netsh advfirewall firewall add rule name="BlockPort01" protocol=TCP dir=out remoteport=01 action=block
Could you please describe your answer
– Sergey Nudnov
May 27 at 8:23
add a comment |
netsh advfirewall firewall add rule name="BlockPort01" protocol=TCP dir=out remoteport=01 action=block
Could you please describe your answer
– Sergey Nudnov
May 27 at 8:23
add a comment |
netsh advfirewall firewall add rule name="BlockPort01" protocol=TCP dir=out remoteport=01 action=block
netsh advfirewall firewall add rule name="BlockPort01" protocol=TCP dir=out remoteport=01 action=block
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
add a comment |
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
add a comment |
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