Disable Remote Connections Unbound
To disable remote connections in Unbound, you need to modify the remote-control: section in your Unbound configuration file. Specifically, you should set control-enable to no. Here is an example of how to configure this:
remote-control: control-enable: no
This configuration disables the remote control facility, preventing the use of the unbound-control utility to send commands to the running Unbound server. If you have already set up the necessary keys and certificates, you should also ensure that the remote-control: section is properly commented out or removed to prevent any unintended access.
Additionally, if you have any forwarders or stub zones configured to use TLS, you should disable those as well to ensure no remote connections are made. This can be done by setting tls-upstream to no in the respective zones.
If you have previously enabled remote control and set up the necessary files using unbound-control-setup, you may need to remove or modify those files to ensure they do not interfere with the new configuration.
After making these changes, restart the Unbound service to apply the new settings:
This will ensure that remote connections are disabled and that Unbound operates without the remote control facility.