[Juniper] JUNOS Firewall filter(Access-list, ACL)

2017. 8. 7. 16:03·Juniper·

주니퍼 방화벽, ACL

 

Firewall filter (Access-list)

 

1. Firewall filter 정의

 

set firewall family inet filter <acl name> term <term name> from < match>

set firewall family inet filter <acl name> term <term name> then < action>

<ACL NAME> : Interface 에 적용할 ACL NAME 정의

<Term name> : ACL Line에 대한 Description

<Match> : Mac, IP, Protocol, Layer4 Port의 ACL Matching을 위한 조건 정의

<Action> : Packet을 deny or permit 할 것인지 action 정의

 

* Action 종류

Discard : packet을 deny함.

accept : packet을 permit 함

 

2. Interface에 input/output 방향으로 적용

 

set interfaces vlan unit 10 family inet filter input <ACL NAME>

( 1.1.1.1/32 에서 1.1.1.2/32 으로 가는 packet만 discard 하고, 나머지 packet 은 forwarding)

 

 

-------------------- ---------------------------------------

 

1. firewall filter(acl) 만들기

 

juniper@EX2# set firewall family inet filter blockhost term 1 from source-address 1.1.1.1/32
juniper@EX2# set firewall family inet filter blockhost term 1 from destination-address 1.1.1.2/32
juniper@EX2# set firewall family inet filter blockhost term 1 then discard
juniper@EX2# set firewall family inet filter blockhost term 2 then accept
juniper@EX2# set firewall family inet filter blockhost term 2 then count blockcount (counter 옵션)

 

2. interface에 적용하기

 

juniper@EX2# set interfaces vlan unit 10 family inet filter input blockhost
juniper@EX2# set interfaces vlan unit 20 family inet filter input blockhost

 

3. counter 확인하기

 

juniper@EX2# run show firewall filter blockhost
Filter: blockhost
Counters:
Name Bytes Packets
blockcount 0 0

 

장비 SSH 적용은 lo0 인터페이스에 걸어야함.

저작자표시 (새창열림)

'Juniper' 카테고리의 다른 글

[Juniper] ScreenOS Factory Reset 방법  (0) 2019.07.04
[Juniper] JUNOS NTP 및 시간 맞추기  (0) 2017.08.09
Juniper Switch Commit problem / 주니퍼 스위치 commit 에러  (0) 2017.08.09
Juniper Load Balancing  (0) 2017.08.07
[Juniper] EX 모델 password recovery 복구  (0) 2017.08.07
'Juniper' 카테고리의 다른 글
  • [Juniper] JUNOS NTP 및 시간 맞추기
  • Juniper Switch Commit problem / 주니퍼 스위치 commit 에러
  • Juniper Load Balancing
  • [Juniper] EX 모델 password recovery 복구
징쟝
징쟝
IT 관련 네트워크 및 기타 자료들을 수집하고 공유하는데 목적이 있음.
  • 징쟝
    네트워커의 보안 티스토리
    징쟝
  • 전체
    오늘
    어제
  • 블로그 메뉴

    • 홈
    • 글쓰기
    • 관리
    • 방명록
    • 분류 전체보기 (153)
      • 정보보안 (54)
      • 리눅스 (10)
      • Windows (6)
      • Cisco (2)
      • Mikrotik (0)
      • Cyberoam (0)
      • Juniper (6)
      • MRTG (0)
      • Sophos (3)
      • SecuWiz (0)
      • Forti (0)
      • SECUI (1)
      • L4 (3)
      • 파이오링크 (0)
      • 오토핫키 (43)
      • 파이썬 (0)
      • 직장 (0)
      • 개인적인 것들 (10)
      • 그 외의 것들 (10)
      • 영화 (0)
      • 테스트 (1)
      • 일기장 (0)
      • 쓰레기통 (3)
  • 링크

  • 공지사항

  • 인기 글

  • 태그

    NAT
    spoofing
    php
    HTML
    오토핫키
    웹보안
    MySQL
    보안
    웹해킹
    CSRF
    정보보안
    SQL
    해킹
    인젝션
    web
  • 최근 댓글

  • 최근 글

  • hELLO· Designed By정상우.v4.10.3
징쟝
[Juniper] JUNOS Firewall filter(Access-list, ACL)
상단으로

티스토리툴바