Hi
I have 2 links load balance on vyos 1.8. I have problems with internet bancking, even after “set load-balancing wan sticky connections inbound” Is there any additional configuration for this problem? Is something missing in my setup?
Thanks
Marco Aurelio
my config’s
interfaces {
ethernet eth0 {
address 192.168.100.10/24
description wan01
duplex auto
hw-id xx:xx:xx:xx:xx:xx
smp_affinity auto
speed auto
}
ethernet eth1 {
address 192.168.90.254/24
description lan
duplex auto
hw-id xx:xx:xx:xx:xx:xx
smp_affinity auto
speed auto
}
ethernet eth2 {
address 192.168.200.10/24
description wan02
duplex auto
hw-id xx:xx:xx:xx:xx:xx
smp_affinity auto
speed auto
}
loopback lo {
}
}
load-balancing {
wan {
interface-health eth0 {
failure-count 2
nexthop 192.168.100.1
success-count 1
test 10 {
resp-time 5
target 8.8.8.8
ttl-limit 1
type ping
}
}
interface-health eth2 {
failure-count 2
nexthop 192.168.200.1
success-count 1
test 10 {
resp-time 5
target 8.8.4.4
ttl-limit 1
type ping
}
}
rule 10 {
inbound-interface eth1
interface eth0 {
weight 1
}
interface eth2 {
weight 1
}
protocol all
}
sticky-connections {
inbound
}
}
}
nat {
source {
rule 1 {
outbound-interface eth0
source {
address 192.168.90.0/24
}
translation {
address masquerade
}
}
rule 2 {
outbound-interface eth2
source {
address 192.168.90.0/24
}
translation {
address masquerade
}
}
}
}
protocols {
static {
route 0.0.0.0/0 {
next-hop 192.168.100.1 {
}
next-hop 192.168.200.1 {
}
}
}
}
service {
dns {
forwarding {
cache-size 0
listen-on eth1
name-server 8.8.8.8
name-server 8.8.4.4
}
}
ssh {
port 22
}
}
system {
config-management {
commit-revisions 100
}
console {
}
host-name vyos
login {
user vyos {
authentication {
encrypted-password xxxxxxxxxxxx/xxxxxxxxxxx
plaintext-password ""
}
level admin
}
}
ntp {
server 0.pool.ntp.org {
}
server 1.pool.ntp.org {
}
server 2.pool.ntp.org {
}
}
package {
auto-sync 1
repository community {
components main
distribution helium
password ""
url http://packages.vyos.net/vyos
username ""
}
}
syslog {
global {
facility all {
level notice
}
facility protocols {
level debug
}
}
}
time-zone UTC
}