{"id":671,"date":"2008-04-22T10:39:31","date_gmt":"2008-04-22T07:39:31","guid":{"rendered":"http:\/\/www.imacandi.net\/sin\/blog\/?p=671"},"modified":"2008-04-22T10:39:31","modified_gmt":"2008-04-22T07:39:31","slug":"geek-stuff-as-path-lists","status":"publish","type":"post","link":"https:\/\/www.imacandi.net\/sin\/blog\/2008\/04\/22\/geek-stuff-as-path-lists.html","title":{"rendered":"[geek stuff] as-path lists"},"content":{"rendered":"<p>In urma unor discutii #mumuistice de azinoapte, m-am lamurit si io mai exact cum e cu as-path lists si cum draci arata ele si ce fac (io care&#8217;s relativ foarte paralele cu regexp-urile). So here goes:<\/p>\n<p>^123$ &#8211; un neighbor BGP care are AS123 si pentru care se va face match doar pentru prefixele originate din acest AS.<\/p>\n<p>^123.* &#8211; un neighbor BGP care are AS123 si care face tranzit si pentru altii.<\/p>\n<p>^123_321.* &#8211; un neighbot BGP care are AS123, care la randul lui face transport pentru AS321, care AS321 face tranzit pentru altii.<\/p>\n<p>_123$ &#8211; ce origineaza un AS oarecare (e.g. vrei sa blochezi toate rutele originate de AS123)<\/p>\n<p>Sper c&#8217;am explicat bine ce-am priceput io la 12 noaptea. Credits go to KobrAs c&#8217;a inteles ce e cu regexp-urile alea si a putut sa mi le explice si mie sa le pricep.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In urma unor discutii #mumuistice de azinoapte, m-am lamurit si io mai exact cum e cu as-path lists si cum draci arata ele si ce fac (io care&#8217;s relativ foarte paralele cu regexp-urile). So here goes: ^123$ &#8211; un neighbor BGP care are AS123 si pentru care se va face match doar pentru prefixele originate &hellip; <a href=\"https:\/\/www.imacandi.net\/sin\/blog\/2008\/04\/22\/geek-stuff-as-path-lists.html\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">[geek stuff] as-path lists<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"ngg_post_thumbnail":0,"footnotes":""},"categories":[2],"tags":[7],"class_list":["post-671","post","type-post","status-publish","format-standard","hentry","category-diverse","tag-computers"],"_links":{"self":[{"href":"https:\/\/www.imacandi.net\/sin\/blog\/wp-json\/wp\/v2\/posts\/671","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.imacandi.net\/sin\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.imacandi.net\/sin\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.imacandi.net\/sin\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.imacandi.net\/sin\/blog\/wp-json\/wp\/v2\/comments?post=671"}],"version-history":[{"count":0,"href":"https:\/\/www.imacandi.net\/sin\/blog\/wp-json\/wp\/v2\/posts\/671\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.imacandi.net\/sin\/blog\/wp-json\/wp\/v2\/media?parent=671"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.imacandi.net\/sin\/blog\/wp-json\/wp\/v2\/categories?post=671"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.imacandi.net\/sin\/blog\/wp-json\/wp\/v2\/tags?post=671"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}