iptables端口转发一键脚本
时间:2021-12-08 阅读:1263
装先安装
yum install iptables-services
#关闭CentOS7的防火墙
systemctl stop firewalld.service
systemctl disable firewalld.service
再安装
wget -N --no-check-certificate https://raw.githubusercontent.com/ToyoDAdoubiBackup/doubi/master/iptables-pf.sh && chmod +x iptables-pf.sh && bash iptables-pf.sh
(文件备份http://ys-f.ys168.com/293178534/014476906/t56246N45I3PGGiuVJg90e/iptables-pf.sh)
运行./iptables-pf.sh
先4添加远程IP和端口等
如有宝塔放行端口
网友评论