Emitter: DNS-lookup BURP server, use more retries
This commit is contained in:
parent
e43c6450d9
commit
f373ec2d15
|
@ -97,6 +97,7 @@
|
||||||
cat > $out/sbin/burp <<-EOF
|
cat > $out/sbin/burp <<-EOF
|
||||||
#!/${pkgs.bash}/bin/bash
|
#!/${pkgs.bash}/bin/bash
|
||||||
set -e
|
set -e
|
||||||
|
${pkgs.dig}/bin/nslookup rupert.gvfr.de
|
||||||
${pkgs.unixtools.ping}/bin/ping -c1 rupert.gvfr.de >/dev/null
|
${pkgs.unixtools.ping}/bin/ping -c1 rupert.gvfr.de >/dev/null
|
||||||
${pkgs.openssh}/bin/ssh -i /secrets/id_burp_remote -o IdentitiesOnly=yes -o ExitOnForwardFailure=yes -L 4971:localhost:4971 burp-remote@rupert.gvfr.de -f true
|
${pkgs.openssh}/bin/ssh -i /secrets/id_burp_remote -o IdentitiesOnly=yes -o ExitOnForwardFailure=yes -L 4971:localhost:4971 burp-remote@rupert.gvfr.de -f true
|
||||||
$out/sbin/burp-untunneled \$@
|
$out/sbin/burp-untunneled \$@
|
||||||
|
@ -120,7 +121,7 @@
|
||||||
services.statusEmail.enable = true;
|
services.statusEmail.enable = true;
|
||||||
systemd.services.burp-client = let
|
systemd.services.burp-client = let
|
||||||
retryDelay = 10 * 60;
|
retryDelay = 10 * 60;
|
||||||
maxRetries = 3;
|
maxRetries = 5;
|
||||||
in {
|
in {
|
||||||
unitConfig = {
|
unitConfig = {
|
||||||
OnFailure = "status-email@%n.service";
|
OnFailure = "status-email@%n.service";
|
||||||
|
|
Loading…
Reference in a new issue