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

Whonix 12 rinetd starting before qubes-whonix-postinit replace-ips #1398

Closed
qubesuser opened this Issue Nov 10, 2015 · 2 comments

Comments

Projects
None yet
3 participants
@qubesuser

In Whonix 12 the systemd rinetd service is starting after qubes-whonix-postinit, which means it loads the configuration before replace-ips has replaced the 10.152.152.10 IP, which results in local ports being redirected there and thus Tor Browser and so on not working.

In the Whonix 11 template it seemed fine, although it might be by chance.

Looks like replace-ips should invoke "systemctl reload rinetd" and some systemd dependency constraints should be added.

There might be other services in addition to rinetd with the same issues.

adrelanos added a commit to adrelanos/qubes-whonix that referenced this issue Nov 10, 2015

@adrelanos

This comment has been minimized.

Show comment
Hide comment
@adrelanos

adrelanos Nov 10, 2015

Member

Confirmed. I think it's happening by chance. A race condition. And a release critical bug.

See above referenced commit "added more comments to ease fixing".

These are all init scripts that matter...

Please share your thoughts on any systemd unit file relation ships, After= and Before=.

qubes-whonix-postinit needs to run before rinetd, but also before Tor. And some others. Which ones should become clear by looking at the contents of the FILES variable in replace-ips script.

https://github.com/nrgaway/qubes-whonix/blob/master/usr/lib/qubes-whonix/replace-ips#L55-L79

If you have other suggestions, please have it going.


I also plan to refactor/simplify all the above systemd unit files and init stuff for Whonix 13.

Ideally we had static IPs. That would abolish the need for replace-ip's which has been discussed here:
#1143

Member

adrelanos commented Nov 10, 2015

Confirmed. I think it's happening by chance. A race condition. And a release critical bug.

See above referenced commit "added more comments to ease fixing".

These are all init scripts that matter...

Please share your thoughts on any systemd unit file relation ships, After= and Before=.

qubes-whonix-postinit needs to run before rinetd, but also before Tor. And some others. Which ones should become clear by looking at the contents of the FILES variable in replace-ips script.

https://github.com/nrgaway/qubes-whonix/blob/master/usr/lib/qubes-whonix/replace-ips#L55-L79

If you have other suggestions, please have it going.


I also plan to refactor/simplify all the above systemd unit files and init stuff for Whonix 13.

Ideally we had static IPs. That would abolish the need for replace-ip's which has been discussed here:
#1143

adrelanos added a commit to adrelanos/qubes-whonix that referenced this issue Nov 11, 2015

@adrelanos

This comment has been minimized.

Show comment
Hide comment
@adrelanos

adrelanos Nov 13, 2015

Member

The fix is in the Whonix testers repository.

Closeable.

Member

adrelanos commented Nov 13, 2015

The fix is in the Whonix testers repository.

Closeable.

@marmarek marmarek closed this Nov 13, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment