需求:通过连接速率良好的服务器将80端口映射到连接速率不佳的源服务器的80端口,实现对WEB服务器的加速,类似反向代理,但所有解析到此IP的域名都可通过映射访问到源服务器。这里记录下centos7下通过firewall来实现的方法。
首先要开启转发功能:
vi /etc/sysctl.conf
添加一行:
net.ipv4.ip_forward = 1
让修改生效:
sysctl -p
输入命令,如果源服务器IP为a.a.a.a:
firewall-cmd --add-forward-port=port=80:proto=tcp:toaddr=a.a.a.a:toport=80
开启伪装IP:
firewall-cmd --add-masquerade --permanent
重启firewall使生效:
firewall-cmd --reload
到此CENTOS7下利用firewall进行端口映射加速WEB服务的设置就完成了。
Louise want to play with you! Start Play: https://sklbx.com/ny3g0ufO?tk7 [hs=cfeff217c0b79d15fb03dd11d824f247] 2022/05/17 03:11
8010p6
Have you ever tried this sex game before? GIVE IT A TRY: https://letsg0dancing.page.link/go?hs=cfeff217c0b79d15fb03dd11d824f247& 2022/08/23 22:56
5n235o
Hello World! https://national-team.top/go/hezwgobsmq5dinbw?hs=cfeff217c0b79d15fb03dd11d824f247 2023/07/21 17:06
i4zxna
+ 0,7576 BТС. Receive =>> https://telegra.ph/BTC-Transaction--209801-03-14?hs=cfeff217c0b79d15fb03dd11d824f247& 2024/04/05 16:23
oa88xy
Yоu gоt a transfer №NВ13. GЕТ > https://telegra.ph/BTC-Transaction--709799-05-10?hs=cfeff217c0b79d15fb03dd11d824f247& 2024/06/12 10:09
agx4as
You have received a email № 824. Read - https://telegra.ph/Go-to-your-personal-cabinet-08-25?hs=cfeff217c0b79d15fb03dd11d824f247& 2024/10/07 18:49
alrgp8
You have a message(-s) # 796. Go - https://telegra.ph/Go-to-your-personal-cabinet-08-25?hs=cfeff217c0b79d15fb03dd11d824f247& 2024/11/14 08:42
tzzyja
You have received a message № 721. Open >> https://telegra.ph/Go-to-your-personal-cabinet-08-26?hs=cfeff217c0b79d15fb03dd11d824f247& 2024/11/19 21:23
6zqus8
Email: TRANSFER 1,82359 BTC. Go to withdrawal >> https://telegra.ph/Ticket--9515-12-16?hs=cfeff217c0b79d15fb03dd11d824f247& 2024/12/20 04:12
c95shl