SONTAYA'P BLOGGER

IT Digital lifestyle

Troubleshooting “martian source” warnings can be found in the log message

bySONTAYA July 17, 2013 Linux Office

ดูจาก log สาเหตุปัญหาน่าจะอ้าจอิจจาก TID (ในบางกรณี) ที่เขียนไว้เนื่องจากเป็น multiple NIC cards อินเทอร์เฟซ “bond0” แต่เมื่อตรวจสอบแล้วกลับพบว่าไม่ใช้กรณีของปัญหาดังกล่าวครับ มาเริ่มต้นกันเลย

[sourcecode]tail -f /var/log/message[/sourcecode]

หรืออาจจะดูผ่าน syslog web-based ได้เช่นกัน facility=kern (กรณีที่มี Centralized log server)

[sourcecode]
Jul 17 09:52:49 linuxter1 kernel: [13807.030419] martian source 192.168.1.16 from 192.168.0.21, on dev bond0
Jul 17 09:52:49 linuxter1 kernel: [13807.030423] ll header: ff:ff:ff:ff:ff:ff:34:40:b5:8c:84:11:02:06
[/sourcecode]

Environment:
System: SLED 11 SP2 X86_64
Kernal 3.0.58-0.6.6-default

จากอ้างอิจได้ลองปิด disable “rp_filter” ไปแล้วแต่ยังแสดงข้อผิดพลาด “martian sources” ใน messages log อยู่

[sourcecode]vi /etc/sysctl.conf[/sourcecode]

# Controls source route verification

[sourcecode]net.ipv4.conf.default.rp_filter = 1[/sourcecode]

เปลี่ยน value เท่ากับ 0

# Controls source route verification
[sourcecode]
net.ipv4.conf.default.rp_filter = 0
[/sourcecode]

โหลดการตั้งค่าปัจจุบัน

[sourcecode]sysctl -p[/sourcecode]

Note : As of April 2012 this fix works for (patched) SLES 10 SP3, SLES 10 SP4 and SLES 11 SP1. Does not work for SLES 11 SP2.

# enable route verification on all interfaces
net.ipv4.conf.all.rp_filter = 1

การตั้งค่าฟิลเตอร์ “net.ipv4.conf.default.rp_filter = 1” ก็เพราะใช้สำหรับในการป้องกันการโจมตีแบบ DDoS (Distributed Denial of Service Attacks) โดยวิธีตรวจสอบเสร็จทางของแพ็คเก็จในทุกอินเทอร์เฟซ (แนะนำเปิดฟิลเตอร์สำหรับเส้นทาง routing ที่ซับซ้อน) หลังจากทำตามขั้นตอนที่กล่าวมาแล้วก็ยังคงแสดงข้อผิดพลาด “martian sources” ใน messages log อยู่

ขั้นตอนถัดมาให้ตรวจสอบ arp แคช

[sourcecode]apr -n[/sourcecode]

ทำการลบ arp (delete specific arp)

[sourcecode]arp -d 192.168.0.16[/sourcecode]

หรือ clearing arp cache

[sourcecode]ip -s -s neigh flush all[/sourcecode]

ใช้เครื่องมือ tcpdump

[sourcecode]tcpdump host 192.168.0.16[/sourcecode]

พบว่าแพ็คเก็จวนลูบถามไปยังเครื่องไอพีแอดเดรส 192.168.0.254 (Gateway) และเครื่อง linuxter1 (ไอพีแอดเดรส 192.168.0.21)

09:55:27.383391 arp who-has 192.168.0.16 tell 192.168.0.254
09:55:28.383285 arp who-has 192.168.0.16 tell 192.168.0.254
09:55:29.383228 arp who-has 192.168.0.16 tell 192.168.0.254
09:55:32.064584 arp who-has 192.168.0.16 tell linuxter1
09:55:33.064575 arp who-has 192.168.0.16 tell linuxter1
09:55:34.064624 arp who-has 192.168.0.16 tell linuxter1

คำถามมีอยู่ว่าไอพีแอดเดรส 192.168.0.16 เป็นอุปกรณ์ใด? ping ไม่เจอะ ถ้าปิดพอร์ต nmap สแกนก็หาไม่เจอะ เมื่อไปตรวจสอบ DHCP server กลับพบไอพีแอดเดรสใน reservations ถึงรู้ว่าเป็นเครื่องปริ้น ที่แพ็คเก็จพยายามส่งเกิดจากมี jobs ค้างที่ CUPS server แต่เครื่องปริ้นเตอร์ไม่ถูกเปิดอยู่ (เลย ping ไม่เจอะ) ทำให้แพ็กเก็จพยายามส่งไปยังเครื่องปริ้นตลอดเวลา หลังจากเปิดเครื่องปริ้นเตอร์ log message ก็จะไม่พบข้อความดังกล่าวแล้ว

หวังว่าคงเป็นประโยชน์เล็กๆ น้อยๆ นะครับเพื่อจะได้แก้ไขปัญหาได้รวดเร็วขึ้น

Reference :
//www.suse.in.th/suse-support-knowledgebase/martian-sources-errors-showing-in-messages-log/
//www.softpanorama.org/Net/Internet_layer/Routing/martian_source.shtml
//www.novell.com/support/kb/doc.php?id=7007649

TaggedTroubleshooting

Google Drive และข้อจำกัดการอัพโหลดไฟล์

