m 1 vbob: document forticlientsslvpn mess
This commit is contained in:
parent
a6a0cddeaa
commit
835ddb0de0
|
@ -5,9 +5,10 @@ stdenv.mkDerivation rec {
|
||||||
# forticlient will be copied into /tmp before execution. this is necessary as
|
# forticlient will be copied into /tmp before execution. this is necessary as
|
||||||
# the software demands $base to be writeable
|
# the software demands $base to be writeable
|
||||||
|
|
||||||
|
# TODO: chroot and create the following files instead of copying files manually
|
||||||
# mkdir /etc/ppp ; touch /etc/ppp/options
|
# mkdir /etc/ppp ; touch /etc/ppp/options
|
||||||
## i still have not found which tool uses tail ... i tried redirecting it in forticlientsslvpn and subproc
|
|
||||||
# ln -s /run/current-system/sw/bin/tail /usr/bin/tail
|
# ln -s /run/current-system/sw/bin/tail /usr/bin/tail
|
||||||
|
# ln -s /run/current-system/sw/bin/pppd /usr/sbin/pppd
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
# archive.org mirror:
|
# archive.org mirror:
|
||||||
|
@ -62,7 +63,7 @@ stdenv.mkDerivation rec {
|
||||||
cp -r 64bit/. "$out/opt/fortinet"
|
cp -r 64bit/. "$out/opt/fortinet"
|
||||||
wrapProgram $out/opt/fortinet/forticlientsslvpn \
|
wrapProgram $out/opt/fortinet/forticlientsslvpn \
|
||||||
--set LD_PRELOAD "${libredirect}/lib/libredirect.so" \
|
--set LD_PRELOAD "${libredirect}/lib/libredirect.so" \
|
||||||
--set NIX_REDIRECTS /usr/sbin/ip=${iproute}/bin/ip:/usr/sbin/ppp=${ppp}/bin/ppp
|
--set NIX_REDIRECTS /usr/bin/tail=${coreutils}/bin/tail:/usr/sbin/ip=${iproute}/bin/ip:/usr/sbin/pppd=${ppp}/bin/pppd
|
||||||
|
|
||||||
mkdir -p "$out/bin/"
|
mkdir -p "$out/bin/"
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
(toString <nixpkgs/nixos/modules/virtualisation/virtualbox-image.nix>)
|
(toString <nixpkgs/nixos/modules/virtualisation/virtualbox-image.nix>)
|
||||||
(toString <nixpkgs/nixos/modules/virtualisation/virtualbox-guest.nix>)
|
(toString <nixpkgs/nixos/modules/virtualisation/virtualbox-guest.nix>)
|
||||||
../2configs/main-laptop.nix #< base-gui
|
../2configs/main-laptop.nix #< base-gui
|
||||||
# (toString <secrets>)/extra-hosts.nix
|
<secrets/extra-hosts.nix>
|
||||||
|
|
||||||
# environment
|
# environment
|
||||||
|
|
||||||
|
@ -28,8 +28,15 @@
|
||||||
openssh.authorizedKeys.keys = [ config.krebs.users.makefu-vbob.pubkey ];
|
openssh.authorizedKeys.keys = [ config.krebs.users.makefu-vbob.pubkey ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
environment.shellAliases = {
|
||||||
|
forti = "cat ~/vpn/pw.txt | xclip; sudo forticlientsslvpn";
|
||||||
|
};
|
||||||
|
# TODO: for forticleintsslpn
|
||||||
|
# ln -s /r/current-system/sw/bin/pppd /usr/sbin/pppd
|
||||||
|
# ln -s /r/current-system/sw/bin/tail /usr/bin/tail
|
||||||
environment.systemPackages = with pkgs;[
|
environment.systemPackages = with pkgs;[
|
||||||
fortclientsslvpn
|
fortclientsslvpn ppp xclip
|
||||||
get
|
get
|
||||||
logstash
|
logstash
|
||||||
docker
|
docker
|
||||||
|
|
Loading…
Reference in a new issue