Where are the config files for ssh and wireguard?

RutX10 / RUTOS 07.07.3
RutX11 / RUTOS 07.06.3

The config files for ssh are usually in /etc/ssh/
and the config files for wireguard are usually in /etc/wireguard/

I have looked there (and everywhere else)
and cant find them.

Can you tell me where they are

thanks
mc

Hello,

SSH configuration file you can find under /etc/config/dropbear and wireguard under /etc/config/firewall.

Hope this helps!

Best Regards,

Thanks Marijus,

  1. /etc/config dropbear has the sshd config - thanks.

  2. In /etc/config/firewall I can see the wireguard firewall rules.
    BUT that is not the whole configuration.
    For a configuration named (say) wg0
    there should be a wg0.conf file that includes, for example:


PrivateKey = [server private_key]
Address = 10.18.10.1/32
ListenPort = 28777

[Peer]
# peer 1
PublicKey = [peer 1 public key]
AllowedIPs = 10.18.0.0/16

[Peer]
# peer 2
PublicKey = [peer 2 public key]
AllowedIPs = 10.18.0.0/16

Where is this information kept?
(usually it is in /etc/wireguard/wg0.conf)

thanks

Hello,

Sorry for any confusion. You can find this configuration in the /etc/config/network directory.

Best Regards,

Thanks very much.

On a point of very small detail, it is the “network” file in the /etc/config directory.

Hello,

I’m glad to hear your question is solved.
Thank you for noting that; yes, I was referring to the network file in the /etc/config directory.

If you have any more questions or need further assistance, please don’t hesitate to ask on this forum!

Best Regards,