{"id":419,"date":"2014-07-24T15:38:02","date_gmt":"2014-07-24T15:38:02","guid":{"rendered":"http:\/\/www.bartons.org.uk\/?page_id=419"},"modified":"2014-07-24T15:38:02","modified_gmt":"2014-07-24T15:38:02","slug":"juniper-srx-notes","status":"publish","type":"page","link":"https:\/\/www.bartons.org.uk\/?page_id=419","title":{"rendered":"Juniper SRX Notes"},"content":{"rendered":"<p>probably the wrong way to do it but&#8230; <\/p>\n<p>to limit the speed on an interface<\/p>\n<p>set firewall policer GLOBAL-POLICER if-exceeding bandwidth-limit 5m<br \/>\nset firewall policer GLOBAL-POLICER if-exceeding burst-size-limit 100k<br \/>\nset firewall policer GLOBAL-POLICER then discard<\/p>\n<p>set firewall filter OUTBOUND-FILTER term SOURCE-ANY from source-address 0.0.0.0\/0<br \/>\nset firewall filter OUTBOUND-FILTER term SOURCE-ANY then policer GLOBAL-POLICER<br \/>\nset firewall filter OUTBOUND-FILTER term SOURCE-ANY then accept<br \/>\nset firewall filter OUTBOUND-FILTER term END-POLICY then accept<\/p>\n<p>set firewall filter INBOUND-FILTER term SOURCE-ANY from source-address 10.0.0.0\/24<br \/>\nset firewall filter INBOUND-FILTER term SOURCE-ANY then policer GLOBAL-POLICER<br \/>\nset firewall filter INBOUND-FILTER term SOURCE-ANY then accept<br \/>\nset firewall filter INBOUND-FILTER term END-POLICY then accept<\/p>\n<p>set interfaces ge-0\/0\/1 unit 0 family inet filter input INBOUND-FILTER<br \/>\nset interfaces ge-0\/0\/1 unit 0 family inet filter output OUTBOUND-FILTER<\/p>\n","protected":false},"excerpt":{"rendered":"<p>probably the wrong way to do it but&#8230; to limit the speed on an interface set firewall policer GLOBAL-POLICER if-exceeding bandwidth-limit 5m set firewall policer GLOBAL-POLICER if-exceeding burst-size-limit 100k set firewall policer GLOBAL-POLICER then discard set firewall filter OUTBOUND-FILTER term SOURCE-ANY from source-address 0.0.0.0\/0 set firewall filter OUTBOUND-FILTER term SOURCE-ANY then policer GLOBAL-POLICER set firewall [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":70,"menu_order":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-419","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.bartons.org.uk\/index.php?rest_route=\/wp\/v2\/pages\/419","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.bartons.org.uk\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.bartons.org.uk\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.bartons.org.uk\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bartons.org.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=419"}],"version-history":[{"count":0,"href":"https:\/\/www.bartons.org.uk\/index.php?rest_route=\/wp\/v2\/pages\/419\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/www.bartons.org.uk\/index.php?rest_route=\/wp\/v2\/pages\/70"}],"wp:attachment":[{"href":"https:\/\/www.bartons.org.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=419"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}