From 88dc3b4156edac295e399c77f5a7f88bdd5e3cae Mon Sep 17 00:00:00 2001 From: Vladislav Grishenko Date: Fri, 1 Jun 2018 04:07:45 +0500 Subject: sstp: implement configurable http error response incl. redirect --- accel-pppd/accel-ppp.conf.5 | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'accel-pppd/accel-ppp.conf.5') diff --git a/accel-pppd/accel-ppp.conf.5 b/accel-pppd/accel-ppp.conf.5 index a06e7817..4c1bee76 100644 --- a/accel-pppd/accel-ppp.conf.5 +++ b/accel-pppd/accel-ppp.conf.5 @@ -717,6 +717,23 @@ certificate or used directly for non-ssl mode. .BI "host-name=" string If this option is given, only sstp connection to specified host and with the same TLS SNI will be allowed. .TP +.BI "http-error=" deny|allow|http[s]://host.tld[/path] +Specify http layer error behavior for non-sstp requests. +.br +.B deny +- reset connection without any error response. +.br +.B allow +- respond with http-specific status codes. +.br +.B http[s]://host.tld[/path] +- respond with http redirect to the specified location. +If +.B /path +is not specified, requested uri will be appended automatically +.br +Default value is allow. +.TP .BI "ifname=" ifname If this option is given ppp interface will be renamed using .B ifname -- cgit v1.2.3