xlat: some fixes suggested by neoraider
This commit is contained in:
parent
5569a6d57a
commit
b6616b681d
@ -5,8 +5,6 @@ PKG_VERSION:=1
|
|||||||
|
|
||||||
include ../gluon.mk
|
include ../gluon.mk
|
||||||
|
|
||||||
PKG_CONFIG_DEPENDS += $(GLUON_I18N_CONFIG)
|
|
||||||
|
|
||||||
define Package/gluon-464xlat-clat
|
define Package/gluon-464xlat-clat
|
||||||
TITLE:=Support translating IPv4 addresses to IPv6 using 464xlat
|
TITLE:=Support translating IPv4 addresses to IPv6 using 464xlat
|
||||||
DEPENDS:=+gluon-core +kmod-nat46
|
DEPENDS:=+gluon-core +kmod-nat46
|
||||||
|
@ -1,3 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
uci set ddhcpd.settings.enabled="0"
|
|
@ -7,7 +7,7 @@ uci:section('firewall', 'rule', 'local_node_dhcp', {
|
|||||||
name = 'allow_dhcp_local_client',
|
name = 'allow_dhcp_local_client',
|
||||||
dest_port = '67',
|
dest_port = '67',
|
||||||
proto = 'udp',
|
proto = 'udp',
|
||||||
target = 'ACCEPT'
|
target = 'ACCEPT',
|
||||||
})
|
})
|
||||||
|
|
||||||
uci:section('firewall', 'rule', 'ddhcpd_mmfd', {
|
uci:section('firewall', 'rule', 'ddhcpd_mmfd', {
|
||||||
@ -16,7 +16,7 @@ uci:section('firewall', 'rule', 'ddhcpd_mmfd', {
|
|||||||
src_ip = 'fe80::/64',
|
src_ip = 'fe80::/64',
|
||||||
name = 'allow_ddhcp_to_reserve_blocks',
|
name = 'allow_ddhcp_to_reserve_blocks',
|
||||||
proto = 'udp',
|
proto = 'udp',
|
||||||
target = 'ACCEPT'
|
target = 'ACCEPT',
|
||||||
})
|
})
|
||||||
|
|
||||||
uci:save('firewall')
|
uci:save('firewall')
|
||||||
|
@ -4,6 +4,7 @@ local site = require 'gluon.site'
|
|||||||
|
|
||||||
local uci = require('simple-uci').cursor()
|
local uci = require('simple-uci').cursor()
|
||||||
|
|
||||||
|
uci:set('ddhcpd', 'settings', 'enabled', false)
|
||||||
uci:set('ddhcpd', 'settings', 'block_network', site.prefix4())
|
uci:set('ddhcpd', 'settings', 'block_network', site.prefix4())
|
||||||
|
|
||||||
uci:save('ddhcpd')
|
uci:save('ddhcpd')
|
||||||
|
Loading…
Reference in New Issue
Block a user