Some hosters have their gateway in a different subnet than
the RED interface is to save IPv4 address space.
This patch sets a host route to that gateway so that
IPFire can be installed in data centres that use such
technique.
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
echo -n "${DNS2}" > /var/ipfire/red/dns2
touch /var/ipfire/red/active
+ # Create route to default gateway
+ ip route add ${GATEWAY} dev ${DEVICE}
+
boot_mesg "Setting up default gateway ${GATEWAY}..."
ip route add default via ${GATEWAY} dev ${DEVICE}
evaluate_retval