On Mar 16 23:36:01, [email protected] wrote:
> Hi,
>
> When I connect my phone with a USB cable, turn on USB Tethering on it, then
> on OpenBSD do:
>
> $ doas ifconfig urndis0 up
> $ doas dhcpleasectl urndis0
> .
> urndis0 [Bound]
> inet 192.168.18.123 netmask 255.255.255.0
> default gateway 192.168.18.208
> nameservers 192.168.18.208
> lease 60 minutes
> dhcp server 192.168.18.208
>
> I can ping domains, but wget doesn't work (hangs at least for a few minutes)
> and after using wget pinging stops working too.
>
> $ wget openbsd.org
> Prepended http:// to openbsd.org
> --2026-03-16 22:40:32-- http://openbsd.org/
> Resolving openbsd.org (openbsd.org)... 199.185.178.80, 2620:3d:c000:178::80
This alone means the connection works:
your DNS request went out and got a response.
Now what is your pf.conf?
What does it say about em0, iwn0 and urndis0?
Wouldn't it be easier for you to run a mobile hotspot on your phone
and simply connect to that wifi with your iwn?
Jan
> Connecting to openbsd.org (openbsd.org)|199.185.178.80|:80... connected.
> HTTP request sent, awaiting response... 301 Moved Permanently
> Location: https://www.openbsd.org/ [following]
> --2026-03-16 22:40:33-- https://www.openbsd.org/
> Resolving www.openbsd.org (www.openbsd.org)... 199.185.178.80,
> 2620:3d:c000:178::80
> Connecting to www.openbsd.org (www.openbsd.org)|199.185.178.80|:443...
> connected.
> ^C
>
> $ ping openbsd.org
> PING openbsd.org (199.185.178.80): 56 data bytes
> 64 bytes from 199.185.178.80: icmp_seq=0 ttl=237 time=849.196 ms
> 64 bytes from 199.185.178.80: icmp_seq=1 ttl=237 time=565.193 ms