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