Skip to content

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

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

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

Releases

No releases published

Packages

No packages published

Languages