Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

losing connection in balance mode #46

Open
cangas-oz opened this issue Nov 6, 2024 · 3 comments
Open

losing connection in balance mode #46

cangas-oz opened this issue Nov 6, 2024 · 3 comments

Comments

@cangas-oz
Copy link

I have a problem with Discord (a zoom-like conferencing application), that in balance mode keeps freezing the participants every few minutes. If i change to failover with different weights to my isps there is no problem.
balance.conf:

Uncomment by removing hash symbols (#) and then edit as needed

service device role ping-ip weight gateway

TELMEX enp6s0f3 isp 8.8.8.8 20 192.168.3.254
HUGO enp6s0f0 isp 8.8.8.8 15 192.168.20.1
ALTAN enp3s0 isp 8.8.8.8 1 192.168.6.254
LAN1 enp6s0f1 lan
LAN2 enp6s0f2 lan

The mode controls whether to operate in "balanced" mode in which traffic

is distributed among the isp services proportional to the weights, or "failover"

mode in which all traffic is routed through the highest weighted service and

switches to lower-weighted services only when the higher one(s) are unavailable.

#mode=balanced
mode=failover

The "forwarding_group" option gives you fine control over how

packets are forwarded. See the online docs for details. :lan

means all interfaces marked as "lan" :isp means all interfaces

marked as "isp" the default (shown below) allows forwarding among

all lan and isp interfaces

forwarding_group=:lan :isp

The options below are passed to lsm, among others.

the defaults are shown. To change them, uncomment

and edit.

#warn_email=root@localhost
#interval_ms=1000
#max_packet_loss=15
#max_successive_pkts_lost=7
#min_packet_loss=5
#min_successive_pkts_rcvd=10
#long_down_time=120
this is a ubuntu-studio box routing...

@cangas-oz
Copy link
Author

I also note btw that if the service name is not in CAPITALS an error is generated because lsm.conf copies them over in upper case

@lstein
Copy link
Owner

lstein commented Nov 6, 2024 via email

@cangas-oz
Copy link
Author

thanks for replying. I am trying out a few things on that front.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants