{"id":94611,"date":"2022-11-29T10:12:58","date_gmt":"2022-11-29T09:12:58","guid":{"rendered":"https:\/\/www.avanet.com\/kb\/how-to-create-sophos-firewall-bypass-rule\/"},"modified":"2022-11-29T10:53:55","modified_gmt":"2022-11-29T09:53:55","slug":"how-to-create-sophos-firewall-bypass-rule","status":"publish","type":"kb","link":"https:\/\/www.avanet.com\/en\/kb\/how-to-create-sophos-firewall-bypass-rule\/","title":{"rendered":"How to create Sophos Firewall Bypass Rule"},"content":{"rendered":"\n<p>You can disable the Web filter, Intrusion prevention, Application Control, Advanced Threat Protection or other security features on the firewall. But the traffic still passes through the packet filter. To actually disable everything, there is a bypass rule. When this is enabled for a host or network, the traffic is affected by the firewall.   <\/p>\n\n<h2 class=\"wp-block-heading\" id=\"h-befehle-fur-bypass-regel\">Commands for Bypass Rule<\/h2>\n\n<p>Connect to the firewall via SSH to start the Device Console. After that you need the following commands. <\/p>\n\n<h2 class=\"wp-block-heading\">Create Bypass Rule<\/h2>\n\n<p>In our example we want to create a rule from network 192.168.33.0\/24 to network 192.168.46.0\/24.<\/p>\n\n<pre class=\"wp-block-code\"><code>set advanced-firewall bypass-stateful-firewall-config add source_network 192.168.33.0 source_netmask 255.255.255.0 dest_network 192.168.46.0 dest_netmask 255.255.255.0<\/code><\/pre>\n\n<p>The back rule must not be missing either. That the traffic from the destination network also goes through the bypass rule against our firewall. <\/p>\n\n<pre class=\"wp-block-code\"><code>set advanced-firewall bypass-stateful-firewall-config add source_network 192.168.46.0 source_netmask 255.255.255.0 dest_network 192.168.33.0 dest_netmask 255.255.255.0\n<\/code><\/pre>\n\n<p>\u26a0\ufe0f The bypass rule lets everything through, so you no longer need firewall rules and the traffic is no longer displayed in LogViewer. You should really only create a rule if you know what you are doing and are aware of the security risk. The firewall will simply let the traffic through and none of the protection functions will work for the specified network anymore.  <\/p>\n\n<h2 class=\"wp-block-heading\">Show rules<\/h2>\n\n<p>The following command can be used to display which bypass rules are recorded on the firewall.<\/p>\n\n<pre class=\"wp-block-code\"><code>show advanced-firewall<\/code><\/pre>\n\n<figure class=\"wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-1 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.avanet.com\/assets\/sophos-firewall-bypass-rules-show.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"2371\" height=\"1301\" data-id=\"94606\" src=\"https:\/\/www.avanet.com\/assets\/sophos-firewall-bypass-rules-show.jpg\" alt=\"\" class=\"wp-image-94606\" srcset=\"https:\/\/www.avanet.com\/assets\/sophos-firewall-bypass-rules-show.jpg 2371w, https:\/\/www.avanet.com\/assets\/sophos-firewall-bypass-rules-show-64x35.jpg 64w, https:\/\/www.avanet.com\/assets\/sophos-firewall-bypass-rules-show-300x165.jpg 300w, https:\/\/www.avanet.com\/assets\/sophos-firewall-bypass-rules-show-1024x562.jpg 1024w, https:\/\/www.avanet.com\/assets\/sophos-firewall-bypass-rules-show-768x421.jpg 768w, https:\/\/www.avanet.com\/assets\/sophos-firewall-bypass-rules-show-1536x843.jpg 1536w, https:\/\/www.avanet.com\/assets\/sophos-firewall-bypass-rules-show-2048x1124.jpg 2048w, https:\/\/www.avanet.com\/assets\/sophos-firewall-bypass-rules-show-600x329.jpg 600w\" sizes=\"auto, (max-width: 2371px) 100vw, 2371px\" \/><\/a><figcaption class=\"wp-element-caption\">Show Sophos Firewall Bypass Rules.<\/figcaption><\/figure>\n<\/figure>\n\n<h2 class=\"wp-block-heading\">Delete Bypass Rule<\/h2>\n\n<p>The delete command almost identical to the command to create the rule.\nInstead of <strong>add<\/strong>, one uses <strong>del<\/strong>. <\/p>\n\n<pre class=\"wp-block-code\"><code>set advanced-firewall bypass-stateful-firewall-config <strong>del<\/strong> source_network 192.168.33.0 source_netmask 255.255.255.0 dest_network 192.168.46.0 dest_netmask 255.255.255.0<\/code><\/pre>\n","protected":false},"author":5,"featured_media":0,"parent":0,"template":"","format":"standard","kb_kategorie":[382],"class_list":["post-94611","kb","type-kb","status-publish","format-standard","hentry","kb_kategorie-sophos-firewall"],"blocksy_meta":[],"acf":[],"_links":{"self":[{"href":"https:\/\/www.avanet.com\/en\/wp-json\/wp\/v2\/kb\/94611","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.avanet.com\/en\/wp-json\/wp\/v2\/kb"}],"about":[{"href":"https:\/\/www.avanet.com\/en\/wp-json\/wp\/v2\/types\/kb"}],"author":[{"embeddable":true,"href":"https:\/\/www.avanet.com\/en\/wp-json\/wp\/v2\/users\/5"}],"wp:attachment":[{"href":"https:\/\/www.avanet.com\/en\/wp-json\/wp\/v2\/media?parent=94611"}],"wp:term":[{"taxonomy":"kb_kategorie","embeddable":true,"href":"https:\/\/www.avanet.com\/en\/wp-json\/wp\/v2\/kb_kategorie?post=94611"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}