Skip to content

Cannot create a working peer and a peer with large subnet. #127

@rylaix

Description

@rylaix

Hello! I'm stuck on how configure wirehole client to support ip's for final config files in a large subnet like /16 or /8.
I'm also struggled with how to add a peer correctly.
I'm performing this commands to create peer:
'docker', 'exec', 'wg-easy', 'wg', 'genkey'
'docker', 'exec', 'wg-easy', 'bash', '-c', f"echo {private_key} | wg pubkey"
'docker', 'exec', 'wg-easy' f"wg set wg0 peer {public_key} allowed-ips {ip_address}/32

final config file looks like that in my case:
[Interface]
PrivateKey = {private_key}
Address = {ip_address}
DNS = 1.1.1.1

[Peer]
PublicKey = {public_key}
Endpoint = 79.116.49.29:51820
AllowedIPs = 0.0.0.0/0, ::/0

When enabling this config file, internet doesn't work
How do i configure docker to work with large subnet and what's I'm doing wrong with peer creation?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions