I tried to setup a connection between a USG pro and opnsense with wireguard.
I can connect to the opnsene wireguard with my pc but on the usg its not working.
These settings are i used on windows that are working.
[Interface]
PrivateKey = key
Address = 10.10.20.2/32
DNS = 1.2.3.4
These are the settings i used on the usg
set interfaces wireguard wg0 address 10.10.20.3/24
set interfaces wireguard wg0 listen-port 51820
set interfaces wireguard wg0 route-allowed-ips true
set interfaces wireguard wg0 peer (same key as public key on windows) endpoint fqdm:51820
set interfaces wireguard wg0 peer same key as public key on windows) allowed-ips 10.10.20.0/24
set interfaces wireguard wg0 private-key /config/auth/wg.key
set firewall name WAN_LOCAL rule 20 action accept
set firewall name WAN_LOCAL rule 20 protocol udp
set firewall name WAN_LOCAL rule 20 description 'WireGuard'
set firewall name WAN_LOCAL rule 20 destination port 51820
Hello,
I tried to setup a connection between a USG pro and opnsense with wireguard. I can connect to the opnsene wireguard with my pc but on the usg its not working.
These settings are i used on windows that are working. [Interface] PrivateKey = key Address = 10.10.20.2/32 DNS = 1.2.3.4
[Peer] PublicKey = key AllowedIPs = 0.0.0.0/0 Endpoint = fqdm:51820
These are the settings i used on the usg set interfaces wireguard wg0 address 10.10.20.3/24 set interfaces wireguard wg0 listen-port 51820 set interfaces wireguard wg0 route-allowed-ips true set interfaces wireguard wg0 peer (same key as public key on windows) endpoint fqdm:51820 set interfaces wireguard wg0 peer same key as public key on windows) allowed-ips 10.10.20.0/24 set interfaces wireguard wg0 private-key /config/auth/wg.key set firewall name WAN_LOCAL rule 20 action accept set firewall name WAN_LOCAL rule 20 protocol udp set firewall name WAN_LOCAL rule 20 description 'WireGuard' set firewall name WAN_LOCAL rule 20 destination port 51820
What am i doing wrong ?