2024年4月24日

ubuntu 封装自定义命令

摘要: ~/.bashrc ... ... alias ll='ls -l'alias la='ls -A' ... ... source ~/.bashrc 阅读全文

posted @ 2024-04-24 14:55 Lycorisradiata_A 阅读(1) 评论(0) 推荐(0) 编辑

2023年5月29日

docker 实例网络异常占用

摘要: 首先删除无效容器或(如果您使用的是docker-composedocker container rm <container>docker-compose rm <service>docker-compose) 确保容器已消失:或者输出中不得有此类容器docker container ls | gre 阅读全文

posted @ 2023-05-29 20:15 Lycorisradiata_A 阅读(25) 评论(0) 推荐(0) 编辑

2023年3月20日

debain dhcp network card modify dns

摘要: /etc/dhcp/dhclient.conf supersede domain-name-servers 10.21.0.1; 阅读全文

posted @ 2023-03-20 14:27 Lycorisradiata_A 阅读(1) 评论(0) 推荐(0) 编辑

2023年2月22日

pip3 install

摘要: python3 -m venv tutorial-env source tutorial-env/bin/activatepip3 install *deactivate 阅读全文

posted @ 2023-02-22 13:45 Lycorisradiata_A 阅读(7) 评论(0) 推荐(0) 编辑

2022年11月29日

基于ipset的dns代理

摘要: ###基于源IP的dns白名单 sleep 60s/etc/init.d/firewall restart ###创建ipset集合 命名为src_dns_whitelist#清空原有命名为src_dns_whitelist的集合中的内容ipset flush src_dns_whitelist#删 阅读全文

posted @ 2022-11-29 16:41 Lycorisradiata_A 阅读(57) 评论(0) 推荐(0) 编辑

2021年12月10日

ubuntu usb network card drive

摘要: 通过 lsusb -t命令查看网卡型号 /: Bus 02.Port 1: Dev 1, class="root_hub", Driver=xhci_hcd/4p, 5000M |__ Port 1: Dev 3, If 0, class="Vendor" Specific Class, Drive 阅读全文

posted @ 2021-12-10 11:08 Lycorisradiata_A 阅读(143) 评论(0) 推荐(0) 编辑

2020年12月15日

openwrt通过gre回源

摘要: 创建 ip tunnel add GRE网卡名 mode gre local 本地LAN IP remote SERVER LAN IP ttl 255 ip link set GRE网卡名 up mtu 1360 ip addr add GRE local IP peer GRE Peer IP 阅读全文

posted @ 2020-12-15 10:08 Lycorisradiata_A 阅读(491) 评论(0) 推荐(0) 编辑

2020年11月27日

openwrt 配置 单网卡多IP

摘要: config interface 'wan0' option ifname 'eth1' option proto 'static' option nat '1' option mtu '1500' option trackIp 'ntp.aliyun.com' option trackInterv 阅读全文

posted @ 2020-11-27 15:17 Lycorisradiata_A 阅读(1761) 评论(0) 推荐(0) 编辑

2020年3月31日

k8s 基础

摘要: 创建pod(kubectl create -f {podname} .yaml pod "{podname} " created -n {namespace}) cat name.yaml apiVersion: 声明K8s的API版本 kind: 声明API对象的类型,这里是Pod metadat 阅读全文

posted @ 2020-03-31 17:37 Lycorisradiata_A 阅读(189) 评论(0) 推荐(0) 编辑

2020年3月25日

生成虚拟mac地址通过dhcp获取ip,耗尽dhco地址池

摘要: 平台:kali 软件:dhcpstarv 命令 dhcpstarv -i 网卡名称 -e 本机IP 查看dhcp服务器已经分发的地址 cat /tmp/dhcp.leases 阅读全文

posted @ 2020-03-25 14:05 Lycorisradiata_A 阅读(670) 评论(0) 推荐(0) 编辑

导航