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

switchctl from hostname.switch0 fails #125

Closed
bentley opened this issue Apr 4, 2018 · 2 comments
Closed

switchctl from hostname.switch0 fails #125

bentley opened this issue Apr 4, 2018 · 2 comments

Comments

@bentley
Copy link

bentley commented Apr 4, 2018

From my router:

starting network
em0: no link .... got link
em0: bound to 192.168.0.8 from 192.168.0.1 (XX:XX:XX:XX:XX:XX)
switchctl: connect: /var/run/switchd.sock: Connection refused

I guess this is because switchd doesn’t start until later in the boot process:

starting network daemons: sshd switchd dhcpd smtpd sndiod.

Clients work correctly for me if I run switchctl from rc.local instead.

@horia
Copy link
Contributor

horia commented Apr 7, 2018

I agree, switchctl should not be in hostname.if

Do your clients work when connected by crontab?

@reboot      chmod 1777 /tmp; switchctl connect /dev/switch0

horia added a commit that referenced this issue Apr 9, 2018
@horia
Copy link
Contributor

horia commented Apr 10, 2018

Connecting to switch from rc.local or crontab should fix this issue.
Removed switchctl from hostname.switch0 for proper sh /etc/netstart switch0 reset.

Thank you.

horia added a commit that referenced this issue Apr 10, 2018
- Fix #125 Connect to switch0 at reboot, thank you @bentley
- Fix #82 TLS inspection (MITM) with relayd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants