-
-
Notifications
You must be signed in to change notification settings - Fork 15.3k
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
Strongswan #93713
Strongswan #93713
Conversation
I marked this as stale due to inactivity. → More info |
@@ -50,7 +51,7 @@ stdenv.mkDerivation rec { | |||
# glibc-2.26 reorganized internal includes | |||
sed '1i#include <stdint.h>' -i src/libstrongswan/utils/utils/memory.h | |||
|
|||
substituteInPlace src/libcharon/plugins/resolve/resolve_handler.c --replace "/sbin/resolvconf" "${openresolv}/sbin/resolvconf" | |||
substituteInPlace src/libcharon/plugins/resolve/resolve_handler.c --replace "/sbin/resolvconf" "/run/current-system/sw/bin/resolvconf" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Having a NixOS specific path is probably a bad idea here. It needs to be a path to a file, because strongswan will stat
it before execing it, so just resolvconf
doesn't work.
It might be better to make it a shell script that execs resolvconf
from PATH?
remove two now-included patches, add new nixos module parameter ca_id
@@ -17,15 +17,16 @@ with lib; | |||
|
|||
stdenv.mkDerivation rec { | |||
pname = "strongswan"; | |||
version = "5.8.1"; # Make sure to also update <nixpkgs/nixos/modules/services/networking/strongswan-swanctl/swanctl-params.nix> when upgrading! | |||
version = "master"; # Make sure to also update <nixpkgs/nixos/modules/services/networking/strongswan-swanctl/swanctl-params.nix> when upgrading! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please use the unstable-XXXX-XX-XX format.
Sorry, I forgot I had an open PR on this branch. I'm going to close this and try to get something in upstream which will allow the resolvconf path to be specified at runtime. |
Motivation for this change
A few fixes for strongswan. In order for it to set a DNS server properly with
systemd-resolved
, it needs to use the systemresolvconf
.I also needed to be able to set extra config in strongswan.conf:
to deal with https://unix.stackexchange.com/questions/511507/fedora-strongswan-resolvconf-interface-cant-be-the-loopback-interface
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)