Page MenuHomeVyOS Platform

"update webproxy blacklists" fails when vrf is being configured
Closed, ResolvedPublicBUG

Description

When having vrfs configured attempting to run "update webproxy blacklists" from op-mode fails:

vyos@vyos:~$ update webproxy blacklists 
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0curl: (6) Could not resolve host: ftp.univ-tlse1.fr
Unable to download [ftp://ftp.univ-tlse1.fr/pub/reseau/cache/squidguard_contrib/blacklists.tar.gz]!

Workaround is to first switch context into the vrf who can reach internet like so:

vyos@vyos:~$ force vrf INTERNET

vyos@vyos:INTERNET:~$ update webproxy blacklists 
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 27.2M  100 27.2M    0     0  1130k      0  0:00:24  0:00:24 --:--:-- 1150k
Uncompressing blacklist...

Suggestion is that "update webproxy blacklists" should get the same syntax as "add system image" where one from op-mode can specify which vrf the command should run under like so:

vyos@vyos:~$ update webproxy blacklists vrf INTERNET

Details

Version
VyOS 1.4-rolling-202307250317
Is it a breaking change?
Unspecified (possibly destroys the router)
Issue type
Bug (incorrect behavior)

Event Timeline

Viacheslav changed the task status from In progress to Needs testing.Aug 1 2023, 8:02 AM

I can confirm that updating blacklist now is vrf aware and functional:

vyos@vyos:~$ update webproxy blacklists vrf INTERNET
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 27.1M  100 27.1M    0     0  1103k      0  0:00:25  0:00:25 --:--:-- 1145k
Uncompressing blacklist...

Using VyOS 1.4-rolling-202308050917.