mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-21 07:55:00 +00:00
wireguard: Accept all IPs on server in a client setup
- Without this, all IPs on the server will be rejected and communication will not be possible. Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
parent
9242a9404f
commit
39fade1095
@ -475,11 +475,12 @@ def _update_wireguard_settings(connection, wireguard):
|
||||
|
||||
settings.set_property(nm.SETTING_WIREGUARD_PRIVATE_KEY,
|
||||
wireguard['private_key'])
|
||||
# XXX: not working
|
||||
peer = nm.WireGuardPeer.new()
|
||||
peer.set_endpoint(wireguard['peer_endpoint'], False)
|
||||
peer.set_public_key(wireguard['peer_public_key'], False)
|
||||
peer.set_preshared_key(wireguard['preshared_key'], False)
|
||||
peer.append_allowed_ip('0.0.0.0/0', False)
|
||||
peer.append_allowed_ip('::/0', False)
|
||||
settings.append_peer(peer)
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user