<inputtype="checkbox"name="redirect_ports.<%=servername%>"class="cbi-input-checkbox"value="1"<%ifluci.model.uci.cursor():get("openmptcprouter",servername,"redirect_ports")=="1"then%>checked<% end %>>
<inputtype="checkbox"name="nofwredirect.<%=servername%>"class="cbi-input-checkbox"value="1"<%ifluci.model.uci.cursor():get("openmptcprouter",servername,"nofwredirect")=="1"then%>checked<% end %>>
<inputtype="checkbox"name="obfs"class="cbi-input-checkbox"value="1"<%ifluci.model.uci.cursor():get("shadowsocks-libev","sss0","obfs")=="1"then%>checked<% end %>>
<optionvalue="v2ray"<%ifluci.model.uci.cursor():get("shadowsocks-libev","sss0","obfs_plugin")=="v2ray"then%>selected="selected"<% end %>>v2ray</option>
<optionvalue="obfs"<%ifluci.model.uci.cursor():get("shadowsocks-libev","sss0","obfs_plugin")=="obfs"then%>selected="selected"<% end %>>simple-obfs</option>
<optionvalue="http"<%ifluci.model.uci.cursor():get("shadowsocks-libev","tracker_sss0","obfs_type")=="http"then%>selected="selected"<% end %>>http</option>
<optionvalue="tls"<%ifluci.model.uci.cursor():get("shadowsocks-libev","tracker_sss0","obfs_type")=="tls"then%>selected="selected"<% end %>>tls</option>
<%:The length of time an orphaned (no longer referenced by any application) connection will remain in the FIN_WAIT_2 state before it is aborted at the local end.%>
<%:This value influences the time, after which TCP decides, that something is wrong due to unacknowledged RTO retransmissions, and reports this suspicion to the network layer.%>
</div>
</div>
</div>
<divclass="cbi-value">
<labelclass="cbi-value-title"><%:IPv4 TCP SYN retries2%></label>
<inputtype="checkbox"name="enableipv6"class="cbi-input-checkbox"value="0"<%ifluci.model.uci.cursor():get("openmptcprouter","settings","disable_ipv6")=="0"then%>checked<% end %>>
<inputtype="checkbox"name="enable6in4"class="cbi-input-checkbox"value="0"<%ifluci.model.uci.cursor():get("openmptcprouter","settings","disable_6in4")=="0"then%>checked<% end %>>
<inputtype="checkbox"name="externalcheck"class="cbi-input-checkbox"value="0"<%ifluci.model.uci.cursor():get("openmptcprouter","settings","external_check")=="0"then%>checked<% end %>>
<inputtype="checkbox"name="disablefastopen"class="cbi-input-checkbox"value="1"<%ifluci.model.uci.cursor():get("openmptcprouter","settings","disable_fastopen")=="1"then%>checked<% end %>>
<inputtype="checkbox"name="enablenodelay"class="cbi-input-checkbox"value="1"<%ifluci.model.uci.cursor():get("openmptcprouter","settings","enable_nodelay")=="1"then%>checked<% end %>>
<inputtype="checkbox"name="sipalg"class="cbi-input-checkbox"value="1"<%ifluci.model.uci.cursor():get("openmptcprouter","settings","sipalg")=="1"then%>checked<% end %>>
<inputtype="checkbox"name="savevnstat"class="cbi-input-checkbox"value="1"<%ifluci.util.trim(luci.sys.exec("uci-qgetopenmptcprouter.settings.vnstat_backup"))=="1"then%>checked<% end %>>
<inputtype="checkbox"name="disablegwping"class="cbi-input-checkbox"value="1"<%ifluci.model.uci.cursor():get("openmptcprouter","settings","disablegwping")=="1"then%>checked<% end %>>
<labelclass="cbi-value-title"><%:Disable server http test%></label>
<divclass="cbi-value-field">
<inputtype="checkbox"name="disableserverhttptest"class="cbi-input-checkbox"value="1"<%ifluci.model.uci.cursor():get("openmptcprouter","settings","disableserverhttptest")=="1"then%>checked<% end %>>
<labelclass="cbi-value-title"><%:Disable interfaces auto rename%></label>
<divclass="cbi-value-field">
<inputtype="checkbox"name="disableintfrename"class="cbi-input-checkbox"value="1"<%ifluci.model.uci.cursor():get("openmptcprouter","settings","disableintfrename")=="1"then%>checked<% end %>>
<inputtype="checkbox"name="shadowsocksudp"class="cbi-input-checkbox"value="1"<%ifluci.model.uci.cursor():get("openmptcprouter","settings","shadowsocksudp")=="1"then%>checked<% end %>>
<inputtype="checkbox"name="v2rayudp"class="cbi-input-checkbox"value="1"<%ifluci.model.uci.cursor():get("v2ray","main_transparent_proxy","redirect_udp")=="1"then%>checked<% end %>>
<inputtype="checkbox"name="disabledefaultgw"class="cbi-input-checkbox"value="0"<%ifluci.model.uci.cursor():get("openmptcprouter","settings","defaultgw")=="0"then%>checked<% end %>>
<br/>
<divclass="cbi-value-description">
<%:Disable default gateway, no internet if VPS are down%>
<inputtype="checkbox"name="disableserverping"class="cbi-input-checkbox"value="1"<%ifluci.model.uci.cursor():get("openmptcprouter","settings","disableserverping")=="1"then%>checked<% end %>>
<labelclass="cbi-value-title"><%:Restrict proxy to LAN zone%></label>
<divclass="cbi-value-field">
<inputtype="checkbox"name="restricttolan"class="cbi-input-checkbox"value="1"<%ifluci.model.uci.cursor():get("openmptcprouter","settings","restrict_to_lan")=="1"then%>checked<% end %>>
<br/>
<divclass="cbi-value-description">
<%:Authorize access to proxy only from LAN firewall zone%>
<inputtype="checkbox"name="disableloopdetection"class="cbi-input-checkbox"value="1"<%ifluci.model.uci.cursor():get("openmptcprouter","settings","disableloopdetection")=="1"then%>checked<% end %>>
<inputtype="checkbox"name="disabletracebox"class="cbi-input-checkbox"value="0"<%ifluci.model.uci.cursor():get("openmptcprouter","settings","tracebox")=="0"then%>checked<% end %>>
<inputtype="checkbox"name="ndpi"class="cbi-input-checkbox"value="0"<%ifluci.model.uci.cursor():get("openmptcprouter","settings","ndpi")=="0"then%>checked<% end %>>
<br/>
<divclass="cbi-value-description">
<%:Disable nDPI, used for protocols in OMR-ByPass%>
<inputtype="checkbox"name="disablemodemmanager"class="cbi-input-checkbox"value="0"<%ifluci.model.uci.cursor():get("openmptcprouter","settings","modemmanager")=="0"then%>checked<% end %>>
<inputtype="checkbox"name="debug"class="cbi-input-checkbox"value="1"<%ifluci.model.uci.cursor():get("openmptcprouter","settings","debug")=="1"then%>checked<% end %>>
<optionvalue="change"<%ifluci.model.uci.cursor():get("openmptcprouter","settings","master")=="change"then%>selected="selected"<% end %>><%:On wizard change%></option>
<optionvalue="dynamic"<%ifluci.model.uci.cursor():get("openmptcprouter","settings","master")=="dynamic"then%>selected="selected"<% end %>><%:Dynamic change%></option>
<optionvalue="static"<%ifluci.model.uci.cursor():get("openmptcprouter","settings","master")=="static"then%>selected="selected"<% end %>><%:No change%></option>
<optionvalue="balancing"<%ifluci.model.uci.cursor():get("openmptcprouter","settings","master")=="balancing"then%>selected="selected"<% end %>><%:Balancing%></option>
if nixio.fs.access("/lib/modules/" .. nixio.uname().release .. "/shortcut-fe.ko") then
%>
<hr/>
<fieldsetclass="cbi-section"id="fe">
<legend><%:Qualcomm Shortcut FE driver%></legend>
<divclass="cbi-section-descr"></div>
<divclass="cbi-value">
<labelclass="cbi-value-title"><%:Enable Fast Patch offloading for connections%></label>
<divclass="cbi-value-field">
<inputtype="checkbox"name="sfe_enabled"class="cbi-input-checkbox"value="1"<%ifluci.model.uci.cursor():get("openmptcprouter","settings","sfe_enabled")=="1"then%>checked<% end %>>
<inputtype="checkbox"name="sfe_bridge"class="cbi-input-checkbox"value="1"<%ifluci.model.uci.cursor():get("openmptcprouter","settings","sfe_bridge")=="1"then%>checked<% end %>>