mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 15:38:40 +01:00
sslh: Add support for external config file
This allows users to use an external config file if required (for example matching packets based on SNI hostname or REGEX patterns). Signed-off-by: Jonathan McCrohan <jmccrohan@gmail.com> Signed-off-by: Mircea Horea IONICĂ <mionica@gmail.com>
This commit is contained in:
committed by
Jonathan McCrohan
parent
16ac0e8205
commit
727cb7e6e7
@@ -0,0 +1,32 @@
|
||||
diff --git a/basic.cfg b/basic.cfg
|
||||
index 54a799c..d938767 100644
|
||||
--- a/basic.cfg
|
||||
+++ b/basic.cfg
|
||||
@@ -1,3 +1,7 @@
|
||||
+# **** Attention OpenWRT/LEDE Users ****
|
||||
+# sslh command line arguments override arguments defined in this
|
||||
+# configuration file (UCI uses command line arguments)
|
||||
+
|
||||
# This is a basic configuration file that should provide
|
||||
# sensible values for "standard" setup.
|
||||
|
||||
@@ -14,15 +18,16 @@ pidfile: "/var/run/sslh.pid";
|
||||
# Change hostname with your external address name.
|
||||
listen:
|
||||
(
|
||||
- { host: "thelonious"; port: "443"; }
|
||||
+ { host: "0.0.0.0"; port: "443"; },
|
||||
+ { host: "[::]"; port: "443"; }
|
||||
);
|
||||
|
||||
protocols:
|
||||
(
|
||||
{ name: "ssh"; service: "ssh"; host: "localhost"; port: "22"; },
|
||||
{ name: "openvpn"; host: "localhost"; port: "1194"; },
|
||||
- { name: "xmpp"; host: "localhost"; port: "5222"; },
|
||||
- { name: "http"; host: "localhost"; port: "80"; },
|
||||
+# { name: "xmpp"; host: "localhost"; port: "5222"; },
|
||||
+# { name: "http"; host: "localhost"; port: "80"; },
|
||||
{ name: "ssl"; host: "localhost"; port: "443"; log_level: 0; },
|
||||
{ name: "anyprot"; host: "localhost"; port: "443"; }
|
||||
);
|
||||
Reference in New Issue
Block a user