admin管理员组

文章数量:1642339

(第二台是防火墙 第三台是阿帕奇)
第一台
配ip 192.168.1.10
网关 192.168.1.1
第三台
IP 192.168.2.10
网关 192.168.2.1
第四台
100.1.1.100
第二台
cd /etc/sysconfig/network-scripts/
cp ifcfg -ens33 ifconfigens37
cp ifcfg -ens33 ifconfigens38
33
100.1.1.10
255.0.0.0
37
192.168.1.1
255.255.255.0
38
192.168.2.1
255.255.255.0
第二台
vim /etc/sysctl.conf
net.ipv4.ip_forward =1
第三台
mount /dev/
yum -y install httpd mod_ssl
systemctl enable httpd
systemctl restart httpd
vim /var/www/html/index.html

hhahhahahahha

firefox 访问本地 第二台 vim /etc/ssh/sshd_config port 12345 systemctl restart sshd systemctl status firewalld systemctl enable firewalld

firewall-cmd --set-default-zone=dmz
firewall-cmd --zone=dmz --add-service=https --permanent
firewall-cmd --zone=dmz --add-port=12345/tcp --permanent

本文标签: 护墙firewalld