{"id":489,"date":"2019-06-23T13:59:25","date_gmt":"2019-06-23T05:59:25","guid":{"rendered":"http:\/\/www.lanchbury.id.au\/?p=489"},"modified":"2019-06-23T15:25:16","modified_gmt":"2019-06-23T07:25:16","slug":"failover-internet-on-er-x-edgerouter-edgemax-ubnt","status":"publish","type":"post","link":"https:\/\/www.lanchbury.au\/?p=489","title":{"rendered":"Failover Internet on ER-X -Ubiquiti (Ubnt) Edgerouter \/ EdgeMax"},"content":{"rendered":"<p>Still a new router to me, and this goes for the language it uses but I&#8217;ve striped out the configuration the wizard used to setup fail over internet below, after only a few minor changes (narrow the internal group to the ranges I use, description changes, and group name changes to suit what I&#8217;m using) and applied it to my existing config with out issue.<\/p>\n<p>So I am back to NBN fail-over to wireless point-to-point.<\/p>\n<p><code>set firewall group address-group Internal address 172.30.0.0\/24<br \/>\nset firewall modify balance rule 10 action modify<br \/>\nset firewall modify balance rule 10 description 'Do not load balance lan to lan'<br \/>\nset firewall modify balance rule 10 destination group address-group Internal<br \/>\nset firewall modify balance rule 10 modify table main<br \/>\nset firewall modify balance rule 50 action modify<br \/>\nset firewall modify balance rule 50 description 'Do not load balance destination public address'<br \/>\nset firewall modify balance rule 50 destination group address-group ADDRv4_pppoe0<br \/>\nset firewall modify balance rule 50 modify table main<br \/>\nset firewall modify balance rule 60 action modify<br \/>\nset firewall modify balance rule 60 description 'Do not load balance destination public address'<br \/>\nset firewall modify balance rule 60 destination group address-group ADDRv4_eth4<br \/>\nset firewall modify balance rule 60 modify table main<br \/>\nset firewall modify balance rule 70 action modify<br \/>\nset firewall modify balance rule 70 modify lb-group FailOver<br \/>\nset firewall options mss-clamp mss 1412<br \/>\nset load-balance group FailOver interface eth4 failover-only<br \/>\nset load-balance group FailOver interface pppoe0<br \/>\nset load-balance group FailOver lb-local enable<br \/>\nset load-balance group FailOver lb-local-metric-change disable<br \/>\nset system conntrack expect-table-size 4096<br \/>\nset system conntrack hash-size 4096<br \/>\nset system conntrack table-size 32768<br \/>\nset system conntrack tcp half-open-connections 512<br \/>\nset system conntrack tcp loose enable<br \/>\nset system conntrack tcp max-retrans 3<\/code><\/p>\n<p>During my research I did read about people needing to reboot the router after these changes, this was through the GUI interface, not much reason was given to why but when your in the CLI it does explain.<\/p>\n<p><code>[ system conntrack hash-size 4096 ]<br \/>\nUpdated conntrack hash size. This change will take affect when the system is rebooted.<\/code><\/p>\n<p>So the normal routing table:<br \/>\n<code>IP Route Table for VRF \"default\"<br \/>\nS    *&gt; 0.0.0.0\/0 [1\/0] is directly connected, pppoe0<br \/>\nS       0.0.0.0\/0 [100\/0] via 10.60.70.177, eth4<br \/>\nS    *&gt; 10.0.0.0\/8 [1\/0] via 10.60.70.177, eth4<br \/>\n........<\/code><\/p>\n<p>and the failover routing table:<br \/>\n<code>IP Route Table for VRF \"default\"<br \/>\nS    *&gt; 0.0.0.0\/0 [100\/0] via 10.60.70.177, eth4<br \/>\nS       0.0.0.0\/0 [1\/0] is directly connected, pppoe0 inactive<br \/>\nS    *&gt; 10.0.0.0\/8 [1\/0] via 10.60.70.177, eth4<br \/>\n..........<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Still a new router to me, and this goes for the language it uses but I&#8217;ve striped out the configuration the wizard used to setup fail over internet below, after only a few minor changes (narrow the internal group to the ranges I use, description changes, and group name changes to suit what I&#8217;m using) &hellip; <\/p>\n<p><a class=\"more-link btn\" href=\"https:\/\/www.lanchbury.au\/?p=489\">Continue reading<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[5,12,4],"tags":[],"class_list":["post-489","post","type-post","status-publish","format-standard","hentry","category-hardware","category-how-to","category-technical","item-wrap"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p7tC7P-7T","jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/www.lanchbury.au\/index.php?rest_route=\/wp\/v2\/posts\/489","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.lanchbury.au\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.lanchbury.au\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.lanchbury.au\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.lanchbury.au\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=489"}],"version-history":[{"count":3,"href":"https:\/\/www.lanchbury.au\/index.php?rest_route=\/wp\/v2\/posts\/489\/revisions"}],"predecessor-version":[{"id":495,"href":"https:\/\/www.lanchbury.au\/index.php?rest_route=\/wp\/v2\/posts\/489\/revisions\/495"}],"wp:attachment":[{"href":"https:\/\/www.lanchbury.au\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=489"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.lanchbury.au\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=489"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.lanchbury.au\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=489"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}