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

network changes listening task sending SIGHUP to inetd to reread conf… #20

Closed
wants to merge 1 commit into from

Conversation

mk01
Copy link
Member

@mk01 mk01 commented Apr 9, 2019

…iguration.

this helps with / fixes issues around services availability on ipv6 defined via inetd. the ipv6 takes usually longer to initialise than ipv4. so as inetd starts triggered by net config change, when it binds interfaces, ipv6 can still be in the process of bringing up. inetd then doesn't bind ipv6 sockets and services otherwise defined to be available on ipv6 are not available.

(this task receives all changes from net devices - so once ipv6 up, it tells inetd to recheck config. inetd in the process also rebinds interfaces))

testing inetd.conf:

ssh  stream  tcp4  nowait  root   /usr/sbin/tcpd /usr/sbin/sshd -i

ssh  stream  tcp6  nowait  root   /usr/sbin/tcpd /usr/sbin/sshd -i -6

ssh on ipv6 after boot finally works.

…iguration.

this helps with / fixes around services availability on ipv6 defined via inetd. the ipv6 takes usually longer to initialise than ipv4. so as inetd starts triggered by net config change, when it binds interfaces, ipv6 can still be in the process of bringing up. inetd then doesn't bind ipv6 sockets and services otherwise defined to be available on ipv6 are not available. 

(this task receives all changes from net devices - so once ipv6 up, it tells inetd to recheck config. inetd in the process also rebinds interfaces))

testing inetd.conf:
```
ssh  stream  tcp4  nowait  root   /usr/sbin/tcpd /usr/sbin/sshd -i

ssh  stream  tcp6  nowait  root   /usr/sbin/tcpd /usr/sbin/sshd -i -6
```

ssh on ipv6 after boot finally works.
@mk01 mk01 requested a review from mkreisl April 9, 2019 16:20
@@ -0,0 +1,5 @@
start on net-device-up
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wouldn't it not better to start if service openbsd-inetd is already running?

start on net-device-up and started openbsd-inetd

Copy link
Contributor

@mkreisl mkreisl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A shorter name of this service might be useful. What do you think?

openbsd-inetd-reconf.conf should be sufficient, does not break format in /var/log/upstart/upstart-ev.log

mkreisl added a commit that referenced this pull request Jun 17, 2019
@mkreisl mkreisl closed this Jun 17, 2019
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

Successfully merging this pull request may close these issues.

2 participants