Please Enable JavaScript!
Mohon Aktifkan Javascript![ Enable JavaScript ]

CENTOS7 디도스 방어에 대한 부분 모 > 자유게시판

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

자유게시판

정보 CENTOS7 디도스 방어에 대한 부분 모

페이지 정보

본문

i /etc/sysctl.conf

kernel.printk = 4 4 1 7 
kernel.panic = 10 
kernel.sysrq = 0 
kernel.shmmax = 4294967296 
kernel.shmall = 4194304 
kernel.core_uses_pid = 1 
kernel.msgmnb = 65536 
kernel.msgmax = 65536 
vm.swappiness = 20 
vm.dirty_ratio = 80 
vm.dirty_background_ratio = 5 
fs.file-max = 2097152 
net.core.netdev_max_backlog = 262144 
net.core.rmem_default = 31457280 
net.core.rmem_max = 67108864 
net.core.wmem_default = 31457280 
net.core.wmem_max = 67108864 
net.core.somaxconn = 65535 
net.core.optmem_max = 25165824 
net.ipv4.neigh.default.gc_thresh1 = 4096 
net.ipv4.neigh.default.gc_thresh2 = 8192 
net.ipv4.neigh.default.gc_thresh3 = 16384 
net.ipv4.neigh.default.gc_interval = 5 
net.ipv4.neigh.default.gc_stale_time = 120 
net.netfilter.nf_conntrack_max = 10000000 
net.netfilter.nf_conntrack_tcp_loose = 0 
net.netfilter.nf_conntrack_tcp_timeout_established = 1800 
net.netfilter.nf_conntrack_tcp_timeout_close = 10 
net.netfilter.nf_conntrack_tcp_timeout_close_wait = 10 
net.netfilter.nf_conntrack_tcp_timeout_fin_wait = 20 
net.netfilter.nf_conntrack_tcp_timeout_last_ack = 20 
net.netfilter.nf_conntrack_tcp_timeout_syn_recv = 20 
net.netfilter.nf_conntrack_tcp_timeout_syn_sent = 20 
net.netfilter.nf_conntrack_tcp_timeout_time_wait = 10 
net.ipv4.tcp_slow_start_after_idle = 0 
net.ipv4.ip_local_port_range = 1024 65000 
net.ipv4.ip_no_pmtu_disc = 1 
net.ipv4.route.flush = 1 
net.ipv4.route.max_size = 8048576 
net.ipv4.icmp_echo_ignore_broadcasts = 1 
net.ipv4.icmp_ignore_bogus_error_responses = 1 
net.ipv4.tcp_congestion_control = htcp 
net.ipv4.tcp_mem = 65536 131072 262144 
net.ipv4.udp_mem = 65536 131072 262144 
net.ipv4.tcp_rmem = 4096 87380 33554432 
net.ipv4.udp_rmem_min = 16384 
net.ipv4.tcp_wmem = 4096 87380 33554432 
net.ipv4.udp_wmem_min = 16384 
net.ipv4.tcp_max_tw_buckets = 1440000 
net.ipv4.tcp_tw_recycle = 0 
net.ipv4.tcp_tw_reuse = 1 
net.ipv4.tcp_max_orphans = 400000 
net.ipv4.tcp_window_scaling = 1 
net.ipv4.tcp_rfc1337 = 1 
net.ipv4.tcp_syncookies = 1 
net.ipv4.tcp_synack_retries = 1 
net.ipv4.tcp_syn_retries = 2 
net.ipv4.tcp_max_syn_backlog = 16384 
net.ipv4.tcp_timestamps = 1 
net.ipv4.tcp_sack = 1 
net.ipv4.tcp_fack = 1 
net.ipv4.tcp_ecn = 2 
net.ipv4.tcp_fin_timeout = 10 
net.ipv4.tcp_keepalive_time = 600 
net.ipv4.tcp_keepalive_intvl = 60 
net.ipv4.tcp_keepalive_probes = 10 
net.ipv4.tcp_no_metrics_save = 1 
net.ipv4.ip_forward = 0 
net.ipv4.conf.all.accept_redirects = 0 
net.ipv4.conf.all.send_redirects = 0 
net.ipv4.conf.all.accept_source_route = 0 
net.ipv4.conf.all.rp_filter = 1

sysctl -p

iptables -t mangle -A PREROUTING -m conntrack --ctstate INVALID -j DROP
iptables -t mangle -A PREROUTING -p tcp ! --syn -m conntrack --ctstate NEW -j DROP
iptables -t mangle -A PREROUTING -p tcp -m conntrack --ctstate NEW -m tcpmss ! --mss 536:65535 -j DROP

