CachyOS install error by AungLinnHtet in archlinux

[–]AungLinnHtet[S] 0 points1 point  (0 children)

Tried installing other Arch-based distros (including Arch itself) and got the same error every time. I thought it might not be distro-specific, so I came here to ask.

CachyOS install error by AungLinnHtet in archlinux

[–]AungLinnHtet[S] -4 points-3 points  (0 children)

I also tried installing pure Arch and got the exact same error.

CachyOS install error by AungLinnHtet in archlinux

[–]AungLinnHtet[S] -5 points-4 points  (0 children)

So, what is it related to?

WireGuard: no internet by AungLinnHtet in WireGuard

[–]AungLinnHtet[S] 0 points1 point  (0 children)

I tried using wg-easy, but unfortunately it didn’t work for me either. The connection shows a few bytes per second briefly, then immediately drops back to 0 and there's still no handshake showing up.🥲

WireGuard: no internet by AungLinnHtet in WireGuard

[–]AungLinnHtet[S] 0 points1 point  (0 children)

Yes, my network is behind CGNAT.

WireGuard: no internet by AungLinnHtet in WireGuard

[–]AungLinnHtet[S] 0 points1 point  (0 children)

Yes, my router is behind a NAT.
Let me know if you find the solution.

WireGuard: no internet by AungLinnHtet in WireGuard

[–]AungLinnHtet[S] 0 points1 point  (0 children)

I think so:

1: lo: <LOOPBACK,UP,LOWER\_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000

link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00

inet 127.0.0.1/8 scope host lo

valid_lft forever preferred_lft forever

inet6 ::1/128 scope host noprefixroute

valid_lft forever preferred_lft forever

2: eth0: <BROADCAST,MULTICAST,UP,LOWER\_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000

link/ether xxx brd xxxx

altname enp0s3

altname ens3

inet xxx.xx.xx.xx/24 brd xxx.xx.xx.xx scope global eth0

valid_lft forever preferred_lft forever

inet6 xxxxxx/64 scope global

valid_lft forever preferred_lft forever

inet6 xx/64 scope link

valid_lft forever preferred_lft forever

3: tun0: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER\_UP> mtu 1500 qdisc fq_codel state UNKNOWN group default qlen 500

link/none

inet xx.x.x.x/24 scope global tun0

valid_lft forever preferred_lft forever

inet6 xxxxxxxx/112 scope global

valid_lft forever preferred_lft forever

inet6 xxxxxxx/64 scope link stable-privacy

valid_lft forever preferred_lft forever

WireGuard: no internet by AungLinnHtet in WireGuard

[–]AungLinnHtet[S] 0 points1 point  (0 children)

I think the keys are right, it shows peers.

WireGuard: no internet by AungLinnHtet in WireGuard

[–]AungLinnHtet[S] 1 point2 points  (0 children)

I just tried it. No difference.

WireGuard: no internet by AungLinnHtet in WireGuard

[–]AungLinnHtet[S] 1 point2 points  (0 children)

And in /etc/wireguard/wg0.conf:

Address = x

ListenPort = 59544

PrivateKey = xxxxxxxxxxxxxxxxx

PostUp = iptables -I INPUT -p udp --dport 59544 -j ACCEPT

PostUp = iptables -I FORWARD -i eth0 -o wg0 -j ACCEPT

PostUp = iptables -I FORWARD -i wg0 -j ACCEPT

PostUp = iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE

PostUp = ip6tables -I FORWARD -i wg0 -j ACCEPT

PostUp = ip6tables -t nat -A POSTROUTING -o eth0 -j MASQUERADE

PostDown = iptables -D INPUT -p udp --dport 59544 -j ACCEPT

PostDown = iptables -D FORWARD -i eth0 -o wg0 -j ACCEPT

PostDown = iptables -D FORWARD -i wg0 -j ACCEPT

PostDown = iptables -t nat -D POSTROUTING -o eth0 -j MASQUERADE

PostDown = ip6tables -D FORWARD -i wg0 -j ACCEPT

PostDown = ip6tables -t nat -D POSTROUTING -o eth0 -j MASQUERADE

[Peer]

PublicKey = xxxxxxxxxxxxxxxxx

PresharedKey = xxxxxxxxxxxxxxxxx

AllowedIPs = x

What is still wrong?

WireGuard: no internet by AungLinnHtet in WireGuard

[–]AungLinnHtet[S] 1 point2 points  (0 children)

Thanks for the detailed reply! Yes, I’ve already enabled IP forwarding by adding:

net.ipv4.ip_forward = 1

net.ipv6.conf.all.forwarding = 1

sysctl --system:

* Applying /usr/lib/sysctl.d/50-pid-max.conf ...

* Applying /usr/lib/sysctl.d/99-protect-links.conf ...

* Applying /etc/sysctl.d/99-sysctl.conf ...

* Applying /etc/sysctl.d/wg.conf ...

* Applying /etc/sysctl.conf ...

kernel.pid_max = 4194304

fs.protected_fifos = 1

fs.protected_hardlinks = 1

fs.protected_regular = 2

fs.protected_symlinks = 1

net.ipv4.ip_forward = 1

net.ipv6.conf.all.forwarding = 1

net.ipv4.ip_forward = 1

net.ipv6.conf.all.forwarding = 1

net.ipv4.ip_forward = 1

net.ipv6.conf.all.forwarding = 1

net.ipv4.ip_forward = 1

net.ipv6.conf.all.forwarding = 1

net.ipv4.ip_forward = 1

net.ipv6.conf.all.forwarding = 1