FireBrick How to: Upload Route Overrides: Difference between revisions

mNo edit summary
It's easier to manage the config if we create an IP Group for the device(s) that we want to use line 3 for their upload.
 
<syntaxhighlight lang=xml>
<ip-group name="phones" ip="192.0.2.99" comment="IPs here are phones, this is used in route overrides"/>
</syntaxhighlight>
 
===Profile===
We want to only override the route if the DSL line is up, so lets create a profile for this: (our line 3 is called ADSL3)
<syntaxhighlight lang=xml>
<profile name="ADSL3" ppp="ADSL3"/>
</syntaxhighlight>
 
===PPP Changes===
eg:
 
<syntaxhighlight lang=xml>
<ppp name="WAN3" port="WAN" username="example@a.3" password="secret" speed="300000" lcp-rate="1" lcp-timeout="10" routes="0.0.0.3" localpref="50" graph="Line 3" comment="Used for VOIP upload hence localpref and route"/>
</syntaxhighlight>
 
===Route override===
This is where the routing logic happens. If the line is up then send traffic from the phone IP group to line 3
<syntaxhighlight lang=xml>
<route-override name="VoIP" profile="ADSL3" comment="Send VoIP up line 3">
<rule source-ip="phones" set-gateway="0.0.0.3"/>
</route-override>
</syntaxhighlight>
 
==The Result==