Skip to content

wg AllowedIps not set #53

@Smephite

Description

@Smephite

While continuing my work on the NixOs integration I encountered the following issue:

My setup is as follows:

Nylon version v0.3.2.

routers:
  - id: vps
    address: 172.24.0.1
  - id: home_server
    address: 172.24.0.22
    services:
      - home
services:
   home: 192.168.32.0/24
graph:
  - vps, home_server

VPS is running NixOs with disabled firewall and enabled IP forwarding.
home_server is running Debian 6.12.48 with IP forwarding enabled.

By default, the two servers can ping each other, but I cannot ping the home network (192.168.32.0/24) from the VPS.

Using tcpdump, I can see the ping packets exiting the VPS nylon interface, but they are not being received on the home_server side.

Only after manually adding the allowed-ips settings to the WireGuard interface am I able to successfully ping the network.
(wg set nylon peer ... allowed-ips 192.168.32.0/24)

I am unsure, if this a nix specific issue, or something also encountered else wise.

Is there anything speaking against adding the AllowedIps setting to the wireguard interface from within Nylon?

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