Page MenuHomeVyOS Platform

Reverse-proxy configuration rule url-path looks incomplete
Closed, ResolvedPublicBUG

Description

URL path for this configuration does nothing:

set load-balancing reverse-proxy service foo port '4443'
set load-balancing reverse-proxy service foo rule 10 set backend 'bk01'
set load-balancing reverse-proxy service foo rule 10 url-path end '/local'
set load-balancing reverse-proxy backend bk01 server s1 address '192.0.2.1'
set load-balancing reverse-proxy backend bk01 server s1 port '4443'

We get empty rule 10 # rule 10 for the frontend

cat /run/haproxy/haproxy.cfg


# Frontend
frontend foo
    bind :::4443 v4v6  
    # rule 10


# Backend
backend bk01
    balance roundrobin
    option forwardfor
    http-request set-header X-Forwarded-Port %[dst_port]
    http-request add-header X-Forwarded-Proto https if { ssl_fc }
    server s1 192.0.2.1:4443

It should either - works only with redirect (xxx rule 10 set redirect-location ) or something is not implemented

Details

Difficulty level
Normal (likely a few hours)
Version
VyOS 1.5-rolling-202403250019
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Unspecified (possibly destroys the router)
Issue type
Bug (incorrect behavior)

Event Timeline

Viacheslav triaged this task as Normal priority.Mar 27 2024, 9:48 PM
Viacheslav created this task.
Viacheslav changed the task status from Open to Needs testing.Wed, May 1, 7:16 AM
Viacheslav assigned this task to nvollmar.
Viacheslav moved this task from Need Triage to Finished on the VyOS 1.5 Circinus board.
Viacheslav moved this task from Need Triage to Finished on the VyOS 1.4 Sagitta (1.4.0-epa3) board.