diff --git a/luci-app-zapret/htdocs/luci-static/resources/view/zapret/settings.js b/luci-app-zapret/htdocs/luci-static/resources/view/zapret/settings.js index 1ff1a5a..282aba8 100644 --- a/luci-app-zapret/htdocs/luci-static/resources/view/zapret/settings.js +++ b/luci-app-zapret/htdocs/luci-static/resources/view/zapret/settings.js @@ -100,14 +100,26 @@ return view.extend({ o.rmempty = false; o.default = 0; + o = s.taboption(tabname, form.Value, 'HTTP_PORTS', _('HTTP_PORTS')); + o.rmempty = false; + o.datatype = 'string'; + o = s.taboption(tabname, form.Flag, 'MODE_HTTPS', _('MODE_HTTPS')); o.rmempty = false; o.default = 0; + o = s.taboption(tabname, form.Value, 'HTTPS_PORTS', _('HTTPS_PORTS')); + o.rmempty = false; + o.datatype = 'string'; + o = s.taboption(tabname, form.Flag, 'MODE_QUIC', _('MODE_QUIC')); o.rmempty = false; o.default = 0; + o = s.taboption(tabname, form.Value, 'QUIC_PORTS', _('QUIC_PORTS')); + o.rmempty = false; + o.datatype = 'string'; + o = s.taboption(tabname, form.Value, 'DESYNC_MARK', _('DESYNC_MARK')); //o.description = _("nfqws option for DPI desync attack"); o.rmempty = false; diff --git a/zapret/config b/zapret/config index 11af0a7..ca7770b 100644 --- a/zapret/config +++ b/zapret/config @@ -42,9 +42,9 @@ GZIP_LISTS=0 #LISTS_RELOAD="pfctl -f /etc/pf.conf" # override ports -#HTTP_PORTS=80-81,85 -#HTTPS_PORTS=443,500-501 -#QUIC_PORTS=443,444 +HTTP_PORTS=80 +HTTPS_PORTS=443 +QUIC_PORTS=443 # CHOOSE OPERATION MODE # MODE : nfqws,tpws,tpws-socks,filter,custom diff --git a/zapret/sync_config.sh b/zapret/sync_config.sh index f9f928d..7992767 100755 --- a/zapret/sync_config.sh +++ b/zapret/sync_config.sh @@ -52,16 +52,19 @@ sync_param NFQWS_OPT_DESYNC str sync_param NFQWS_OPT_DESYNC_SUFFIX str sync_param MODE_HTTP sync_param MODE_HTTP_KEEPALIVE +sync_param HTTP_PORTS sync_param NFQWS_OPT_DESYNC_HTTP str sync_param NFQWS_OPT_DESYNC_HTTP_SUFFIX str sync_param NFQWS_OPT_DESYNC_HTTP6 str sync_param NFQWS_OPT_DESYNC_HTTP6_SUFFIX str sync_param MODE_HTTPS +sync_param HTTPS_PORTS sync_param NFQWS_OPT_DESYNC_HTTPS str sync_param NFQWS_OPT_DESYNC_HTTPS_SUFFIX str sync_param NFQWS_OPT_DESYNC_HTTPS6 str sync_param NFQWS_OPT_DESYNC_HTTPS6_SUFFIX str sync_param MODE_QUIC +sync_param QUIC_PORTS sync_param NFQWS_OPT_DESYNC_QUIC str sync_param NFQWS_OPT_DESYNC_QUIC_SUFFIX str sync_param NFQWS_OPT_DESYNC_QUIC6 str diff --git a/zapret/zapret.config b/zapret/zapret.config index 69fdde8..64395a2 100644 --- a/zapret/zapret.config +++ b/zapret/zapret.config @@ -13,16 +13,19 @@ config main 'config' option NFQWS_OPT_DESYNC_SUFFIX '' option MODE_HTTP '1' option MODE_HTTP_KEEPALIVE '0' + option HTTP_PORTS '80' option NFQWS_OPT_DESYNC_HTTP '' option NFQWS_OPT_DESYNC_HTTP_SUFFIX '' option NFQWS_OPT_DESYNC_HTTP6 '' option NFQWS_OPT_DESYNC_HTTP6_SUFFIX '' option MODE_HTTPS '1' + option HTTPS_PORTS '443' option NFQWS_OPT_DESYNC_HTTPS '' option NFQWS_OPT_DESYNC_HTTPS_SUFFIX '' option NFQWS_OPT_DESYNC_HTTPS6 '' option NFQWS_OPT_DESYNC_HTTPS6_SUFFIX '' option MODE_QUIC '1' + option QUIC_PORTS '443' option NFQWS_OPT_DESYNC_QUIC '--dpi-desync=fake,split2 --dpi-desync-repeats=15 --dpi-desync-fake-quic=/opt/zapret/files/fake/quic_initial_www_google_com.bin --new --dpi-desync=fake --dpi-desync-repeats=15' option NFQWS_OPT_DESYNC_QUIC_SUFFIX '' option NFQWS_OPT_DESYNC_QUIC6 ''