cancel
Showing results for 
Search instead for 
Did you mean: 
Create a Post
Employee+
Employee+

Blocking TOR exit nodes with Python and R80.10 API

Hi all,

I wrote a script in Python using our API. The goal was clear, block around 1k IP addresses automatically and in a visual way, not through fw sam rules Smiley Happy

You can execute this script every day manually or you can schedule it using Crontab for example.

Tu use it in your environment you just need to change these variables at the begining and execute it! 

You can find the script here: GitHub - toledanosjesus/chkp 

After the first execution of the script, you just need to configure correctly your firewall policy. You need to have something similar to this:

Be aware this script is using python 2.7. You'll need to modify it a bit in case you want to use python 3.x

Enjoy!

Labels (2)
3 Replies
Employee++
Employee++

Re: Blocking TOR exit nodes with Python and R80.10 API

Very nice, good work!

Please note that we have a python development SDK for API developers on github - 

GitHub - CheckPoint-APIs-Team/cp_mgmt_api_python_sdk: Check Point API Python Development Kit 

It is an open source and includes usage examples.

Robert.

Highlighted

Re: Blocking TOR exit nodes with Python and R80.10 API

I like this one, too !

0 Kudos

Re: Blocking TOR exit nodes with Python and R80.10 API

nice script