获取指定ASN号(运营商)发布的BGPv4路由前缀 #!/bin/bash # #************************************* #Author: FNK #Date: 2020-08-16 #FileName: asn_bgpv4_info.sh #URL: https://boke.wsfnk.com/archives/222.html ... 辣条①号 Shell案例 2022年 11月 5日 19 次浏览 0 阅读全文
linux屏蔽海外流量(仅允许国内访问) 方法一:使用大神的开源脚本,屏蔽指定国家地区的IP访问 wget https://raw.githubusercontent.com/iiiiiii1/Block-IPs-from-countries/master/block-ips.sh sh block-ips.sh 方法二:使用IPIP的数据库进行流量屏蔽(推荐 ... 辣条①号 Shell案例 2022年 11月 5日 40 次浏览 0 阅读全文
linux系统基础信息获取脚本shell版 #!/bin/bash # #********************************* #Author: FNK #Date: 2017-08-06 #FileName: Linux_info.sh #Copyright (C): 2017 All rights reserved #************* ... 辣条①号 Shell案例 2022年 11月 5日 21 次浏览 0 阅读全文
使用shell批量查询ip归属 工具前提 curl awk 脚本流程 将从wireshark导出的ip包列表文件(名为ip-B)作为脚本的第一输入 使用格式 "sh ip-GS ip-B" 下面是脚本内容 #!bin/bash #shell-name:ip-GS #date:20170507 #author:wsfnk FILE= ... 辣条①号 Shell案例 2022年 11月 5日 28 次浏览 0 阅读全文
shell下查看cpu信息 #!/bin/bash #version:1.0 #author:fnk #date:2017-2-10 #效果:查看服务器cpu信息 #查看物理cpu颗数 cat /proc/cpuinfo |grep "physical id"|sort |uniq|wc -l #查看逻辑cpu个数(线程数) ... 辣条①号 Shell案例 2022年 11月 5日 14 次浏览 0 阅读全文
linux网络路由管理之一(硬件特性-基础信息查看) #linux查看网卡支持多少队列 grep enp1s0f0 /proc/interrupts |awk '{print $NF}' ethtool -S eth0 #linux查看网卡队列数 cat /proc/interrupts | grep -E "enp1s0f0|CPU&quo ... 辣条①号 Linux System 运维 2022年 11月 5日 33 次浏览 0 阅读全文