Page MenuHomeVyOS Platform

Local SSH and HA proxy SSH service give a commit error
In progress, HighPublicBUG

Description

When local service ssh is enable on VyOS to a dedicated Interface AND haproxy ssh service is also enabled for backend servers, the commit gives an error:

set interfaces ethernet eth0 address '10.0.0.1/24'  --> Local SSH enabled
set interfaces ethernet eth0 vif 10 address '192.168.10.20/24' --> FrontEnd SSH enabled
set interfaces ethernet eth1 address '10.0.1.1/24' --> Server subnet 
set service ssh listen-address '10.0.0.1'
set service ssh port '22'
commit;save

Then we configure HA proxy with ssh service

set load-balancing haproxy backend InternalServer mode 'tcp'
set load-balancing haproxy backend InternalServer server service-ssh address '10.0.1.100'
set load-balancing haproxy backend InternalServer server service-ssh port '22'
set load-balancing haproxy service InternalServer backend 'InternalServer'
set load-balancing haproxy service InternalServer listen-address 192.168.10.20
set load-balancing haproxy service InternalServer mode 'tcp'
set load-balancing haproxy service InternalServer port '22'
[edit]
vyos@vyos# commit;save
[ load-balancing haproxy ]
TCP port "22" is used by another service
[[load-balancing haproxy]] failed
Commit failed
Warning: you have uncommitted changes that will not be saved.

Weird thing is IF I configure haproxy first and then configure local SSH, the commit doesn't give an error.

[edit]
vyos@vyos# delete service ssh
[edit]
vyos@vyos# commit;save
[edit]
vyos@vyos# set service ssh listen-address 10.0.0.1
[edit]
vyos@vyos# set service ssh port 22
[edit]
vyos@vyos# commit;save

No error and the actual HAproxy and local ssh works

Details

Version
1.5.1
Is it a breaking change?
Perfectly compatible
Issue type
Bug (incorrect behavior)

Event Timeline

j.vela created this object in space S1 VyOS Public.
SrividyaA raised the priority of this task from Low to High.Fri, Oct 16, 7:50 AM
Viacheslav changed the subtype of this task from "Task" to "Bug".Fri, Oct 16, 2:45 PM
natali-rs1985 changed the task status from Open to In progress.Fri, Oct 16, 4:40 PM
natali-rs1985 claimed this task.
natali-rs1985 changed Is it a breaking change? from Unspecified (possibly destroys the router) to Perfectly compatible.
natali-rs1985 changed Issue type from Unspecified (please specify) to Bug (incorrect behavior).