Skip to main content

A Python package for deduplicating IP addresses and URLs in External Dynamic Lists (EDLs) used with Palo Alto firewalls

Project description

Palo Alto EDL Deduplicator

팔로알토 방화벽에 연동된 외부 동적 리스트(EDLs)의 중복을 제거하여 리소스 낭비를 줄이고, 운영 효율성을 개선할 수 있는 라이브러리입니다.

설치

pip install paloalto-edl-deduplicator

임포트

from paloalto_edl_deduplicator import *

메소드

복잡한 프로그래밍이 필요 없습니다. Palo Alto EDL Deduplicator 라이브러리를 사용하여 단 한 줄의 코드로 모든 설정을 완료하세요!

paloalto_edl_deduplicator(path, minutes)
  • path: 단일 EDL 파일 또는 여러 EDL 파일이 들어 있는 디렉터리 경로 지정

    디렉터리 경로를 지정할 경우 하위 디렉터리까지 재귀적으로 EDLs을 탐색합니다.

  • minutes: 스케줄 생성을 위한 작업 반복 주기 설정

    반복 주기는 분 단위로 지정할 수 있으며, 생략 시 기본 10분으로 적용됩니다.

예제

paloalto_edl_deduplicator(my_EDL_dir, 60) # 60분 주기로 my_EDL_dir 디렉터리와 그 하위 디렉터리에 존재하는 모든 EDL 파일 대상으로 각 파일 내부의 중복 데이터 제거

셸 스크립트 출력

파이썬 실행 환경이 구축되지 않은 리눅스 계열 서버를 위한 셸 스크립트를 제공합니다.

create_shell_script('deduplicator.sh')

셸 스크립트 사용 방법

chmod +x deduplicate.sh # 실행 권한 부여: 스크립트를 실행 가능한 파일로 만듭니다.
./deduplicate.sh my_file.txt # 단일 파일: 파일명에 띄어쓰기가 있다면 따옴표로 묶습니다.
./deduplicate.sh my_dir # 디렉터리: 해당 디렉토리와 그 하위의 모든 파일을 처리합니다.

주의사항

스케줄 주기는 작업(job)을 처리하는데 걸리는 시간보다 크게 설정해야 합니다.

  • 자원 경합(Race Condition): 만약 여러 작업이 동일한 파일에 쓰거나, 같은 데이터베이스에 접근하려 한다면 데이터가 손상되거나 충돌이 발생할 수 있습니다.
  • 과부하(Overload): job이 시스템 자원을 많이 사용한다면, 여러 작업이 동시에 실행되면서 CPU와 메모리가 100%에 가까운 수준으로 치솟아 시스템 전체가 느려지거나 멈출 수 있습니다.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

paloalto_edl_deduplicator-0.1.1.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

paloalto_edl_deduplicator-0.1.1-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

Details for the file paloalto_edl_deduplicator-0.1.1.tar.gz.

File metadata

File hashes

Hashes for paloalto_edl_deduplicator-0.1.1.tar.gz
Algorithm Hash digest
SHA256 28ae263389daee1ba8f6a1da311ed94240bb7274360bf5b14b125124ee4f1498
MD5 02a18d5e2dd10b6e678d14fd6b0359f9
BLAKE2b-256 62e5da9e529029caf75eb9b48d7ee47145e4e75b9b10f58e351861fafa9a3661

See more details on using hashes here.

File details

Details for the file paloalto_edl_deduplicator-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for paloalto_edl_deduplicator-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 49161410c9f4e3c6c13b8859692ba82c692416d4a8344a9d246b30202f07d649
MD5 6f4f6440267b0cff8923fbad9d5f1581
BLAKE2b-256 8f05680aafce63b731fbfcfd97269565a564d17210b48da8c6f83ab1abf9f2d7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page