{"id":4702,"date":"2023-03-15T20:52:00","date_gmt":"2023-03-16T01:52:00","guid":{"rendered":"https:\/\/www.incredigeek.com\/home\/?p=4702"},"modified":"2023-03-15T19:07:04","modified_gmt":"2023-03-16T00:07:04","slug":"running-tcpdump-on-ubiquiti-airmax-equipment","status":"publish","type":"post","link":"https:\/\/www.incredigeek.com\/home\/running-tcpdump-on-ubiquiti-airmax-equipment\/","title":{"rendered":"Running tcpdump on Ubiquiti Airmax Equipment"},"content":{"rendered":"\n<p>Ubiquiti Airmax gear has tcpdump included.  We can easily use it to capture packets to a file and then use SCP from the device to copy the file for analysis.<\/p>\n\n\n\n<p>SSH to the device<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">ssh ubnt@192.168.1.20\ncd \/tmp\/<\/pre>\n\n\n\n<p>Start tcpdump with the following command.  Change ath0 and file.cap to the appropriate interface and file name.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">tcpdump -i ath0 -w file.cap<\/pre>\n\n\n\n<p>After we are done collecting, we can quit with ctrl + c<\/p>\n\n\n\n<p>Now we can use scp or sftp to copy the files off.  There is an issue using scp or sftp from a normal Linux machine to the radio, fails with a &#8220;sh: \/usr\/libexec\/sftp-server: not found&#8221;.  It works fine if you initiate scp from the radio.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">scp \/tmp\/file.cap username@remoteip:~\/<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Ubiquiti Airmax gear has tcpdump included. We can easily use it to capture packets to a file and then use SCP from the device to copy the file for analysis. SSH to the device ssh ubnt@192.168.1.20 cd \/tmp\/ Start tcpdump &hellip; <a href=\"https:\/\/www.incredigeek.com\/home\/running-tcpdump-on-ubiquiti-airmax-equipment\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[129,1144],"tags":[528,306,341,1414,131,132,974],"class_list":["post-4702","post","type-post","status-publish","format-standard","hentry","category-ubiquiti","category-ubiquiti-command-line","tag-airmax","tag-scp","tag-sftp","tag-tcpdump","tag-ubiquiti-2","tag-ubnt","tag-ui"],"_links":{"self":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/4702","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/comments?post=4702"}],"version-history":[{"count":4,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/4702\/revisions"}],"predecessor-version":[{"id":4880,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/4702\/revisions\/4880"}],"wp:attachment":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/media?parent=4702"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/categories?post=4702"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/tags?post=4702"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}