LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-04-2017, 08:47 PM   #1
rgriffiths9
LQ Newbie
 
Registered: Apr 2013
Location: Sydney, Australia
Distribution: Fedora 31
Posts: 6

Rep: Reputation: Disabled
fault_tolerant_router won't return


Trying to set up fault_tolerant_router
[URL="https://github.com/drsound/fault_tolerant_router"]/URL]
on a standalone i7 desktop, to solve a particular problem in our office that we can't seem to fix with a commercial router.

It rolls over as soon as the primary link goes down, but won't return to the primary when that link comes back up.

The network config is
link 1 (enp1s0) -> outbound router 1
link 2 (enp2s0) -> outbound router 2
link 3 (enp3s0) <-> Office LAN

I've attached below the 3 ifcfg-xxx files from /etc/sysconfig/network-scripts, and also /etc/fault_tolerant_router.conf

Anyone out there using ftr successfully, who can see my (OBVIOUS?) error?

Any advice greatly appreciated.

Russell Griffiths


ifcfg-enp1s0
NAME="System enp1s0"
TYPE=Ethernet
DEVICE=enp1s0
HWADDR="4c:cc:6a:4e:5b:00"
BOOTPROTO=STATIC
IPADDR=192.168.1.5
NETMASK=255.255.255.0
BROADCAST=192.168.1.255
NETWORK=192.168.1.0
#IPV4_ROUTE_METRIC=300
DEFROUTE=no
ONBOOT=yes
DNS1=192.168.1.1
DNS2=8.8.8.8
DNS3=8.8.4.4
UUID=d771bcc5-7cde-4323-9215-fa60db7b1652
MACADDR=""
IPV4_FAILURE_FATAL=no
PROXY_METHOD=none
IPV6_FAILURE_FATAL=no
IPV6INIT=no
BROWSER_ONLY=no
IPV6_AUTOCONF=no
IPV6_DEFROUTE=no
BOOTPROTO=none
MTU=""

link2
NAME="System enp1s0"
TYPE=Ethernet
DEVICE=enp1s0
HWADDR="4c:cc:6a:4e:5b:00"
BOOTPROTO=STATIC
IPADDR=192.168.1.5
NETMASK=255.255.255.0
BROADCAST=192.168.1.255
NETWORK=192.168.1.0
#IPV4_ROUTE_METRIC=300
DEFROUTE=no
ONBOOT=yes
DNS1=192.168.1.1
DNS2=8.8.8.8
DNS3=8.8.4.4
UUID=d771bcc5-7cde-4323-9215-fa60db7b1652
MACADDR=""
IPV4_FAILURE_FATAL=no
PROXY_METHOD=none
IPV6_FAILURE_FATAL=no
IPV6INIT=no
BROWSER_ONLY=no
IPV6_AUTOCONF=no
IPV6_DEFROUTE=no
BOOTPROTO=none
MTU=""

link3
NAME="System enp3s0"
TYPE=Ethernet
DEVICE=enp3s0
BOOTPROTO=STATIC
IPADDR=192.168.0.28
NETMASK=255.255.255.0
BROADCAST=192.168.0.255
NETWORK=192.168.0.0
#IPV4_ROUTE_METRIC=200
DEFROUTE=no
ONBOOT=yes
DNS1=192.168.0.2
DNS2=8.8.8.8
DNS3=8.8.4.4
UUID=4ae0f9b3-171e-3b86-984b-5a43155ea305
MACADDR=""
IPV4_FAILURE_FATAL=no
PROXY_METHOD=none
IPV6_FAILURE_FATAL=no
IPV6INIT=no
BROWSER_ONLY=no
IPV6_AUTOCONF=no
IPV6_DEFROUTE=no
BOOTPROTO=none
MTU="

fault_tolerant_router.conf
uplinks:
- interface: enp2s0
type: static
ip: 192.168.1.27
gateway: 192.168.1.1
description: Optus
priority_group: 1
#optional parameter
weight: 1
- interface: enp3s0
type: static
ip: 192.168.0.28
gateway: 192.168.0.2
description: Telstra
priority_group: 5
#optional parameter
weight: 1

downlinks:
# this is the interface where all the traffic from the office LAN
# that is headed outbound to the internet, comes IN
lan: enp1s0
#leave blank if you have no DMZ
dmz:

tests:
#an array of IP addresses to ping to verify the uplinks state. You can add as
#many as you wish. Predefined ones are Google DNS, OpenDNS DNS, other public
#DNS. Every time an uplink is tested the IP addresses are shuffled, so listing
#order is not important.
ips:
- 8.8.8.8
- 8.8.4.4
- 208.67.222.222
- 208.67.220.220
- 4.2.2.2
- 4.2.2.3
#number of successfully pinged IP addresses to consider an uplink to be
#functional
required_successful: 4
#number of ping retries before giving up on an IP
ping_retries: 1
#seconds between a check of the uplinks and the next one
interval: 5

log:
file: "/var/log/fault_tolerant_router.log"
#file: "/tmp/fault_tolerant_router.log"
#maximum log file size (in bytes). Once reached this size, the log file will
#be rotated.
max_size: 1024000
#number of old rotated files to keep
old_files: 10

email:
send: true
sender: router@<deleted>.com.au
recipients:
- <deleted>f9999@gmail.com
smtp_parameters:
address: smtp.gmail.com
port: 587
#domain: domain.com
authentication: :login
enable_starttls_auto: true
user_name: <deleted for this post>@gmail.com
password: <deleted for this post>
#base IP route table number, just need to change if you are already using
#multiple routing tables
base_table: 1

#just need to change if you are already using ip policy routing, to avoid
#overlapping, must be higher than 32767 (the default routing table priority,
#see output of "ip rule" command)
base_priority: 40000

#just need to change if you are already using packet marking, to avoid
#overlapping
base_fwmark: 1
 
Old 11-05-2017, 04:47 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 15,707

Rep: Reputation: 2222Reputation: 2222Reputation: 2222Reputation: 2222Reputation: 2222Reputation: 2222Reputation: 2222Reputation: 2222Reputation: 2222Reputation: 2222Reputation: 2222
In /etc/fault_tolerant_router.conf, I see stuff that would assist the switch from quiet to main router if the other one goes awol. What I don't see is the stuff to switch back. How is that documented on the software you installed?

The other option is to start something in the rc scripts of the master router. The ideal scenario is to divert all new connections back to the master router, but I don't know offhand how you'd manage that. If you did, the guy downloading his movie on the backup would be able to finish it on the backup router while the repaired/recovered router would handle new requests. If he then changed web pages, the main router would handle that.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] grep won't return a number at end of line jgrizich Linux - Newbie 7 10-15-2012 01:20 PM
Hard Drives won't mount, return errors n.b.r. Linux - Hardware 9 07-27-2008 04:46 PM
My computer sometimes won't return me to the prompt. wilsonsamm Linux - General 1 08-22-2006 06:32 AM
LXer: Why Your Doctor Won't Return Your Email LXer Syndicated Linux News 0 04-28-2006 06:54 PM
function won ' t return character array word Linh Programming 1 07-31-2003 07:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:19 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration