{"id":1444,"date":"2018-05-14T17:12:52","date_gmt":"2018-05-14T15:12:52","guid":{"rendered":"http:\/\/blog.purplescreen.fr\/?p=1444"},"modified":"2018-05-15T09:47:21","modified_gmt":"2018-05-15T07:47:21","slug":"traffic-filtering-and-masking","status":"publish","type":"post","link":"http:\/\/blog.purplescreen.fr\/?p=1444","title":{"rendered":"Traffic Filtering and Masking"},"content":{"rendered":"<p>On last week, I spoke with a friend about Traffic Filtering on vSphere. I realised that he has not been really knowledge about this feature. So, I decided to post a new article about it, because I think it&#8217;s a great feature and it&#8217;s useful as well. For example, I think it&#8217;s very useful to tag some traffic like vSAN or Tag\/Drop\/Allow traffic between some Virtual Machines. Anyway, I think it&#8217;s just useful for design and implementation. I&#8217;m going to explain how you can implement it, but be careful with some options.<br \/>\nFirst, enable it on your distributed port group and click on the green button &#8220;+&#8221; to add a new rule.<br \/>\n<a href=\"http:\/\/blog.purplescreen.fr\/wp-content\/uploads\/2018\/05\/Capture-d\u2019\u00e9cran-2018-05-12-\u00e0-10.15.22.png\"><img loading=\"lazy\" class=\"aligncenter wp-image-1448 size-full\" src=\"http:\/\/blog.purplescreen.fr\/wp-content\/uploads\/2018\/05\/Capture-d\u2019\u00e9cran-2018-05-12-\u00e0-10.15.22.png\" alt=\"Add New Rule\" width=\"491\" height=\"300\" srcset=\"http:\/\/blog.purplescreen.fr\/wp-content\/uploads\/2018\/05\/Capture-d\u2019\u00e9cran-2018-05-12-\u00e0-10.15.22.png 491w, http:\/\/blog.purplescreen.fr\/wp-content\/uploads\/2018\/05\/Capture-d\u2019\u00e9cran-2018-05-12-\u00e0-10.15.22-300x183.png 300w\" sizes=\"(max-width: 491px) 100vw, 491px\" \/><\/a><br \/>\nAt this point, you can choose three actions options (Tag, Allow or Drop). Guess what ? If you choose tag, you can apply a QOS (COS or\/and DSCP) for your rule, contrary to Allow or Drop options.<br \/>\n<a href=\"http:\/\/blog.purplescreen.fr\/wp-content\/uploads\/2018\/05\/Capture-d\u2019\u00e9cran-2018-05-12-\u00e0-10.17.12.png\"><img loading=\"lazy\" class=\"aligncenter size-full wp-image-1454\" src=\"http:\/\/blog.purplescreen.fr\/wp-content\/uploads\/2018\/05\/Capture-d\u2019\u00e9cran-2018-05-12-\u00e0-10.17.12.png\" alt=\"Traffic Rule Options\" width=\"627\" height=\"302\" srcset=\"http:\/\/blog.purplescreen.fr\/wp-content\/uploads\/2018\/05\/Capture-d\u2019\u00e9cran-2018-05-12-\u00e0-10.17.12.png 627w, http:\/\/blog.purplescreen.fr\/wp-content\/uploads\/2018\/05\/Capture-d\u2019\u00e9cran-2018-05-12-\u00e0-10.17.12-300x144.png 300w\" sizes=\"(max-width: 627px) 100vw, 627px\" \/><\/a><br \/>\nNext, you have to specify traffic qualifier. Select direction of your traffic, Ingress, Egress or both. For reminder, when the traffic is entering to the dvSwitch, we can say that traffic is Ingress. And when the traffic is going out from the dvSwitch, we can say that traffic is Egress.<br \/>\n<a href=\"http:\/\/blog.purplescreen.fr\/wp-content\/uploads\/2018\/05\/Capture-d\u2019\u00e9cran-2018-05-12-\u00e0-11.23.53.png\"><img loading=\"lazy\" class=\"aligncenter size-full wp-image-1460\" src=\"http:\/\/blog.purplescreen.fr\/wp-content\/uploads\/2018\/05\/Capture-d\u2019\u00e9cran-2018-05-12-\u00e0-11.23.53.png\" alt=\"Ingress - Egress\" width=\"614\" height=\"148\" srcset=\"http:\/\/blog.purplescreen.fr\/wp-content\/uploads\/2018\/05\/Capture-d\u2019\u00e9cran-2018-05-12-\u00e0-11.23.53.png 614w, http:\/\/blog.purplescreen.fr\/wp-content\/uploads\/2018\/05\/Capture-d\u2019\u00e9cran-2018-05-12-\u00e0-11.23.53-300x72.png 300w\" sizes=\"(max-width: 614px) 100vw, 614px\" \/><\/a><br \/>\nThen, click on the green button &#8220;+&#8221; as well as select traffic type qualifier (Mac qualifier, IP qualifier or System Traffic qualifier).<br \/>\n<a href=\"http:\/\/blog.purplescreen.fr\/wp-content\/uploads\/2018\/05\/Capture-d\u2019\u00e9cran-2018-05-12-\u00e0-11.21.16.png\"><img loading=\"lazy\" class=\"aligncenter size-full wp-image-1461\" src=\"http:\/\/blog.purplescreen.fr\/wp-content\/uploads\/2018\/05\/Capture-d\u2019\u00e9cran-2018-05-12-\u00e0-11.21.16.png\" alt=\"Traffic Qualifier\" width=\"619\" height=\"175\" srcset=\"http:\/\/blog.purplescreen.fr\/wp-content\/uploads\/2018\/05\/Capture-d\u2019\u00e9cran-2018-05-12-\u00e0-11.21.16.png 619w, http:\/\/blog.purplescreen.fr\/wp-content\/uploads\/2018\/05\/Capture-d\u2019\u00e9cran-2018-05-12-\u00e0-11.21.16-300x85.png 300w\" sizes=\"(max-width: 619px) 100vw, 619px\" \/><\/a><br \/>\nSystem Traffic qualifier is a little bit different as MAC and IP Qualifier. It&#8217;s based on flow only, so this rule is applied on all of this traffic flow. I don&#8217;t detail these options later on this post, so\u00a0if you would like more details, please look at documentation on VMware web site or take a look at your environment.<\/p>\n<p>Here&#8217;s a quick overview around these three options.<\/p>\n<p>Traffic qualifier, you can filter any traffic flow of your infrastructure. These options are a part of the system setup by default. In my knowledge, you couldn&#8217;t add anything else, but it&#8217;s enough.<br \/>\n<a href=\"http:\/\/blog.purplescreen.fr\/wp-content\/uploads\/2018\/05\/Capture-d\u2019\u00e9cran-2018-05-12-\u00e0-18.33.14.png\"><img loading=\"lazy\" class=\"aligncenter size-full wp-image-1466\" src=\"http:\/\/blog.purplescreen.fr\/wp-content\/uploads\/2018\/05\/Capture-d\u2019\u00e9cran-2018-05-12-\u00e0-18.33.14.png\" alt=\"System Traffic Qualifier\" width=\"301\" height=\"312\" srcset=\"http:\/\/blog.purplescreen.fr\/wp-content\/uploads\/2018\/05\/Capture-d\u2019\u00e9cran-2018-05-12-\u00e0-18.33.14.png 301w, http:\/\/blog.purplescreen.fr\/wp-content\/uploads\/2018\/05\/Capture-d\u2019\u00e9cran-2018-05-12-\u00e0-18.33.14-289x300.png 289w\" sizes=\"(max-width: 301px) 100vw, 301px\" \/><\/a><br \/>\nMac qualifier, you can add any kind of these protocols type (TCPv4, TCPv6, or ARP) as well as a VLAN ID. After that, select your source and destination address, you can select a lot of options to meet your requirement.<br \/>\n<a href=\"http:\/\/blog.purplescreen.fr\/wp-content\/uploads\/2018\/05\/Capture-d\u2019\u00e9cran-2018-05-12-\u00e0-19.19.16.png\"><img loading=\"lazy\" class=\"aligncenter size-full wp-image-1475\" src=\"http:\/\/blog.purplescreen.fr\/wp-content\/uploads\/2018\/05\/Capture-d\u2019\u00e9cran-2018-05-12-\u00e0-19.19.16.png\" alt=\"MAC Qualifier\" width=\"656\" height=\"362\" srcset=\"http:\/\/blog.purplescreen.fr\/wp-content\/uploads\/2018\/05\/Capture-d\u2019\u00e9cran-2018-05-12-\u00e0-19.19.16.png 656w, http:\/\/blog.purplescreen.fr\/wp-content\/uploads\/2018\/05\/Capture-d\u2019\u00e9cran-2018-05-12-\u00e0-19.19.16-300x166.png 300w\" sizes=\"(max-width: 656px) 100vw, 656px\" \/><\/a><br \/>\nIP Qualifier, you can add any kind of these protocols type (TCP, UDP, ICMP, IPv6-ICMP) as well as the source and the destination port. Same as Mac Qualifier, you can add a lot of options to meet your requirement.<br \/>\n<a href=\"http:\/\/blog.purplescreen.fr\/wp-content\/uploads\/2018\/05\/Capture-d\u2019\u00e9cran-2018-05-12-\u00e0-18.35.37.png\"><img loading=\"lazy\" class=\"aligncenter size-full wp-image-1469\" src=\"http:\/\/blog.purplescreen.fr\/wp-content\/uploads\/2018\/05\/Capture-d\u2019\u00e9cran-2018-05-12-\u00e0-18.35.37.png\" alt=\"IP Qualifier\" width=\"515\" height=\"386\" srcset=\"http:\/\/blog.purplescreen.fr\/wp-content\/uploads\/2018\/05\/Capture-d\u2019\u00e9cran-2018-05-12-\u00e0-18.35.37.png 515w, http:\/\/blog.purplescreen.fr\/wp-content\/uploads\/2018\/05\/Capture-d\u2019\u00e9cran-2018-05-12-\u00e0-18.35.37-300x225.png 300w\" sizes=\"(max-width: 515px) 100vw, 515px\" \/><\/a><\/p>\n<p>Finally, you can up or down any rules depending on his priority. Here&#8217;s the Dashboard.<br \/>\n<a href=\"http:\/\/blog.purplescreen.fr\/wp-content\/uploads\/2018\/05\/Capture-d\u2019\u00e9cran-2018-05-14-\u00e0-19.41.58.png\"><img loading=\"lazy\" class=\"aligncenter size-full wp-image-1520\" src=\"http:\/\/blog.purplescreen.fr\/wp-content\/uploads\/2018\/05\/Capture-d\u2019\u00e9cran-2018-05-14-\u00e0-19.41.58.png\" alt=\"Rules Dashboard\" width=\"730\" height=\"527\" srcset=\"http:\/\/blog.purplescreen.fr\/wp-content\/uploads\/2018\/05\/Capture-d\u2019\u00e9cran-2018-05-14-\u00e0-19.41.58.png 730w, http:\/\/blog.purplescreen.fr\/wp-content\/uploads\/2018\/05\/Capture-d\u2019\u00e9cran-2018-05-14-\u00e0-19.41.58-300x217.png 300w\" sizes=\"(max-width: 730px) 100vw, 730px\" \/><\/a><\/p>\n<p>Have fun !!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>On last week, I spoke with a friend about Traffic Filtering on vSphere. I realised that he has not been really knowledge about this feature. So, I decided to post a new article about it, because I think it&#8217;s a great feature and it&#8217;s useful as well. For example, I think it&#8217;s very useful to&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[14],"tags":[42,54,53],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v19.8 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Traffic Filtering and Masking - PurpleScreen<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"http:\/\/blog.purplescreen.fr\/?p=1444\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"ogosselin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"http:\/\/blog.purplescreen.fr\/?p=1444\",\"url\":\"http:\/\/blog.purplescreen.fr\/?p=1444\",\"name\":\"Traffic Filtering and Masking - PurpleScreen\",\"isPartOf\":{\"@id\":\"http:\/\/blog.purplescreen.fr\/#website\"},\"datePublished\":\"2018-05-14T15:12:52+00:00\",\"dateModified\":\"2018-05-15T07:47:21+00:00\",\"author\":{\"@id\":\"http:\/\/blog.purplescreen.fr\/#\/schema\/person\/ad63980c08d122ffe9115ade81b21fd3\"},\"breadcrumb\":{\"@id\":\"http:\/\/blog.purplescreen.fr\/?p=1444#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\/\/blog.purplescreen.fr\/?p=1444\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"http:\/\/blog.purplescreen.fr\/?p=1444#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"http:\/\/blog.purplescreen.fr\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Traffic Filtering and Masking\"}]},{\"@type\":\"WebSite\",\"@id\":\"http:\/\/blog.purplescreen.fr\/#website\",\"url\":\"http:\/\/blog.purplescreen.fr\/\",\"name\":\"PurpleScreen\",\"description\":\"by Olivier Gosselin\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"http:\/\/blog.purplescreen.fr\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"http:\/\/blog.purplescreen.fr\/#\/schema\/person\/ad63980c08d122ffe9115ade81b21fd3\",\"name\":\"ogosselin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"http:\/\/blog.purplescreen.fr\/#\/schema\/person\/image\/\",\"url\":\"http:\/\/0.gravatar.com\/avatar\/6a053a3dca3cccbeecd37d492189f38f?s=96&d=mm&r=g\",\"contentUrl\":\"http:\/\/0.gravatar.com\/avatar\/6a053a3dca3cccbeecd37d492189f38f?s=96&d=mm&r=g\",\"caption\":\"ogosselin\"},\"sameAs\":[\"https:\/\/www.linkedin.com\/in\/olivier-gosselin-30090498\/\"],\"url\":\"http:\/\/blog.purplescreen.fr\/?author=1\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Traffic Filtering and Masking - PurpleScreen","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"http:\/\/blog.purplescreen.fr\/?p=1444","twitter_misc":{"Written by":"ogosselin","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"http:\/\/blog.purplescreen.fr\/?p=1444","url":"http:\/\/blog.purplescreen.fr\/?p=1444","name":"Traffic Filtering and Masking - PurpleScreen","isPartOf":{"@id":"http:\/\/blog.purplescreen.fr\/#website"},"datePublished":"2018-05-14T15:12:52+00:00","dateModified":"2018-05-15T07:47:21+00:00","author":{"@id":"http:\/\/blog.purplescreen.fr\/#\/schema\/person\/ad63980c08d122ffe9115ade81b21fd3"},"breadcrumb":{"@id":"http:\/\/blog.purplescreen.fr\/?p=1444#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["http:\/\/blog.purplescreen.fr\/?p=1444"]}]},{"@type":"BreadcrumbList","@id":"http:\/\/blog.purplescreen.fr\/?p=1444#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"http:\/\/blog.purplescreen.fr\/"},{"@type":"ListItem","position":2,"name":"Traffic Filtering and Masking"}]},{"@type":"WebSite","@id":"http:\/\/blog.purplescreen.fr\/#website","url":"http:\/\/blog.purplescreen.fr\/","name":"PurpleScreen","description":"by Olivier Gosselin","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"http:\/\/blog.purplescreen.fr\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"http:\/\/blog.purplescreen.fr\/#\/schema\/person\/ad63980c08d122ffe9115ade81b21fd3","name":"ogosselin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"http:\/\/blog.purplescreen.fr\/#\/schema\/person\/image\/","url":"http:\/\/0.gravatar.com\/avatar\/6a053a3dca3cccbeecd37d492189f38f?s=96&d=mm&r=g","contentUrl":"http:\/\/0.gravatar.com\/avatar\/6a053a3dca3cccbeecd37d492189f38f?s=96&d=mm&r=g","caption":"ogosselin"},"sameAs":["https:\/\/www.linkedin.com\/in\/olivier-gosselin-30090498\/"],"url":"http:\/\/blog.purplescreen.fr\/?author=1"}]}},"_links":{"self":[{"href":"http:\/\/blog.purplescreen.fr\/index.php?rest_route=\/wp\/v2\/posts\/1444"}],"collection":[{"href":"http:\/\/blog.purplescreen.fr\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/blog.purplescreen.fr\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/blog.purplescreen.fr\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/blog.purplescreen.fr\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1444"}],"version-history":[{"count":65,"href":"http:\/\/blog.purplescreen.fr\/index.php?rest_route=\/wp\/v2\/posts\/1444\/revisions"}],"predecessor-version":[{"id":1526,"href":"http:\/\/blog.purplescreen.fr\/index.php?rest_route=\/wp\/v2\/posts\/1444\/revisions\/1526"}],"wp:attachment":[{"href":"http:\/\/blog.purplescreen.fr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1444"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/blog.purplescreen.fr\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1444"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/blog.purplescreen.fr\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1444"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}