网站关键字,做招商如何选择网站,郑州的网站建设,女教师遭网课入侵直播免责声明:本文仅做技术交流与学习... 目录
准备环境:
1-iptables转发机设置转发: 2-CS服务器配置iptables服务器的IP 准备环境: 两台外网服务器. --iptables服务器就是做一个中转...封了中转就没了... 1-iptables转发机设置转发:
iptables -I INPUT -p tcp -m tcp --dport 8… 免责声明:本文仅做技术交流与学习... 目录
准备环境:
1-iptables转发机设置转发: 2-CS服务器配置iptables服务器的IP 准备环境: 两台外网服务器. --iptables服务器就是做一个中转...封了中转就没了... 1-iptables转发机设置转发:
iptables -I INPUT -p tcp -m tcp --dport 80 -j ACCEPT
iptables -I INPUT -p tcp -m tcp --dport 443 -j ACCEPT
iptables -t nat -A PREROUTING -p tcp --dport 80 -j DNAT --to-destination cs服务器的IP:80
iptables -t nat -A PREROUTING -p tcp --dport 443 -j DNAT --to-destination cs服务器的IP:443
# --将iptables服务器的80/443端口转发到服务器的80/443端口 (http/https)iptables -t nat -A POSTROUTING -j MASQUERADE
iptables -I FORWARD -j ACCEPT
iptables -P FORWARD ACCEPT
sysctl net.ipv4.ip_forward1 端口占用直接kill 2-CS服务器配置iptables服务器的IP --生成马子--执行--上线 上线的回连IP为iptables服务器的IP, 因为iptables服务器的IP只有一个,所以iptables服务器的IP被封就断线, 但是cs服务器的IP不会暴漏.