Android MasterKey Security Scanner เครื่องมือสแกนหาแอพพลิชั่นที่ไม่ปลอดภัยภายในเครื่อง

Leave a Reply Cancel reply

You must be logged in to post a comment.

Tag Cloud

3G Android Backup Blognone Chromecast Cloud Comparison CUPS Dell DNS Facebook Firefox Firewall Google Guitar Hacked HP Joomla LGP500 LibreOffice Linux Mozilla Firefox OpenOffice.org Open Source OpenStack openSUSE openSUSE11.3 openSUSE12.1 Peplink Performance Postfix Printer Samsung Security Storage SUSE SUSE Enterprise Desktop SUSE Enterprise Server SUSE Linux Enterprise Switch Thin client Tips VMware WordPress WordPress/SMF

Comments

  • Narupon Pattapat on การ cleaning the imaging unit หรือ Drum (Imaging Unit)
  • 76Rusty on แอพ aVia Media Player Pro และ Pocket Casts 4 อนาคตอาจรองรับ Chromecast
  • JindaTheme on CloudFlare คืออะไร?
  • viva3388 on CloudFlare คืออะไร?
  • SONTAYA on Linux Foundation T-Shirt มาแล้ว

Categories

  • Android (7)
  • Joomla (9)
  • LibreOffice/OpenOffice.org (16)
  • Linux (159)
  • Music (16)
  • News (55)
  • Office (55)
  • Online Marketing (3)
  • Personal (232)
  • VMware (5)
  • WordPress/SMF (20)

Archives

  • May 2019
  • March 2019
  • January 2019
  • December 2018
  • September 2018
  • August 2018
  • July 2018
  • April 2018
  • March 2018
  • January 2018
  • December 2017
  • June 2017
  • December 2016
  • November 2016
  • April 2016
  • March 2016
  • February 2016
  • September 2015
  • August 2015
  • July 2015
  • June 2015
  • May 2015
  • April 2015
  • February 2015
  • January 2015
  • November 2014
  • October 2014
  • September 2014
  • August 2014
  • July 2014
  • June 2014
  • May 2014
  • April 2014
  • March 2014
  • February 2014
  • December 2013
  • November 2013
  • October 2013
  • September 2013
  • August 2013
  • July 2013
  • June 2013
  • May 2013
  • April 2013
  • March 2013
  • February 2013
  • January 2013
  • December 2012
  • November 2012
  • October 2012
  • September 2012
  • August 2012
  • June 2012
  • May 2012
  • April 2012
  • March 2012
  • February 2012
  • December 2011
  • November 2011
  • October 2011
  • September 2011
  • August 2011
  • July 2011
  • June 2011
  • May 2011
  • April 2011
  • March 2011
  • February 2011
  • January 2011
  • December 2010
  • November 2010
  • October 2010
  • September 2010
  • August 2010
  • July 2010
  • June 2010
  • May 2010
  • April 2010
  • March 2010
  • February 2010
  • January 2010
  • December 2009

Archives

  • May 2019 (1)
  • March 2019 (1)
  • January 2019 (1)
  • December 2018 (1)
  • September 2018 (1)
  • August 2018 (3)
  • July 2018 (1)
  • April 2018 (1)
  • March 2018 (1)
  • January 2018 (2)
  • December 2017 (1)
  • June 2017 (3)
  • December 2016 (1)
  • November 2016 (1)
  • April 2016 (1)
  • March 2016 (2)
  • February 2016 (1)
  • September 2015 (3)
  • August 2015 (2)
  • July 2015 (7)
  • June 2015 (5)
  • May 2015 (1)
  • April 2015 (1)
  • February 2015 (2)
  • January 2015 (1)
  • November 2014 (3)
  • October 2014 (2)
  • September 2014 (2)
  • August 2014 (1)
  • July 2014 (3)
  • June 2014 (3)
  • May 2014 (2)
  • April 2014 (5)
  • March 2014 (2)
  • February 2014 (5)
  • December 2013 (3)
  • November 2013 (15)
  • October 2013 (15)
  • September 2013 (11)
  • August 2013 (9)
  • July 2013 (26)
  • June 2013 (7)
  • May 2013 (15)
  • April 2013 (6)
  • March 2013 (5)
  • February 2013 (4)
  • January 2013 (2)
  • December 2012 (9)
  • November 2012 (2)
  • October 2012 (4)
  • September 2012 (2)
  • August 2012 (4)
  • June 2012 (3)
  • May 2012 (4)
  • April 2012 (6)
  • March 2012 (14)
  • February 2012 (9)
  • December 2011 (8)
  • November 2011 (6)
  • October 2011 (13)
  • September 2011 (7)
  • August 2011 (10)
  • July 2011 (4)
  • June 2011 (12)
  • May 2011 (26)
  • April 2011 (6)
  • March 2011 (3)
  • February 2011 (4)
  • January 2011 (10)
  • December 2010 (6)
  • November 2010 (4)
  • October 2010 (5)
  • September 2010 (10)
  • August 2010 (5)
  • July 2010 (8)
  • June 2010 (6)
  • May 2010 (4)
  • April 2010 (9)
  • March 2010 (10)
  • February 2010 (8)
  • January 2010 (21)
  • December 2009 (28)
Proudly powered by WordPress | Theme: Showme by NEThemes.