tolgaakkapulu / Adding-rules-to-pfSense-using-pfSenseAPI

Adding rules to pfSense using pfSenseAPI

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Adding-rules-to-pfSense-using-pfSenseAPI

Alias is created with the source IP parameter information from the parameters specified in use. The destination IP is added to the alias created with the source IP name. After the created alias, the rule is created in pfSense so that the related source IP is blocked from going to the created alias.

NOTE: If the same source IP parameter is entered, the rule will not be created. The alias will be updated by adding the relevant destination IP in alias.

Installing the API in pfSense

Usage

  • python3 pfSense-api.py SOURCE DESTINATION

Example

  • python3 pfSense-api.py 10.10.10.10 10.10.10.20

About

Adding rules to pfSense using pfSenseAPI


Languages

Language:Python 100.0%