Hello,
I managed to configure wireguard to be accessible by one client.
What I would like to do now is, ....
- make the server accessible by multiple clients simultaneously
- run the server on port 443
- move the server and client config to "/etc/wireguard/wg_server.conf and wg_client.conf" so that I don't have endless lines of code in my network config file.
(my LAN ip range is 10.13.54.0/24
current config in /etc/config/network
config interface 'wg_server'
option proto 'wireguard'
option private_key 'private_key_server'
list addresses '10.13.56.1/24'
option listen_port '50001'
config wireguard_wg_server
option description 'client_A_pc'
option public_key 'client_A_public_key'
list allowed_ips '10.13.56.31/24'
option route_allowed_ips '1'
option persistent_keepalive '25'
Number one priority for me is to have the config like below, so I can have multiple clients connect to the server at the smae time. I already tried many different ways to achieve my goal, all of them leading to an inaccessible wireguard server.
wanted config in /etc/config/network
config interface 'wg_server'
option proto 'wireguard'
option private_key 'private_key_server'
list addresses '10.13.56.1/24'
option listen_port '50001'
config wireguard_wg_server
option description 'client_A_pc'
option public_key 'client_A_public_key'
list allowed_ips '10.13.56.31/24'
option route_allowed_ips '1'
option persistent_keepalive '25'
config wireguard_wg_server
option description 'client_B_pc'
option public_key 'client_B_public_key'
list allowed_ips '10.13.56.32/24'
option route_allowed_ips '1'
option persistent_keepalive '25'
config wireguard_wg_server
option description 'client_C_pc'
option public_key 'client_C_public_key'
list allowed_ips '10.13.56.33/24'
option route_allowed_ips '1'
option persistent_keepalive '25'
and so on.....
I hope you guys can point me in the right direction.