Skip to content

Can't connect with anything after spinning up new version of Wirehole #123

@airdogvan

Description

@airdogvan

On my Ubuntu 22 machine no error.
After wg-quick up:

#] ip link add wg0 type wireguard
[#] wg setconf wg0 /dev/fd/63
[#] ip -4 address add 10.8.0.2/24 dev wg0
[#] ip link set mtu 1300 up dev wg0
[#] resolvconf -a wg0 -m 0 -x
[#] wg set wg0 fwmark 51820
[#] ip -6 route add ::/0 dev wg0 table 51820
[#] ip -6 rule add not fwmark 51820 table 51820
[#] ip -6 rule add table main suppress_prefixlength 0
[#] nft -f /dev/fd/63
[#] ip -4 route add 0.0.0.0/0 dev wg0 table 51820
[#] ip -4 rule add not fwmark 51820 table 51820
[#] ip -4 rule add table main suppress_prefixlength 0
[#] sysctl -q net.ipv4.conf.all.src_valid_mark=1
[#] nft -f /dev/fd/63

But I cannot connect to anything from my linux client and if I try to ping an external address:

ping 209.91.128.141                                                                                                                                                     ✔  2286  11:23:51
PING 209.91.128.141 (209.91.128.141) 56(84) bytes of data.
From 10.8.0.2 icmp_seq=1 Destination Port Unreachable
ping: sendmsg: Operation not permitted
From 10.8.0.2 icmp_seq=2 Destination Port Unreachable
ping: sendmsg: Operation not permitted

Tried on my phone (Android) and it said "connecting" without ever being connected. But the admin interface on the server (status) listed my phone as connected.

The previous version (with wg-easy) was working fine.

Thanks for looking into it.

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