-
polarian
Hm I can't seem to get wireguard working on my FreeBSD laptop
-
polarian
the config should work... same steps and it worked on my phone, wg-quick(8) seems to have put the route in correctly
-
polarian
but its not handshaking
-
polarian
I assume it *could* be pf being the issue... but I have two simple rules, block in, pass out
-
polarian
any ideas?
-
polarian
works just fine on my phone same network too... so I assume its a firewall isue
-
polarian
issue*
-
entrop
polarian: pass in from the other end?
-
kevans
polarian: have you tried tcpdump to gain some insight into the handshake?
-
xzdx
-
nimaje
polarian: can you ping your endpoint? and in the other direction too?
-
polarian
entrop: the other end is fine, the server side works just fine with my phone, its my laptop to my phone which is the issue
-
polarian
kevans: I did tcpdump, nothing on wg0 apart from some ntp packets
-
polarian
so I assume pf is dropping the packets, but if I disable pf it doesn't work either...
-
polarian
so could be that the route is unknown and the packets are being dropped, but 0.0.0.0/1 to wg0 is entered into the routing table correctly
-
polarian
so shouldn't do
-
polarian
nimaje: with the tunnel? no, without? yes
-
polarian
wg0 won't handshake
-
polarian
I have checked all the configs it *should* work, so I assume its a firewall issue, but block in/pass out on a laptop should be sufficient
-
nimaje
yeah, I meant outside the tunnel
-
nimaje
hm, pretty sure wg is udp based, not sure how keeping state works for udp in firewalls
-
polarian
nimaje: well same network and my phone can connect just fine... so I assume this is an issue with configuration on my laptop
-
polarian
not with wireguard, I have checked the config over and over again
-
sbr
skim reading but I setup incoming and outgoing wg the other day and kept getting confused about which key was supposed to go where
-
sbr
I found putting it in a simple template and then using `qrencode -t ansiutf8 < myTemplate` to generate a QR code made mobile app setup much easier
-
sbr
At least on iOS the wg app logs are close to pointless
-
sbr
-
polarian
sbr: thats how I did it for my phone :)
-
sbr
From another machine its the same template and should be even simpler
-
sbr
s/template/format
-
polarian
sbr: that link is obvious
-
sbr
yup, wg is general is pretty obvious I was just being dumb with the ios app and the QR codes helped. Everything else "just worked"
-
polarian
ugh...
-
polarian
I wonder if the inkernel driver for wireguard is buggy :/
-
polarian
I found it in the OpenBSD src tree
-
kevans
polarian: no, tcpdump the interface wg is negotiating over
-
kevans
wg itself won't see any traffic until the handshake is finished
-
» sbr_ put a new multi port nic in my router. Going to get a second fibre line to my home. Fun fun.
-
tuaris
What's the correct way to use `resolveconf`? The MAN page doesn't give any examples. I've been doing it like this: "sysrc -f /etc/resolvconf.conf search_domains="mydomain.tld" name_servers="10.1.1.10" && resolvconf -u" which I know is "wrong".
-
rtprio
tuaris: what interfaces are changing in your configuration
-
tuaris
in this case it's for any interface
-
tuaris
The "-d" is for deleting, but what does it delete. The "-d" flag is missing from the man page.
-
polarian
kevans: oh right yeah duh xD
-
polarian
sbr: why do you need multiple gigs to your home
-
kevans
polarian: yeah, I think that might be enlightening; but my guess if it doesn't work with your firewall disabled is that there's some other misconfiguration involved
-
polarian
hmm
-
nimaje
tuaris: why not updating /etc/resolv.conf directly? but if you want to use resolvconf, then probably something like printf "search %s\nnameserver %s\n" <domain> <nameserver> | resolvconf -x -a <interface> (I assume you want the exclusive there, as you override those settings via sysrc)
-
rwp
tuaris, Normally when an interface comes up: echo search_domains=example.com name_servers=8.8.8.8 | resolvconf -a $iface.inet
-
rwp
tuaris, Normally when an interface goes down: resolvconf -d $iface.inet