别人的iptables中转脚本
端口转发具体给个脚本wget -N --no-check-certificate https://raw.githubusercontent.com/ToyoDAdoubiBackup/doubi/master/iptables-pf.sh && chmod +x iptables-pf.sh && bash iptables-pf.sh
请输入 iptables 欲转发至的 远程端口 (支持端口段 如 2333-6666, 被转发服务器):10000-11000
欲转发端口 : 10000-11000
请输入 iptables 欲转发至的 远程IP(被转发服务器):2.2.2.2
欲转发服务器IP : 2.2.2.2
请输入 iptables 本地监听端口 (支持端口段 如 2333-6666)
(默认端口: 10000-11000):
本地监听端口 : 10000-11000
请输入 本服务器的 公网IP网卡IP(注意是网卡绑定的IP,而不仅仅是公网IP,回车自动检测):
本服务器IP : 1.1.1.1
请输入数字 来选择 iptables 转发类型:
1. TCP
2. UDP
3. TCP+UDP
(默认: TCP+UDP):
——————————————————————————————
请检查 iptables 端口转发规则配置是否有误 !
本地监听端口 : 10000-11000
服务器 IP : 2.2.2.2
欲转发的端口 : 10000-11000
欲转发 IP : 1.1.1.1
转发类型 : TCP+UDP CentOS7 的 Firewalld 它不香吗 这个端口转发具体的用途是啥? 这不是逗比的脚本么... socat路过
022.gif
这个不是逗比的脚本么 重启得重新设置,这咋搞的yum install iptables-services -y
systemctl enable iptables
iptables-save > /etc/sysconfig/iptables 这也要脚本?两台服务器一共就4条命令 这也要脚本?就开启转发和4条命令 感谢分享
页:
[1]
2