Hi all
I need to create a script sh to connect and block an ip from command line.
Is it possible to do this?
Can you help me with an example?
thanks
Ottavio
This thread was automatically locked due to age.
Hi all
I need to create a script sh to connect and block an ip from command line.
Is it possible to do this?
Can you help me with an example?
thanks
Ottavio
you may create a firewall rule to block communication for a device-group and fill this group from API with hosts.
Dirk
Systema Gesellschaft für angewandte Datentechnik mbH // Sophos Platinum Partner
Sophos Solution Partner since 2003
If a post solves your question, click the 'Verify Answer' link at this post.
Hello Ottavio Gentile,
Currently there is no easy quick command to block a specific ip !!
If you want to block IP either you can create a custom rule: https://docs.sophos.com/nsg/sophos-firewall/19.0/Help/en-us/webhelp/onlinehelp/AdministratorHelp/RulesAndPolicies/FirewallRules/FirewallRuleAdd/index.html
You can select the action as blocked, mention the IPs you want to block and save it.
You can also use a country blocking rule to block certain range: https://docs.sophos.com/nsg/sophos-firewall/19.0/Help/en-us/webhelp/onlinehelp/AdministratorHelp/RulesAndPolicies/FirewallRules/FirewallRulesCountryBasedRuleCreate/index.html
Thanks & Regards,
_______________________________________________________________
Vivek Jagad | Team Lead, Global Support & Services
Sophos Community | Product Documentation | Sophos Techvids | SMS
If a post solves your question please use the 'Verify Answer' button.
Hello Ottavio Gentile,
Currently there is no easy quick command to block a specific ip !!
If you want to block IP either you can create a custom rule: https://docs.sophos.com/nsg/sophos-firewall/19.0/Help/en-us/webhelp/onlinehelp/AdministratorHelp/RulesAndPolicies/FirewallRules/FirewallRuleAdd/index.html
You can select the action as blocked, mention the IPs you want to block and save it.
You can also use a country blocking rule to block certain range: https://docs.sophos.com/nsg/sophos-firewall/19.0/Help/en-us/webhelp/onlinehelp/AdministratorHelp/RulesAndPolicies/FirewallRules/FirewallRulesCountryBasedRuleCreate/index.html
Thanks & Regards,
_______________________________________________________________
Vivek Jagad | Team Lead, Global Support & Services
Sophos Community | Product Documentation | Sophos Techvids | SMS
If a post solves your question please use the 'Verify Answer' button.