当前位置:网站首页>仿真测试断开服务器公网连接
仿真测试断开服务器公网连接
2022-07-28 04:04:00 【一个运维小青年】
仿真测试断开服务器公网连接
需求,因为甲方项目环境需要配置在centos系统里面,公司配置一台centos系统服务器,需要做局域网能互通,不能访问公网环境
步骤一:正常能访问公网
wget https://www.baidu.com

步骤二:通过mac地址,禁用这个服务器的上网功能
这里提示确保的你的网卡配置文件,是静态ip
cat /sys/class/net/enp3s0/address

得到mac地址

步骤三:登陆路由器设置禁用这个mac地址上网
我们公司路由器是,TP-LINK设备,你们根据自己的路由器可以做策略

由于俩个mac地址格式不一样,自己修改一下,把小写改成大写:改成-就可以搜索到了
注意:由于服务器没有在下载或者上网,这里查不到mac地址,服务器下载点东西,模拟上网一下,路由器上面就要可以找到拉,然后加入黑名单
模拟上网下载东西
wget https://www.baidu.com

步骤四:返回服务器检测能不能上网
不能访问到外网,配置成功

到外网,配置成功
[外链图片转存中…(img-FRK1E2WY-1658903228106)]
边栏推荐
- Difference between on, where and having
- Servlet usage
- Adding DSP library to STM32F103 and its solution
- Common weak network testing tools
- Recursion and non recursion are used to calculate the nth Fibonacci number respectively
- CV2. Threshold(), CV2. Findcontours(), CV2. Findcontours image contour processing
- Detailed explanation of pointer written test questions (C language)
- Skillfully use stack backtracking to help you quickly locate problems
- 21天,胖哥亲自带你玩转OAuth2
- [untitled]
猜你喜欢

C language: find the number of 1 in binary stored in memory as an integer

Leetcode58. 最后一个单词的长度

What technical capabilities should a qualified software testing engineer have?

Protocols in swift

Filters, interceptors, listeners

测试用例管理工具

Data mining-01

H265/HEVC名词解释-- CTU,CTB,CU,CB,TU,PU,TB,PB,LCU,Slice,Tile,Chroma,Luma,I帧,B帧,P帧

21 days, fat brother personally takes you to play oauth2

Construction and use of FTP server and NFS server
随机推荐
Crowdfunding platform system based on JSP & Servlet
cookie与Session
搬家通知!
Read Plato farm's eplato and the reason for its high premium
Machine learning 07: Bayesian learning
Developing rc522 module based on c8t6 chip to realize breathing lamp
MySQL是怎么保证高可用的
Ch340 RTS DTR pin programming drives OLED
Summary of static blog building tools
Leetcode 0141. circular linked list - three solutions
2022.7.13-----leetcode.735
[untitled]
H265/HEVC名词解释-- CTU,CTB,CU,CB,TU,PU,TB,PB,LCU,Slice,Tile,Chroma,Luma,I帧,B帧,P帧
Greed 45. Jumping game II
Program life | test engineers only know a little? Seven shortcuts teach you to learn new technology quickly
7/27 (board) dyeing method to determine bipartite graph + find combination number (recursive formula)
40: Chapter 4: Development File Service: 1:fastdfs: (1): introduction to fastdfs;
Simple and easy-to-use performance testing tools recommended
Cookies and session
【day03】流程控制语句