From 2713fca32288855e6cf6684636f69aaa02ea483a Mon Sep 17 00:00:00 2001 From: stupidcomputer Date: Mon, 28 Oct 2024 23:15:31 -0500 Subject: [PATCH] add a socks proxy to netbox --- boxes/netbox/default.nix | 1 + boxes/netbox/socks.nix | 14 ++++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 boxes/netbox/socks.nix diff --git a/boxes/netbox/default.nix b/boxes/netbox/default.nix index e4e099c..bacff45 100644 --- a/boxes/netbox/default.nix +++ b/boxes/netbox/default.nix @@ -20,6 +20,7 @@ ./photoprism-bridge.nix ./grafana-bridge.nix ./prometheus.nix + ./socks.nix ]; nix = { diff --git a/boxes/netbox/socks.nix b/boxes/netbox/socks.nix new file mode 100644 index 0000000..1c39eca --- /dev/null +++ b/boxes/netbox/socks.nix @@ -0,0 +1,14 @@ +{ lib, config, pkgs, ... }: +{ + services._3proxy = { + enable = true; + services = [ + { + type = "socks"; + auth = "none"; + bindAddress = "10.100.0.1"; + bindPort = 3128; + } + ]; + }; +}