Skip to content

Commit

Permalink
Move essential firewall rules from gluon-firewall to gluon-core and g…
Browse files Browse the repository at this point in the history
…luon-mesh-batman-adv

The now empty gluon-firewall is removed.
  • Loading branch information
neocturne committed Jul 14, 2014
1 parent 8cf8488 commit 76a26d1
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 49 deletions.
2 changes: 1 addition & 1 deletion gluon/gluon-core/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ define Package/gluon-core
SECTION:=gluon
CATEGORY:=Gluon
TITLE:=Base files of Gluon
DEPENDS:=+gluon-config +lua-platform-info +luci-lib-core +odhcp6c
DEPENDS:=+gluon-config +lua-platform-info +luci-lib-core +odhcp6c +firewall
endef

define Package/gluon-core/description
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,5 @@ c:section('firewall', 'rule', 'wan_ssh',
}
)


c:section('firewall', 'rule', 'client_dns',
{
name = 'client_dns',
src = 'client',
dest_port = '53',
target = 'REJECT',
}
)


c:save('firewall')
c:commit('firewall')
37 changes: 0 additions & 37 deletions gluon/gluon-firewall/Makefile

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ uci:section('network', 'interface', 'bat0',
uci:save('network')
uci:commit('network')


uci:delete('firewall', 'client')
uci:section('firewall', 'zone', 'client',
{
Expand All @@ -41,9 +42,20 @@ uci:section('firewall', 'zone', 'client',
forward = 'REJECT',
}
)

c:section('firewall', 'rule', 'client_dns',
{
name = 'client_dns',
src = 'client',
dest_port = '53',
target = 'REJECT',
}
)

uci:save('firewall')
uci:commit('firewall')


local dnsmasq = uci:get_first('dhcp', 'dnsmasq')
uci:set('dhcp', dnsmasq, 'boguspriv', 0)
uci:set('dhcp', dnsmasq, 'localise_queries', 0)
Expand Down

0 comments on commit 76a26d1

Please sign in to comment.