输入你放行的端口,一行一个
放行端口规则例如:
ip6tables -A FORWARD -p tcp --dport 端口号 -j ACCEPT
放行ddns域名例如:
ip6tables -A FORWARD -d 你的域名 -j ACCEPT
结尾加上一条:
ip6tables -P OUTPUT ACCEPT
#!/bin/sh
/etc/storage/crontabs_script.sh &
export PATH='/etc/storage/bin:/tmp/script:/etc/storage/script:/opt/usr/sbin:/opt/usr/bin:/opt/sbin:/opt/bin:/usr/local/sbin:/usr/sbin:/usr/bin:/sbin:/bin'
export LD_LIBRARY_PATH=/lib:/opt/lib
ip6tables -A FORWARD -p tcp --dport 5000 -j ACCEPT
ip6tables -A FORWARD -p tcp --dport 5001 -j ACCEPT
ip6tables -P OUTPUT ACCEPT
logger -t "【防火墙规则】" "脚本完成"
#!/bin/sh
/etc/storage/crontabs_script.sh &
export PATH='/etc/storage/bin:/tmp/script:/etc/storage/script:/opt/usr/sbin:/opt/usr/bin:/opt/sbin:/opt/bin:/usr/local/sbin:/usr/sbin:/usr/bin:/sbin:/bin'
export LD_LIBRARY_PATH=/lib:/opt/lib
ip6tables -A FORWARD -p tcp --dport 5000 -j ACCEPT
ip6tables -A FORWARD -p tcp --dport 5001 -j ACCEPT
ip6tables -P OUTPUT ACCEPT
logger -t "【防火墙规则】" "脚本完成"#输入你放行的端口,一行一个
#放行端口规则例如:
#ip6tables -A FORWARD -p tcp --dport 端口号 -j ACCEPT
#放行ddns域名例如:
#ip6tables -A FORWARD -d 你的域名 -j ACCEPT
#结尾加上一条:
#ip6tables -P OUTPUT ACCEPT