echo"net.ipv4.ip_forward = 1" | tee -a /etc/sysctl.conf echo"net.ipv4.conf.all.accept_redirects = 0" | tee -a /etc/sysctl.conf echo"net.ipv4.conf.all.send_redirects = 0" | tee -a /etc/sysctl.conf echo"net.ipv4.conf.default.rp_filter = 0" | tee -a /etc/sysctl.conf echo"net.ipv4.conf.default.accept_source_route = 0" | tee -a /etc/sysctl.conf echo"net.ipv4.conf.default.send_redirects = 0" | tee -a /etc/sysctl.conf echo"net.ipv4.icmp_ignore_bogus_error_responses = 1" | tee -a /etc/sysctl.conf
for vpn in /proc/sys/net/ipv4/conf/*; doecho0 > $vpn/accept_redirects; echo0 > $vpn/send_redirects; done
启用配置:
1
sysctl -p
将以下命令添加至 /etc/rc.local ,以在开机时运行:
1
for vpn in /proc/sys/net/ipv4/conf/*; do echo 0 > $vpn/accept_redirects; echo 0 > $vpn/send_redirects; done
dpddelay=10 # Dead Peer Dectection (RFC 3706) keepalives delay dpdtimeout=20 # lengthoftime (in seconds) we will idle without hearing either an R_U_THERE poll from our peer, or an R_U_THERE_ACK reply. dpdaction=clear # When a DPD enabled peer is declared dead, what action should be taken. clear means the eroute and SA withboth be cleared.
Helo command rejected: ACCESS DENIED. Your email was rejected because the sending mail server appears to be on a dynamic IP address that should not be doing direct mail delivery ……
/(\d{1,3}[\.-]\d{1,3}[\.-]\d{1,3}[\.-]\d{1,3})/ REJECT ACCESS DENIED. Your email was rejected because the sending mail server appears to be on a dynamic IP address that should not be doing direct mail delivery(${1})
Device Boot Start End Blocks Id System /dev/sda1 * 204815625011178124032 fd Linux raid autodetect /dev/sda2 1562501121328125951585937920 fd Linux raid autodetect /dev/sda3 132812595213593763831562521682 Linux swap / Solaris /dev/sda4 13593763841953523711297073664 fd Linux raid autodetect
RAID设备md0、md1和md3分别对应sda1、sda2和sda4。
现在sdb出了故障,查看结果是这样的:
1 2 3 4 5 6 7 8 9 10 11 12
cat /proc/mdstat Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10] md1 : active raid1 sda2[0] sdb2[2](F) 585806656 blocks super 1.2 [2/1] [U_] md0 : active raid1 sda1[0] 78058368 blocks super 1.2 [2/1] [U_] md3 : active raid1 sda4[0] 296942400 blocks super 1.2 [2/1] [U_] unused devices: <none>