mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-02-14 19:41:51 +00:00
Changes to luci-app-firewall
This commit is contained in:
parent
f700f2ef26
commit
679b730075
5 changed files with 19 additions and 2 deletions
|
@ -12,6 +12,6 @@ LUCI_DEPENDS:=+luci-base +uci-firewall
|
||||||
PKG_LICENSE:=Apache-2.0
|
PKG_LICENSE:=Apache-2.0
|
||||||
PKG_MAINTAINER:=Jo-Philipp Wich <jo@mein.io>
|
PKG_MAINTAINER:=Jo-Philipp Wich <jo@mein.io>
|
||||||
|
|
||||||
include ../../luci.mk
|
include $(TOPDIR)/feeds/luci/luci.mk
|
||||||
|
|
||||||
# call BuildPackage - OpenWrt buildroot signature
|
# call BuildPackage - OpenWrt buildroot signature
|
||||||
|
|
|
@ -344,6 +344,9 @@ return view.extend({
|
||||||
fwtool.addMarkOption(s, false);
|
fwtool.addMarkOption(s, false);
|
||||||
fwtool.addLimitOption(s);
|
fwtool.addLimitOption(s);
|
||||||
fwtool.addLimitBurstOption(s);
|
fwtool.addLimitBurstOption(s);
|
||||||
|
|
||||||
|
o = s.taboption('advanced', form.Flag, 'v2ray', _('Use V2Ray/XRay'),
|
||||||
|
_('Forward a port (not a range) from server using V2Ray/XRay proxy (if enabled) instead of VPN'));
|
||||||
|
|
||||||
if (!L.hasSystemFeature('firewall4')) {
|
if (!L.hasSystemFeature('firewall4')) {
|
||||||
o = s.taboption('advanced', form.Value, 'extra', _('Extra arguments'),
|
o = s.taboption('advanced', form.Value, 'extra', _('Extra arguments'),
|
||||||
|
|
|
@ -35,6 +35,9 @@ return view.extend({
|
||||||
s.sortable = true;
|
s.sortable = true;
|
||||||
s.cloneable = true;
|
s.cloneable = true;
|
||||||
s.nodescriptions = true;
|
s.nodescriptions = true;
|
||||||
|
s.filter = function(section_id) {
|
||||||
|
return (section_id.startsWith('bypass') == false && section_id.startsWith('omr_dst') == false && section_id.startsWith('omr_dscp') == false);
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
/* refer to: https://ipset.netfilter.org/ipset.man.html */
|
/* refer to: https://ipset.netfilter.org/ipset.man.html */
|
||||||
|
|
|
@ -184,7 +184,8 @@ return view.extend({
|
||||||
s.tab('timed', _('Time Restrictions'));
|
s.tab('timed', _('Time Restrictions'));
|
||||||
|
|
||||||
s.filter = function(section_id) {
|
s.filter = function(section_id) {
|
||||||
return (uci.get('firewall', section_id, 'target') != 'SNAT');
|
//return (uci.get('firewall', section_id, 'target') != 'SNAT');
|
||||||
|
return (uci.get('firewall', section_id, 'target') != 'SNAT' && section_id.startsWith('omr_dst') == false && section_id.startsWith('omr_dscp') == false);
|
||||||
};
|
};
|
||||||
|
|
||||||
s.sectiontitle = function(section_id) {
|
s.sectiontitle = function(section_id) {
|
||||||
|
|
|
@ -177,6 +177,16 @@ return view.extend({
|
||||||
return null;
|
return null;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/*
|
||||||
|
o = s.taboption('general', form.Flag, 'fullcone', _('Full Cone'));
|
||||||
|
o.editable = true;
|
||||||
|
o.depends('masq', '1');
|
||||||
|
|
||||||
|
o = s.taboption('general', form.Flag, 'fullcone6', _('Full Cone IPv6'));
|
||||||
|
o.editable = true;
|
||||||
|
o.depends('masq', '1');
|
||||||
|
*/
|
||||||
|
|
||||||
o = s.taboption('general', form.Flag, 'mtu_fix', _('MSS clamping'));
|
o = s.taboption('general', form.Flag, 'mtu_fix', _('MSS clamping'));
|
||||||
o.modalonly = true;
|
o.modalonly = true;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue