L2TP Client: FireBrick: Difference between revisions

(→‎top: clean up)
This example is for L2TP being the main connection:
 
<syntaxhighlight lang="xml">
<interface name="WAN"
port="WAN1"
comment="L2TP tunnel to AAISP"/>
</l2tp>
</syntaxhighlight>
 
You can set to fall back to NAT if the tunnel is down. Traffic on routing table 0 won't have a default gateway if the L2TP is down, so will match this rule set that has target interface "nowhere":
 
<syntaxhighlight lang="xml">
<rule-set name="Fallback"
target-interface="nowhere"
action="accept"/>
</rule-set>
</syntaxhighlight>
 
If the L2TP is being used for fallback, you are probably better off setting the routing table for the L2TP to something other than 0. Remember firewall rules only apply to single routing tables. You can then use profiles to bring the L2TP in to service in the even of the PPP going down etc.