xlat: some fixes suggested by neoraider

This commit is contained in:
Andreas Ziegler 2020-03-14 16:36:31 +01:00
parent 5569a6d57a
commit b6616b681d
4 changed files with 3 additions and 7 deletions

View File

@ -5,8 +5,6 @@ PKG_VERSION:=1
include ../gluon.mk
PKG_CONFIG_DEPENDS += $(GLUON_I18N_CONFIG)
define Package/gluon-464xlat-clat
TITLE:=Support translating IPv4 addresses to IPv6 using 464xlat
DEPENDS:=+gluon-core +kmod-nat46

View File

@ -1,3 +0,0 @@
#!/bin/sh
uci set ddhcpd.settings.enabled="0"

View File

@ -7,7 +7,7 @@ uci:section('firewall', 'rule', 'local_node_dhcp', {
name = 'allow_dhcp_local_client',
dest_port = '67',
proto = 'udp',
target = 'ACCEPT'
target = 'ACCEPT',
})
uci:section('firewall', 'rule', 'ddhcpd_mmfd', {
@ -16,7 +16,7 @@ uci:section('firewall', 'rule', 'ddhcpd_mmfd', {
src_ip = 'fe80::/64',
name = 'allow_ddhcp_to_reserve_blocks',
proto = 'udp',
target = 'ACCEPT'
target = 'ACCEPT',
})
uci:save('firewall')

View File

@ -4,6 +4,7 @@ local site = require 'gluon.site'
local uci = require('simple-uci').cursor()
uci:set('ddhcpd', 'settings', 'enabled', false)
uci:set('ddhcpd', 'settings', 'block_network', site.prefix4())
uci:save('ddhcpd')