mirror of
https://github.com/gtxaspec/wz_mini_hacks.git
synced 2024-11-25 14:57:19 +00:00
netfilter on t20 uses modules now
This commit is contained in:
parent
999210e385
commit
de484789ae
@ -278,16 +278,13 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "$ENABLE_IPTABLES" == "true" ]]; then
|
if [[ "$ENABLE_IPTABLES" == "true" ]]; then
|
||||||
if [ -f /opt/wz_mini/tmp/.T20 ]; then
|
|
||||||
echo "T20 has iptables built in"
|
insmod $KMOD_PATH/kernel/net/netfilter/x_tables.ko
|
||||||
else
|
insmod $KMOD_PATH/kernel/net/ipv4/netfilter/ip_tables.ko
|
||||||
insmod /lib/modules/3.10.14__isvp_swan_1.0__/kernel/net/netfilter/x_tables.ko
|
insmod $KMOD_PATH/kernel/net/ipv4/netfilter/ipt_REJECT.ko
|
||||||
insmod /lib/modules/3.10.14__isvp_swan_1.0__/kernel/net/ipv4/netfilter/ip_tables.ko
|
insmod $KMOD_PATH/kernel/net/ipv4/netfilter/iptable_filter.ko
|
||||||
insmod /lib/modules/3.10.14__isvp_swan_1.0__/kernel/net/ipv4/netfilter/ipt_REJECT.ko
|
insmod $KMOD_PATH/kernel/net/ipv4/netfilter/iptable_mangle.ko
|
||||||
insmod /lib/modules/3.10.14__isvp_swan_1.0__/kernel/net/ipv4/netfilter/iptable_filter.ko
|
echo "iptables ipv4 enabled"
|
||||||
insmod /lib/modules/3.10.14__isvp_swan_1.0__/kernel/net/ipv4/netfilter/iptable_mangle.ko
|
|
||||||
echo "iptables ipv4 enabled"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [[ "$ENABLE_IPV6" == "true" ]]; then
|
if [[ "$ENABLE_IPV6" == "true" ]]; then
|
||||||
insmod $KMOD_PATH/kernel/net/ipv6/netfilter/ip6_tables.ko
|
insmod $KMOD_PATH/kernel/net/ipv6/netfilter/ip6_tables.ko
|
||||||
|
Loading…
Reference in New Issue
Block a user