Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can not connect to sites without VPN #1209

Closed
nitras opened this issue Dec 19, 2024 · 6 comments
Closed

Can not connect to sites without VPN #1209

nitras opened this issue Dec 19, 2024 · 6 comments
Labels

Comments

@nitras
Copy link

nitras commented Dec 19, 2024

Platform

macOS

Operating system version

Macos

System architecture

Intel (x86)

Herd Version

1.13.0

PHP Version

php 8.28

Bug description

Hello there.
For some reason none of my herd sites are working anymore. Unless i connect to the web via a vpn.
I tried to uninstall the VPN app, reboot, to no avail.
I tried to install the herd app again, reboot, to no avail.

Baffled how to fix this.

Thank you.

Steps to reproduce

Open herd website in browser

can not connect to mysite.test
Active vpn
can connect mysite.test

Relevant log output

No response

@issuelabeler issuelabeler bot added the macOS label Dec 19, 2024
@mpociot
Copy link
Member

mpociot commented Dec 19, 2024

That sounds very weird, indeed!

My assumption is that the VPN app is maybe controlling it's own DNS server/dnsmasq instance?

Could you see if (when Herd is not running) anything is running on the default dnsmasq port?

sudo lsof -i :53

When Herd is running, it should look something like this:

COMMAND     PID   USER   FD   TYPE             DEVICE SIZE/OFF NODE NAME
dnsmasq-a 32205 nobody    4u  IPv4 0x4f41f596906c7392      0t0  UDP localhost:domain
dnsmasq-a 32205 nobody    5u  IPv4 0xfefef0f46a1d7a87      0t0  TCP localhost:domain (LISTEN)

@nitras
Copy link
Author

nitras commented Dec 19, 2024

That sounds very weird, indeed!

My assumption is that the VPN app is maybe controlling it's own DNS server/dnsmasq instance?

Could you see if (when Herd is not running) anything is running on the default dnsmasq port?

sudo lsof -i :53

When Herd is running, it should look something like this:

COMMAND     PID   USER   FD   TYPE             DEVICE SIZE/OFF NODE NAME
dnsmasq-a 32205 nobody    4u  IPv4 0x4f41f596906c7392      0t0  UDP localhost:domain
dnsmasq-a 32205 nobody    5u  IPv4 0xfefef0f46a1d7a87      0t0  TCP localhost:domain (LISTEN)

Thanks for helping (i am not very at home at these things — i am more of a designer who love to toy around with building websites)

This is what i got when Herd is active.

COMMAND     PID   USER   FD   TYPE             DEVICE SIZE/OFF NODE NAME
dnsmasq-x 15119 nobody    4u  IPv4 0xe06011473d84e518      0t0  UDP localhost:domain
dnsmasq-x 15119 nobody    5u  IPv4 0x11e06b5e452d27a5      0t0  TCP localhost:domain (LISTEN)

Doing the sudo lsof -i :53 again when Herd is not running, it returns nothing.

@mpociot
Copy link
Member

mpociot commented Dec 19, 2024

Okay that sounds right to me.

Can you simply try and run

ping foo.test

In your terminal once Herd is running? Does that resolve to 127.0.0.1?

@nitras
Copy link
Author

nitras commented Dec 19, 2024

Okay that sounds right to me.

Can you simply try and run

ping foo.test

In your terminal once Herd is running? Does that resolve to 127.0.0.1?

Once Herd is running it states:

ping: cannot resolve foo.test: Unknown host

@nitras
Copy link
Author

nitras commented Dec 19, 2024

Thank you for your help so far!

I think I’ve got it working again. It turned out Docker was the issue.

I had installed Docker and tried stopping it, but that didn’t help.

The only difference from yesterday? No Docker was installed. So, I deleted Docker and rebooted.

Now I can connect to my .test domains perfectly.

Odd! A friend of mine, who’s really into Docker and networking, is visiting in a few days. I’ll share his thoughts here once he takes a look.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants
@mpociot @sschlein @nitras and others