Hi,
today a played a bit around with squid (installing pluging os-squid, configuring etc.) and after the tests went fine i removed squid (deleted firwall rules, disabled proxy, removed plugin).
I had a look at the config-file (diff latest backup before playing with squid with /conf/config.xml) nad the were leftovers in <opnsense><proxy>...</proxy></opnsense>
How can i put the config-file in the state before installig squid besides editing it manually?
Quote from: ibinsfei on October 04, 2024, 11:01:37 AM
How can i put the config-file in the state before installig squid
Export configuration from the System > Configuration menu, edit, re-import.
Quote from: ibinsfei on October 04, 2024, 11:01:37 AM
besides editing it manually?
Editing is the only way.
But that piece of configuration doesn't hurt, does it?
Quote from: Patrick M. Hausen on October 04, 2024, 11:31:39 AM
Quote from: ibinsfei on October 04, 2024, 11:01:37 AM
besides editing it manually?
Editing is the only way.
But that piece of configuration doesn't hurt, does it?
It maybe doesn't hurt, but it blows up the conf.xml and that is not neccessary.
IMHO the config-file should only have data inside, that is used.
The XML config is not really meant for human consumption. As for "blowing it up", I assume you mean inflating its size? That would only be by a handful of bytes. If you're that tight on storage space, you're in trouble anyway! ;D
If you're really concerned about cleanliness, get in the habit of backing up your config before you start experimenting, so you can restore afterwards.....