Backup wpad files

Hello,

The use of automatic proxy settings is described in the page

The file /srv/web/ipfire/html/proxy.pac is in the backup

But not the files

/etc/httpd/conf/vhosts.d/wpad.conf
As well as the files linked in /srv/web/ipfire/wpad

As they are specified in the vhost for Apache paragraph

This setting is used in the case where dynamic DHCP is not used

Could we add them to the backup?

That is because that file is part of the standard installation. Every install has that file.

That is because those files are only created if the user follows that instruction for creating them. So it doesn’t make sense to have them sdecified to be backed up if the user has not created them.

Add them into the /var/ipfire/backup/include.user file. This is designed for the user to add in any additional files they want to have backed up.

See the User-defined paths section in the backup documentation
https://www.ipfire.org/docs/configuration/system/backup#data-backup

2 Likes

Thanks @bonnietwin

I added the lines

etc/httpd/conf/vhosts.d/wpad.conf
srv/web/ipfire/wpad
srv/web/ipfire/wpad/*

in
/var/ipfire/backup/include.user

:+1:

1 Like

To be exact. The wpad file is backuped by default. It is the file /srv/web/ipfire/html/proxy.pac.
Usually it is distributed by DHCP ( for fixed and dynamic leases ). Only in case of static configuration of the clients you have to supply the information by other means ( vhost for Apache f.e. ). These latter are user modiications, which must be honoured in include.user file.

1 Like

Thank you @bbitsch
I understand that there are several ways to declare the proxy for effective filtering
In particular for HTTPS filtering which must be declared on the client to work correctly
I also know that if we declare a static IP we can also manually declare the wpad url on the client
Choosing which is the “standard” is just a matter of point of view