- 증상 /var/log/messages 에 해당 메세지 계속 로깅

Jan 12 17:07:36 exa1 kernel: martian source 255.255.255.255 from 172.16.4.97, on dev eth0

Jan 12 17:07:36 exa1 kernel: ll header: ff:ff:ff:ff:ff:ff:28:d2:44:ae:0d:4b:08:00


-해결책

테스트 결과..

메세지를 로깅하는 모든 DB node 에서..

 

net.ipv4.conf.eth0.log_martians = 0

 

나머지 값들은 설정해도 적용되지 않는다.


net.ipv4.conf.all.log_martians = 0 

net.ipv4.conf.default.log_martians = 0 

net.ipv4.conf.bondib0.log_martians = 0 

 

-적용

sysctl -p /etc/sysctl.conf


-확인

sysctl -a | grep log_martians


-의미

스푸핑된 패킷이나 소스라우팅, Redirect 패킷에 대해 로그파일에 정보를 남기지 않는다.

net.ipv4.conf.eth0.log_martians=0

net.ipv4.conf.lo.log_martians=0

net.ipv4.conf.default.log_martians=0

net.ipv4.conf.all.log_martians=0


default 는 1 (로깅하는 것임)


 

 

Posted by pat98

02-15 05:32
Flag Counter
Yesterday
Today
Total

글 보관함

최근에 올라온 글

달력

 « |  » 2025.2
1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28

최근에 달린 댓글