{"id":2949,"date":"2020-02-09T14:01:53","date_gmt":"2020-02-09T13:01:53","guid":{"rendered":"https:\/\/www.linuxboxen.dk\/?p=2949"},"modified":"2020-02-09T14:01:53","modified_gmt":"2020-02-09T13:01:53","slug":"ss","status":"publish","type":"post","link":"https:\/\/www.linuxboxen.dk\/?p=2949","title":{"rendered":"ss"},"content":{"rendered":"<p>ss <em>parametre<\/em><\/p>\n<h3>Brug<\/h3>\n<p>Et v\u00e6rkt\u00f8j til at unders\u00f8ge sockets<\/p>\n<h3>Parametre<\/h3>\n<p>-n Pr\u00f8v ikke at resolve service navne.<\/p>\n<p>-r Pr\u00f8v at resolve service porte samt ip adresser.<\/p>\n<p>-l Lyt kun.<\/p>\n<h3>Eksempler<\/h3>\n<pre>$ ss -t -a\nState                      Recv-Q                   Send-Q                                      Local Address:Port                                          Peer Address:Port\nLISTEN                     0                        80                                              127.0.0.1:mysql                                              0.0.0.0:*\nLISTEN                     0                        128                                               0.0.0.0:37931                                              0.0.0.0:*\nLISTEN                     0                        64                                                0.0.0.0:39085                                              0.0.0.0:*\nLISTEN                     0                        128                                               0.0.0.0:sunrpc                                             0.0.0.0:*\nLISTEN                     0                        32                                          192.168.122.1:domain                                             0.0.0.0:*\nLISTEN                     0                        128                                         127.0.0.53%lo:domain                                             0.0.0.0:*\nLISTEN                     0                        5                                               127.0.0.1:ipp                                                0.0.0.0:*\nLISTEN                     0                        128                                             127.0.0.1:41049                                              0.0.0.0:*\nLISTEN                     0                        128                                               0.0.0.0:57177                                              0.0.0.0:*\nLISTEN                     0                        128                                               0.0.0.0:36127                                              0.0.0.0:*\nLISTEN                     0                        64                                                   [::]:34863                                                 [::]:*\nLISTEN                     0                        128                                                  [::]:sunrpc                                                [::]:*\nLISTEN                     0                        128                                                     *:http                                                     *:*\nLISTEN                     0                        128                                                  [::]:34737                                                 [::]:*\nLISTEN                     0                        5                                                   [::1]:ipp                                                   [::]:*\nLISTEN                     0                        128                                                  [::]:48797                                                 [::]:*\nLISTEN                     0                        128                                                  [::]:58975                                                 [::]:*\n                                                   [::]:*<\/pre>\n<p>Viser alle TCP forbindelser.<\/p>\n<pre>\n$ ss -u -a\nState                   Recv-Q                   Send-Q                                         Local Address:Port                                           Peer Address:Port\nUNCONN                  0                        0                                                    0.0.0.0:941                                                 0.0.0.0:*\nUNCONN                  0                        0                                                224.0.0.251:mdns                                                0.0.0.0:*\nUNCONN                  0                        0                                                224.0.0.251:mdns                                                0.0.0.0:*\nUNCONN                  0                        0                                                224.0.0.251:mdns                                                0.0.0.0:*\nUNCONN                  0                        0                                                    0.0.0.0:47635                                               0.0.0.0:*\nUNCONN                  0                        0                                                    0.0.0.0:40564                                               0.0.0.0:*\nUNCONN                  0                        0                                              192.168.122.1:domain                                              0.0.0.0:*\nUNCONN                  0                        0                                              127.0.0.53%lo:domain                                              0.0.0.0:*\nUNCONN                  0                        0                                             0.0.0.0%virbr0:bootps                                              0.0.0.0:*\nUNCONN                  0                        0                                                    0.0.0.0:bootpc                                              0.0.0.0:*\nUNCONN                  0                        0                                                    0.0.0.0:bootpc                                              0.0.0.0:*                      \nUNCONN                  0                        0                                                    0.0.0.0:sunrpc                                              0.0.0.0:*\nUNCONN                  0                        0                                                    0.0.0.0:53434                                               0.0.0.0:*\nUNCONN                  0                        0                                                    0.0.0.0:53780                                               0.0.0.0:*\nUNCONN                  0                        0                                                    0.0.0.0:ipp                                                 0.0.0.0:*\nUNCONN                  0                        0                                                    0.0.0.0:33595                                               0.0.0.0:*\nUNCONN                  0                        0                                                       [::]:941                                                    [::]:*\nUNCONN                  0                        0                                                       [::]:58491                                                  [::]:*\nUNCONN                  0                        0                                                       [::]:mdns                                                   [::]:*\nUNCONN                  0                        0                                                       [::]:42333                                                  [::]:*\nUNCONN                  0                        0                                                       [::]:58851                                                  [::]:*\nUNCONN                  0                        0                                                       [::]:34924                                                  [::]:*\nUNCONN                  0                        0                                                       [::]:39770                                                  [::]:*\nUNCONN                  0                        0                                                       [::]:sunrpc                                                 [::]:*<\/pre>\n<p>Viser alle UDP forbindelser.<\/p>\n<p>$ ss -o state established &#8216;( dport = :ssh or sport = :ssh )&#8217;<\/p>\n<p>Viser alle etableret SSH forbindelser.<\/p>\n<div class=\"pvc_clear\"><\/div>\n<p id=\"pvc_stats_2949\" class=\"pvc_stats all  \" data-element-id=\"2949\" style=\"\"><i class=\"pvc-stats-icon medium\" aria-hidden=\"true\"><svg aria-hidden=\"true\" focusable=\"false\" data-prefix=\"far\" data-icon=\"chart-bar\" role=\"img\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 512 512\" class=\"svg-inline--fa fa-chart-bar fa-w-16 fa-2x\"><path fill=\"currentColor\" d=\"M396.8 352h22.4c6.4 0 12.8-6.4 12.8-12.8V108.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v230.4c0 6.4 6.4 12.8 12.8 12.8zm-192 0h22.4c6.4 0 12.8-6.4 12.8-12.8V140.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v198.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h22.4c6.4 0 12.8-6.4 12.8-12.8V204.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v134.4c0 6.4 6.4 12.8 12.8 12.8zM496 400H48V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16zm-387.2-48h22.4c6.4 0 12.8-6.4 12.8-12.8v-70.4c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v70.4c0 6.4 6.4 12.8 12.8 12.8z\" class=\"\"><\/path><\/svg><\/i> <img loading=\"lazy\" decoding=\"async\" width=\"16\" height=\"16\" alt=\"Loading\" src=\"https:\/\/www.linuxboxen.dk\/wp-content\/plugins\/page-views-count\/ajax-loader-2x.gif\" border=0 \/><\/p>\n<div class=\"pvc_clear\"><\/div>\n","protected":false},"excerpt":{"rendered":"<p>ss parametre Brug Et v\u00e6rkt\u00f8j til at unders\u00f8ge sockets Parametre -n Pr\u00f8v ikke at resolve service navne. -r Pr\u00f8v at resolve service porte samt ip adresser. -l Lyt kun. Eksempler $ ss -t -a State Recv-Q Send-Q Local Address:Port Peer Address:Port LISTEN 0 80 127.0.0.1:mysql 0.0.0.0:* LISTEN 0 128 0.0.0.0:37931 0.0.0.0:* LISTEN 0 64 0.0.0.0:39085 [&hellip;]<\/p>\n<div class=\"pvc_clear\"><\/div>\n<p id=\"pvc_stats_2949\" class=\"pvc_stats all  \" data-element-id=\"2949\" style=\"\"><i class=\"pvc-stats-icon medium\" aria-hidden=\"true\"><svg aria-hidden=\"true\" focusable=\"false\" data-prefix=\"far\" data-icon=\"chart-bar\" role=\"img\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 512 512\" class=\"svg-inline--fa fa-chart-bar fa-w-16 fa-2x\"><path fill=\"currentColor\" d=\"M396.8 352h22.4c6.4 0 12.8-6.4 12.8-12.8V108.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v230.4c0 6.4 6.4 12.8 12.8 12.8zm-192 0h22.4c6.4 0 12.8-6.4 12.8-12.8V140.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v198.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h22.4c6.4 0 12.8-6.4 12.8-12.8V204.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v134.4c0 6.4 6.4 12.8 12.8 12.8zM496 400H48V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16zm-387.2-48h22.4c6.4 0 12.8-6.4 12.8-12.8v-70.4c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v70.4c0 6.4 6.4 12.8 12.8 12.8z\" class=\"\"><\/path><\/svg><\/i> <img loading=\"lazy\" decoding=\"async\" width=\"16\" height=\"16\" alt=\"Loading\" src=\"https:\/\/www.linuxboxen.dk\/wp-content\/plugins\/page-views-count\/ajax-loader-2x.gif\" border=0 \/><\/p>\n<div class=\"pvc_clear\"><\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_sitemap_exclude":false,"_sitemap_priority":"","_sitemap_frequency":"","footnotes":""},"categories":[6,8],"tags":[],"class_list":["post-2949","post","type-post","status-publish","format-standard","hentry","category-danskshell","category-shell"],"a3_pvc":{"activated":true,"total_views":16,"today_views":0},"_links":{"self":[{"href":"https:\/\/www.linuxboxen.dk\/index.php?rest_route=\/wp\/v2\/posts\/2949","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.linuxboxen.dk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.linuxboxen.dk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.linuxboxen.dk\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.linuxboxen.dk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2949"}],"version-history":[{"count":0,"href":"https:\/\/www.linuxboxen.dk\/index.php?rest_route=\/wp\/v2\/posts\/2949\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.linuxboxen.dk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2949"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxboxen.dk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2949"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxboxen.dk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2949"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}