iptables 에서 --line-numbers 를 이용해서 특정 규칙 삭제하기 > 개발

본문 바로가기
사이트 내 전체검색

개발

iptables 에서 --line-numbers 를 이용해서 특정 규칙 삭제하기

페이지 정보

profile_image
작성자 관리자 (61.♡.26.87)
댓글 0건 조회 2,187회 작성일 20-06-30 13:16

본문

ㅁ 규칙 번호 ( - 라인 번호 ) 사용 방법


ㅇ INPUT 의 규칙 목록(-L)

# iptables -L INPUT --line-numbers

예제 출력 :
[code]
Chain INPUT (policy ACCEPT)
num  target prot opt source destination
1    ACCEPT    udp  --  anywhere  anywhere            udp dpt:domain
2    ACCEPT    tcp  --  anywhere  anywhere            tcp dpt:domain
3    ACCEPT    udp  --  anywhere  anywhere            udp dpt:bootps
4    ACCEPT    tcp  --  anywhere  anywhere            tcp dpt:bootps
[/code]

ㅇ INPUT 의 두번째 규칙을 삭제하기

# iptables -D INPUT 2



* 참고
https://www.it-swarm.dev/ko/linux/iptables%EC%97%90%EC%84%9C-%ED%8A%B9%EC%A0%95-%EA%B7%9C%EC%B9%99%EC%9D%84-%EC%A0%9C%EA%B1%B0%ED%95%98%EB%A0%A4%EB%A9%B4-%EC%96%B4%EB%96%BB%EA%B2%8C%ED%95%B4%EC%95%BC%ED%95%A9%EB%8B%88%EA%B9%8C/1067468945/

추천0

댓글목록

등록된 댓글이 없습니다.

Total 386건 6 페이지
  • RSS
개발 목록
번호 제목 조회 추천 날짜
2861903002-27
2851627002-26
2841856002-26
2832312002-25
2822272002-17
2812219002-17
2802308001-14
2792004011-07
2781751010-07
2772033010-07
2762401010-06
2752313010-06
2742154009-27
2732563009-07
2721847009-06
열람중2188006-30
2702522006-30
2692789006-29
2683381006-29
2671986006-22

검색


사이트 정보

Copyright © Baragi.Net. All rights reserved.