I want to simulate Oracle disconnect for my app. I need to enable/disable outgoing traffic to port 1521 quickly.
I think the best way is to add/remove a rule into the Windows Firewall.
Is there a CMD or PowerShell scrip I can use? Or WMI in C#?
(Note: I cannot disable networking as a whole because there are different connections are used in my code and only 1521 needs to be disabled).
Aucun commentaire:
Enregistrer un commentaire