没有合适的资源?快使用搜索试试~ 我知道了~
赛题配置.docx
需积分: 5 0 下载量 78 浏览量
2022-04-26
09:47:13
上传
评论
收藏 5.42MB DOCX 举报
温馨提示
![preview](https://dl-preview.csdnimg.cn/85223656/0001-ffe64d80d3bcada7b5031f340d28880c_thumbnail-wide.jpeg)
![preview-icon](https://csdnimg.cn/release/downloadcmsfe/public/img/scale.ab9e0183.png)
试读
50页
赛题配置.docx
资源详情
资源评论
资源推荐
![](https://csdnimg.cn/release/download_crawler_static/85223656/bg1.jpg)
特殊说明:在 EXSI 中原有的虚拟机或者是新建的虚拟机添加 DLBD 光盘镜像之后,在系统中无需挂载,直
接使用 apt install 命令完成所需要的软件包的安装即可。
R server:
网络配置
1、编辑网卡配置文件
root@Rserver:~#nano /etc/network/interfaces
# This !le describes the network interfaces available on your system # and how to activate them. For
more information, see interfaces(5).
source /etc/network/interfaces.d/*
# The loopback network interface auto lo
iface lo inet loopback auto ens32
iface ens32 inet static address 172.16.100.254/25 auto ens33
iface ens33 inet static address 192.168.10.2/28 auto ens34
iface ens34 inet static address 10.10.100.254/24
![](https://csdnimg.cn/release/download_crawler_static/85223656/bg2.jpg)
2、重新启用禁用网卡
3、查看域名解析
i ptables
S quid
1.安装 squid 服务
2.
查看服务运行状态
root@Server01:~# /etc/init.d/networking restart
iptables -P FORWARD DROP
iptables -t nat -A POSTROUTING -s 172.16.100.128/25 -j SNAT --to-source 192.168.10.2
iptables -t nat -A POSTROUTING -s 10.10.100.0/24 -j SNAT --to-source 192.168.10.2
iptables -I FORWARD -m state --state ESTABLISHED,RELATED -j ACCEPT iptables -A FORWARD -s
10.10.100.0/24 -j ACCEPT
iptables -A FORWARD -s 172.16.100.128/25 -j ACCEPT
apt install -y squid
![](https://csdnimg.cn/release/download_crawler_static/85223656/bg3.jpg)
3.配置 squid 服务
4.重启 squid 服务
systemctl restart squid
D HCP 配置
1、安装软件包
2、监听网卡
3、修改 dhcpd.conf 配置文件
systemctl status squid
root@Rserver:~# vim /etc/default/isc-dhcp-server INTERFACESv4="ens38"// 根据实际网卡编号而定
INTERFACESv6=""
root@Rserver:~#nano /etc/dhcp/dhcpd.conf ddns-update-style none;
subnet 10.10.100.0 netmask 255.255.255.0 {
range 10.10.100.1 10.10.100.50;
option routers 10.10.100.254; option domain-name "skills.com";
option domain-name-servers 172.16.100.201;
default-lease-time 3600;
max-lease-time 7200;
host client {// 如果有需要保留的主机需要新建保留 hardware ethernet 08:00:07:26:c0:a5;
!xed-address 10.10.100.50;
}
}
cd /etc/squid
mv squid.conf squid.conf.bak nano squid.conf cache_eJective_user proxy cache_eJective_group proxy
http_port 3128
http_access allow all
root@Rserver:~# apt install isc-dhcp-server -y --allow-unauthenticated
![](https://csdnimg.cn/release/download_crawler_static/85223656/bg4.jpg)
4、启动服务
5、Rserver 查看租约
6、客户端查看租约
systemctl start isc-dhcp-server
root@Rserver:~# cat /var/lib/dhcp/dhcpd.leases
root@Client:~# cat /var/lib/dhcp/dhclient.ens32.leases
![](https://csdnimg.cn/release/download_crawler_static/85223656/bg5.jpg)
S SH 服务
1、编辑 sshd_conf 配置文件
2、重启服务
3、客户端产生密钥
切换至 Chinaskill20 用户
nano /etc/ssh/sshd_con!g port 2222
AllowUsers *@10.10.100.* PermitRootLogin yes PubkeyAuthentication yes
AuthorizedKeysFile.ssh/authorized_keys .ssh/authorized_keys2
systemctl restart sshd
剩余49页未读,继续阅读
![docx](https://img-home.csdnimg.cn/images/20210720083331.png)
![docx](https://img-home.csdnimg.cn/images/20210720083331.png)
![docx](https://img-home.csdnimg.cn/images/20210720083331.png)
![docx](https://img-home.csdnimg.cn/images/20210720083331.png)
![docx](https://img-home.csdnimg.cn/images/20210720083331.png)
![docx](https://img-home.csdnimg.cn/images/20210720083331.png)
![docx](https://img-home.csdnimg.cn/images/20210720083331.png)
![docx](https://img-home.csdnimg.cn/images/20210720083331.png)
![docx](https://img-home.csdnimg.cn/images/20210720083331.png)
![docx](https://img-home.csdnimg.cn/images/20210720083331.png)
![docx](https://img-home.csdnimg.cn/images/20210720083331.png)
![docx](https://img-home.csdnimg.cn/images/20210720083331.png)
![docx](https://img-home.csdnimg.cn/images/20210720083331.png)
![docx](https://img-home.csdnimg.cn/images/20210720083331.png)
![docx](https://img-home.csdnimg.cn/images/20210720083331.png)
![docx](https://img-home.csdnimg.cn/images/20210720083331.png)
![avatar](https://profile-avatar.csdnimg.cn/3612bbadc9e1415d9206faa961a02e08_m0_61901625.jpg!1)
GUIDM
- 粉丝: 3977
- 资源: 5
上传资源 快速赚钱
我的内容管理 展开
我的资源 快来上传第一个资源
我的收益
登录查看自己的收益我的积分 登录查看自己的积分
我的C币 登录后查看C币余额
我的收藏
我的下载
下载帮助
![voice](https://csdnimg.cn/release/downloadcmsfe/public/img/voice.245cc511.png)
![center-task](https://csdnimg.cn/release/downloadcmsfe/public/img/center-task.c2eda91a.png)
安全验证
文档复制为VIP权益,开通VIP直接复制
![dialog-icon](https://csdnimg.cn/release/downloadcmsfe/public/img/green-success.6a4acb44.png)
评论0