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

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

개발

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

페이지 정보

profile_image
작성자 관리자 (61.♡.26.87)
댓글 0건 조회 2,368회 작성일 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 387건 10 페이지
  • RSS
개발 목록
번호 제목 조회 추천 날짜
2073340004-10
2063362007-11
2053382007-11
2043387004-24
2033398006-09
2023402006-29
2013405004-18
2003406003-06
1993407005-01
1983412005-04
1973439001-14
1963440005-06
1953461002-02
1943467002-16
1933480012-15
1923484006-15
1913498001-25
1903499003-25
1893502003-11
1883502005-04

검색


사이트 정보

Copyright © Baragi.Net. All rights reserved.