mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2025-12-10 07:44:50 +01:00
19 lines
497 B
Bash
19 lines
497 B
Bash
#!/bin/sh
|
|
|
|
. /lib/functions.sh
|
|
. /lib/hosts/hosts_acl.sh
|
|
|
|
iptables -w -F hosts_forward
|
|
ip6tables -w -F hosts_forward
|
|
|
|
iptables -w -t filter -N hosts_forward
|
|
ret=$?
|
|
[ $ret -eq 0 ] && iptables -w -t filter -I FORWARD -j hosts_forward
|
|
ip6tables -w -t filter -N hosts_forward
|
|
ret=$?
|
|
[ $ret -eq 0 ] && ip6tables -w -t filter -I FORWARD -j hosts_forward
|
|
|
|
# Load /etc/config/hosts UCI file
|
|
config_load hosts
|
|
config_foreach process_ac_schedule ac_schedule
|
|
|