drsound / fault_tolerant_router

A daemon, running in background on a Linux router or firewall, monitoring the state of multiple internet uplinks/providers and changing the routing accordingly. LAN/DMZ internet traffic is load balanced between the uplinks.
GNU General Public License v2.0
185 stars 20 forks source link

with static its, gives RTNETLINK error #21

Closed blackbadgerltd closed 7 years ago

blackbadgerltd commented 7 years ago

RTNETLINK answers: No such file or directory RTNETLINK answers: No such file or directory RTNETLINK answers: No such file or directory RTNETLINK answers: No such file or directory RTNETLINK answers: No such file or directory RTNETLINK answers: No such file or directory RTNETLINK answers: No such file or directory RTNETLINK answers: No such file or directory RTNETLINK answers: No such file or directory RTNETLINK answers: No such file or directory RTNETLINK answers: No such process RTNETLINK answers: No such process RTNETLINK answers: No such process RTNETLINK answers: No such process RTNETLINK answers: No such process RTNETLINK answers: No such process

with cons file:

uplinks:

downlinks: lan: wlan0

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:

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: false sender: router@domain.com recipients:

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

drsound commented 7 years ago

Don't know where those RTNETLINK answers, but there is a basic problem here: you have two uplinks in the same IP address class (192.168.1.0/24... I suppose the mask is 24) with the same default route IP address (192.168.1.1)! Try changing the IP address class of one of your uplinks and try again.