Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some config settings ignored in dshield.php #22

Open
gatheall opened this issue Jul 30, 2023 · 3 comments
Open

Some config settings ignored in dshield.php #22

gatheall opened this issue Jul 30, 2023 · 3 comments

Comments

@gatheall
Copy link
Contributor

gatheall commented Jul 30, 2023

Configuration settings such as 'ccaddr' are ignored in dshield.php because the $config array gets overwritten when processing the functions.inc include. One solution is to rename the array in the script (eg, $config -> $dshield_config) for those settings intended to be defined in dshield.ini.

Note, though, that notification settings (eg, $config['notifications']['smtp']['ipaddress']) are defined not in dshield.ini but in /cf/conf/config.xml and thus should not be renamed.

@gatheall
Copy link
Contributor Author

This also affects the composition of log lines submitted to dshield as the 'uid' setting is referenced after including functions.inc.

@gatheall
Copy link
Contributor Author

Some notification settings (eg, $config['notifications']['smtp']['fromaddress']) are used in dshield.php before they are populated in the include files.

Note that this means the check of whether $config['notifications']['smtp']['ipaddress'] is set won't fail when an email server is configured in pfSense (under System / Advanced / Notifications). That said, I suspect the check should be reversed; ie, exit if it is not set.

@gatheall
Copy link
Contributor Author

I'll work on a pull request to fix this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant