[root@nsโฅBunnyComโฅ~]# mv /etc/sysctl.conf /etc/sysctl_backup.conf
[root@nsโฅBunnyComโฅ~]# vi /etc/sysctl.conf
########## ์ปค๋์ต์ ํ๋๊ฐ๋ค ################
net.ipv4.icmp_echo_ignore_all = 0
net.ipv4.icmp_echo_ignore_broadcasts = 1
net.ipv4.icmp_ignore_bogus_error_responses = 1
net.ipv4.tcp_fin_timeout = 30
net.ipv4.tcp_keepalive_time = 180
net.ipv4.tcp_timestamps = 0
net.ipv4.tcp_syncookies = 1
net.ipv4.tcp_max_syn_backlog = 1280
net.ipv4.tcp_sack = 0
net.ipv4.tcp_window_scaling = 0
net.ipv4.conf.all.accept_redirects = 0
net.ipv4.conf.all.send_redirects = 0
net.ipv4.conf.all.rp_filter = 1
net.ipv4.conf.default.rp_filter = 1
net.ipv4.conf.all.log_martians = 1
net.ipv4.conf.all.accept_source_route = 0
net.ipv4.ip_local_port_range = 32768 61000
net.ipv4.ip_forward = 0
vm.bdflush = 100 1200 128 512 15 5000 500 1884 2
vm.buffermem = 80 10 60
kernel.sysrq = 1
##์ ํ์ฌํญ
#net.ipv4.icmp_echo_ignore_all = 0
#fs.file-max = 32768
### RAM 256M :8192
##### ======================= ์ต์ ์ค๋ช ================================#####
#net.ipv4.icmp_echo_ignore_all = 1 ์๋ต ๋ง๊ธฐ
#net.ipv4.icmp_echo_ignore_all = 0 ์๋ต ํ๊ธฐ
#net.ipv4.icmp_echo_ignore_broadcasts = 1 Broadcast๋ก ์ค๋ ํ ์ฐจ๋จํ๊ธฐ
#net.ipv4.conf.all.accept_source_route = 0 IP ์์ค ๋ผ์ฐํ ๋ง๊ธฐ
#net.ipv4.tcp_max_syn_backlog=1024 backlog ๋๋ฆฌ๊ธฐ ์กฐ์ ๊ฐ
#net.ipv4.tcp_syncookies = 1 syncookie ๊ธฐ๋ฅ ํ๋ณ
#net.ipv4.conf.all.send_redirects= 0
#net.ipv4.conf.all.accept_redirects= 0 ICMP redirect๋ฅผ ๋ง๋๋ค
#net.ipv4.icmp_ignore_bogus_error_responses = 1 bad icmp ํจํท ์ฐจ๋จ
#net.ipv4.conf.all.rp_filter = 1 IP ์คํธํ ๋ฐฉ์งํ๊ธฐ
#net.ipv4.conf.all.log_martians = 1 IP ์คํธํ๋ ํจํท ๋ก๊ทธ์ ๊ธฐ๋กํ๊ธฐ
#/etc/host.conf ํ์ผ์ nospoof ์ต์ ์ ์ฃผ์ด IP ์คํธํ ๋ฐฉ์ง๋ฅผ ์ํ ์ค์ ์ ์ถ๊ฐ multi on + nospoof on
#net.ipv4.tcp_fin_timeout = 30 ์ฐ๊ฒฐ์ข ๋ฃ์๊ฐ์ ์ค์ธ๋ค
#net.ipv4.tcp_keepalive_time = 1800 keepalive ์๊ฐ ์ค์ด๊ธฐ
#net.ipv4.ip_local_port_range = 32768 61000 ์ด์ ์๋ ํฌํธ ๋๋ฆฌ๊ธฐ
======================================================================================
[root@nsโฅBunnyComโฅ~]# sysctl -w => ์์คํ ์ค์ ์ ์ฅ
[root@nsโฅBunnyComโฅ~]# sysctl -a => ์์คํ ์ค์ ๊ฐ ์ถ๋ ฅ
[root@nsโฅBunnyComโฅ~]# vi /etc/sysctl.conf
########## ์ปค๋์ต์ ํ๋๊ฐ๋ค ################
net.ipv4.icmp_echo_ignore_all = 0
net.ipv4.icmp_echo_ignore_broadcasts = 1
net.ipv4.icmp_ignore_bogus_error_responses = 1
net.ipv4.tcp_fin_timeout = 30
net.ipv4.tcp_keepalive_time = 180
net.ipv4.tcp_timestamps = 0
net.ipv4.tcp_syncookies = 1
net.ipv4.tcp_max_syn_backlog = 1280
net.ipv4.tcp_sack = 0
net.ipv4.tcp_window_scaling = 0
net.ipv4.conf.all.accept_redirects = 0
net.ipv4.conf.all.send_redirects = 0
net.ipv4.conf.all.rp_filter = 1
net.ipv4.conf.default.rp_filter = 1
net.ipv4.conf.all.log_martians = 1
net.ipv4.conf.all.accept_source_route = 0
net.ipv4.ip_local_port_range = 32768 61000
net.ipv4.ip_forward = 0
vm.bdflush = 100 1200 128 512 15 5000 500 1884 2
vm.buffermem = 80 10 60
kernel.sysrq = 1
##์ ํ์ฌํญ
#net.ipv4.icmp_echo_ignore_all = 0
#fs.file-max = 32768
### RAM 256M :8192
##### ======================= ์ต์ ์ค๋ช ================================#####
#net.ipv4.icmp_echo_ignore_all = 1 ์๋ต ๋ง๊ธฐ
#net.ipv4.icmp_echo_ignore_all = 0 ์๋ต ํ๊ธฐ
#net.ipv4.icmp_echo_ignore_broadcasts = 1 Broadcast๋ก ์ค๋ ํ ์ฐจ๋จํ๊ธฐ
#net.ipv4.conf.all.accept_source_route = 0 IP ์์ค ๋ผ์ฐํ ๋ง๊ธฐ
#net.ipv4.tcp_max_syn_backlog=1024 backlog ๋๋ฆฌ๊ธฐ ์กฐ์ ๊ฐ
#net.ipv4.tcp_syncookies = 1 syncookie ๊ธฐ๋ฅ ํ๋ณ
#net.ipv4.conf.all.send_redirects= 0
#net.ipv4.conf.all.accept_redirects= 0 ICMP redirect๋ฅผ ๋ง๋๋ค
#net.ipv4.icmp_ignore_bogus_error_responses = 1 bad icmp ํจํท ์ฐจ๋จ
#net.ipv4.conf.all.rp_filter = 1 IP ์คํธํ ๋ฐฉ์งํ๊ธฐ
#net.ipv4.conf.all.log_martians = 1 IP ์คํธํ๋ ํจํท ๋ก๊ทธ์ ๊ธฐ๋กํ๊ธฐ
#/etc/host.conf ํ์ผ์ nospoof ์ต์ ์ ์ฃผ์ด IP ์คํธํ ๋ฐฉ์ง๋ฅผ ์ํ ์ค์ ์ ์ถ๊ฐ multi on + nospoof on
#net.ipv4.tcp_fin_timeout = 30 ์ฐ๊ฒฐ์ข ๋ฃ์๊ฐ์ ์ค์ธ๋ค
#net.ipv4.tcp_keepalive_time = 1800 keepalive ์๊ฐ ์ค์ด๊ธฐ
#net.ipv4.ip_local_port_range = 32768 61000 ์ด์ ์๋ ํฌํธ ๋๋ฆฌ๊ธฐ
======================================================================================
[root@nsโฅBunnyComโฅ~]# sysctl -w => ์์คํ ์ค์ ์ ์ฅ
[root@nsโฅBunnyComโฅ~]# sysctl -a => ์์คํ ์ค์ ๊ฐ ์ถ๋ ฅ
'๐2017๋ ์ด์ ํฌ์คํ ๋ชจ์ ๐ > ๐Linux OS๐' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
| VSftp Server ์ค์น์ ์ค์ . (0) | 2015.04.04 |
|---|---|
| ์ ์ ๋ฉ์์ง ์์ ๋ฐ ๊ณต์ง ์ฌํญ ์ค์ (0) | 2015.04.04 |
| Sendmail-pop3-imap ์ ๋ฐ์ ์ธ ์ค์ (0) | 2015.03.09 |
| IPtables ์ด์ฉํ ๋ฐฉํ๋ฒฝ ์ ์ฑ ์ค์ ๋ฐ ๋ช ๋ นํ์ฉ (0) | 2015.03.09 |
| OPENSSH ๋ณด์ ์ ์ ์๋ฒ ์ค์ (0) | 2015.03.09 |