mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-09 18:45:54 +02:00
network: Create route to gateway
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>
This commit is contained in:
@@ -124,6 +124,9 @@ case "${1}" in
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user