diff options
| author | Simon Rettberg | 2013-06-18 17:41:06 +0200 |
|---|---|---|
| committer | Simon Rettberg | 2013-06-18 17:41:06 +0200 |
| commit | 0686831e2f60f0f6dd77130d4fd1a57b49277168 (patch) | |
| tree | dfa3b672a860191d45f1ae7c4020f0c53ac3e480 /remote/modules/redsocks/data/etc/systemd/system | |
| parent | [vmchooser] run-virt.sh: Set volume to 100% instead of 80% on bwPC 4 (diff) | |
| download | tm-scripts-0686831e2f60f0f6dd77130d4fd1a57b49277168.tar.gz tm-scripts-0686831e2f60f0f6dd77130d4fd1a57b49277168.tar.xz tm-scripts-0686831e2f60f0f6dd77130d4fd1a57b49277168.zip | |
[redsocks] NEW MODULE
Transparent proxy support module. Works with http-connect, socks, and some others
Diffstat (limited to 'remote/modules/redsocks/data/etc/systemd/system')
3 files changed, 19 insertions, 0 deletions
diff --git a/remote/modules/redsocks/data/etc/systemd/system/basic.target.wants/setup_proxy.service b/remote/modules/redsocks/data/etc/systemd/system/basic.target.wants/setup_proxy.service new file mode 120000 index 00000000..0c7dc84b --- /dev/null +++ b/remote/modules/redsocks/data/etc/systemd/system/basic.target.wants/setup_proxy.service @@ -0,0 +1 @@ +../setup_proxy.service
\ No newline at end of file diff --git a/remote/modules/redsocks/data/etc/systemd/system/redsocks.service b/remote/modules/redsocks/data/etc/systemd/system/redsocks.service new file mode 100644 index 00000000..6f207586 --- /dev/null +++ b/remote/modules/redsocks/data/etc/systemd/system/redsocks.service @@ -0,0 +1,9 @@ +[Unit] +Description=Transparent redirector of any TCP connection to proxy using your firewall + +[Service] +Type=forking +PIDFile=/run/redsocks.pid +ExecStart=/bin/redsocks -c /etc/redsocks.conf -p /run/redsocks.pid +ExecStopPost=/bin/rm /run/redsocks.pid +Restart=on-abort diff --git a/remote/modules/redsocks/data/etc/systemd/system/setup_proxy.service b/remote/modules/redsocks/data/etc/systemd/system/setup_proxy.service new file mode 100644 index 00000000..885e72dc --- /dev/null +++ b/remote/modules/redsocks/data/etc/systemd/system/setup_proxy.service @@ -0,0 +1,9 @@ +[Unit] +Description=Proxy setup detection +Before=sysinit.target shutdown.target +DefaultDependencies=no + +[Service] +Type=oneshot +ExecStart=/opt/openslx/bin/setup_proxy +RemainAfterExit=yes |
