Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Juniper SRX Firewall Dynamic Address Feeder

NotificationsYou must be signed in to change notification settings

nchekwa/cloud-iprange-feeder

Repository files navigation

IP address ranges from Cloud Providers and from othere sources

List of Python Parsers feeds:

How to run:

  1. you will need to have python + pip
    debian# apt-get install python3-pipcentos# yum install -y pip
  2. install needed exttra lib:
    linux# pip install -r requirements.txt
  3. clone repo ie. to: /opt/cloud-iprange-feeder/
    linux# mkdir /opt/linux# git clone https://github.com/nchekwa/cloud-iprange-feeder
  4. run feeder inside folder
    linux# python3 feeder_AMAZON_AWS.py
    Example console output:
    root@debian:/opt/cloud-iprange-feeder# python feeder_AMAZON-AWS.py-----------------------------------------------------------------Process: feeder_AMAZON-AWS.py at 2021-01-22 14:11:57.906558Result:- downloadin 0.206455945969 second- processingin 0.590703964233 secondTOTAL: 0.797159910202 second

What feeder will do?

Feeder going to download IP Prefix list, parse it and generate in 'files' folder parsed files:

  • text files split by region/service/ALL (files contains IP ranges)
  • tgz which will contain all those text file in one compress file (for juniper SRX feed-server)
  • create info file - with time generation (when feeder was run)
ie:files/AMAZON-AWS├── ALL├── ALL_ipv4├── ALL_ipv6├── rgn_af-south-1├── rgn_ap-east-1├── rgn_ap-northeast-1...├── svc_AMAZON├── svc_S3└── svc_WORKSPACES_GATEWAYSfiles/AMAZON-AWS.tgzfiles/AMAZON-AWS.txt

How to use TGZ file

SRX#

[edit security dynamic-address]set security dynamic-address feed-server MyAmazonFeed url http://<server>/cloud-iprange-feeder/files/AMAZON-AWS.tgzset security dynamic-address feed-server MyAmazonFeed update-interval 30set security dynamic-address feed-server MyAmazonFeed hold-interval 3600set security dynamic-address feed-server MyAmazonFeed feed-name AWS_ALL path AMAZON-AWS/ALLset security dynamic-address address-name AWS_ALL_IPs profile feed-name AWS_ALL

SRX

> show configuration security dynamic-address feed-server MyAmazonFeed {    url http://<server>/cloud-iprange-feeder/files/AMAZON-AWS.tgz;    update-interval 30;    hold-interval 3600;    feed-name AWS_ALL {        path AMAZON-AWS/ALL;    }}address-name AWS_ALL_IPs {    profile {        feed-name AWS_ALL;    }}
root@vSRX> show security dynamic-address summary address-name AWS_ALL_IPs

Juniper SRX output command example in doc\ folder

Othere feeds:

Popular IP Threat Feeds

If you looking for Threat Protection - please check:

Othere Geo-IP Feeds:


[8]ページ先頭

©2009-2025 Movatter.jp