Rhel7端口转发到80
yum -y install http*
cd /var/www/html/
echo "hrr,hi" >> index.html
firewall-cmd --list-all --zone=public
public (default, active)
interfaces: eth0
sources:
services: dhcpv6-client http ssh
ports:
masquerade: no
forward-ports: port=3410:proto=tcp:toport=80:toaddr=
icmp-blocks:
rich rules:
[root@server0 html]#
systemctl start httpd
systemctl enable httpd
[root@desktop0 ~]# curl http://server0:3410 #用其它机器访问
hrr,hi
[root@desktop0 ~]#