iptables -t mangle -A PREROUTING -p tcp --tcp-flags FIN,SYN,RST,PSH,ACK,URG NONE -j DROP 
iptables -t mangle -A PREROUTING -p tcp --tcp-flags FIN,SYN FIN,SYN -j DROP 
iptables -t mangle -A PREROUTING -p tcp --tcp-flags SYN,RST SYN,RST -j DROP 
iptables -t mangle -A PREROUTING -p tcp --tcp-flags FIN,RST FIN,RST -j DROP 
iptables -t mangle -A PREROUTING -p tcp --tcp-flags FIN,ACK FIN -j DROP 
iptables -t mangle -A PREROUTING -p tcp --tcp-flags ACK,URG URG -j DROP 
iptables -t mangle -A PREROUTING -p tcp --tcp-flags ACK,FIN FIN -j DROP 
iptables -t mangle -A PREROUTING -p tcp --tcp-flags ACK,PSH PSH -j DROP 
iptables -t mangle -A PREROUTING -p tcp --tcp-flags ALL ALL -j DROP 
iptables -t mangle -A PREROUTING -p tcp --tcp-flags ALL NONE -j DROP 
iptables -t mangle -A PREROUTING -p tcp --tcp-flags ALL FIN,PSH,URG -j DROP 
iptables -t mangle -A PREROUTING -p tcp --tcp-flags ALL SYN,FIN,PSH,URG -j DROP 
iptables -t mangle -A PREROUTING -p tcp --tcp-flags ALL SYN,RST,ACK,FIN,URG -j DROP

iptables -t mangle -A PREROUTING -s 224.0.0.0/3 -j DROP 
iptables -t mangle -A PREROUTING -s 169.254.0.0/16 -j DROP 
iptables -t mangle -A PREROUTING -s 172.16.0.0/12 -j DROP 
iptables -t mangle -A PREROUTING -s 192.0.2.0/24 -j DROP 
iptables -t mangle -A PREROUTING -s 192.168.0.0/16 -j DROP 
iptables -t mangle -A PREROUTING -s 10.0.0.0/8 -j DROP 
iptables -t mangle -A PREROUTING -s 0.0.0.0/8 -j DROP 
iptables -t mangle -A PREROUTING -s 240.0.0.0/5 -j DROP 
iptables -t mangle -A PREROUTING -s 127.0.0.0/8 ! -i lo -j DROP

 

혹시 추가 하거나 할 부분있으면 부탁드립니다.

추천1 비추천0

댓글목록

profile_image

해피정님의 댓글

해피정 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 kr 아이피 (112.♡.♡.119) 작성일

디도스 방어 꼭 필요한 작업이죠

profile_image

하루파파님의 댓글의 댓글

no_profile 하루파파 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 kr 아이피 (122.♡.♡.28) 작성일

해피정님 자료도 많은데 중복일까봐 올리지를 못하겠내요

profile_image

아파치님의 댓글

아파치 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 us 아이피 (73.♡.♡.79) 작성일

서버에서 디도스 방어 관련 작업을 해 보았지만 결국은 디도스 방어 업체의 도움을 받거나 IP를 변경하는 방법으로 해결을 하게 되더라구요.
그래도 안하는거보다는 낮긴 할 겁니다....^^;;

Total 352건 2 페이지
자유게시판 목록
번호 제목 글쓴이 조회 추천 비추천 날짜
337 정보
쥔장님 ~ 댓글3
no_profile 지나니 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 233694 0 0 10-21
336 정보 no_profile 하하돌다리 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 231669 0 0 10-21
335 정보 no_profile 하하돌다리 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 226589 1 0 10-14
334 정보 no_profile 하하돌다리 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 120781 1 0 10-11
333 정보 no_profile 하하돌다리 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 14905 0 0 10-08
열람중 정보 no_profile 하루파파 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 19657 1 0 10-02
331 정보 no_profile 하루파파 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 17360 0 0 10-02
330 정보 no_profile 하루파파 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 20413 0 0 09-29
329 정보 no_profile leesangyoon 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 21242 1 0 09-22
328 정보 no_profile 하하돌다리 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 23974 1 0 09-14
327 정보 no_profile 하하돌다리 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 21008 2 0 08-14
326 정보 no_profile 하하돌다리 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 17212 1 0 07-17
325 정보 no_profile 하하돌다리 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 11387 0 0 07-12
324 정보 no_profile 하하돌다리 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 7649 0 0 07-09
323 정보 아파치 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 15905 0 0 06-25

검색

회원로그인

회원가입
QnA nanoomihost. dnsever. dnszi.

사이트 정보

포인트 정책
포인트 순위
사이트명 : 아파치존
개인정보관리책임자 : JOO SUNG

접속자집계

오늘
3,790
어제
10,360
최대
176,238
전체
3,582,367
Copyright © apachezone.com. All rights reserved.