from--:https://www.visionyu.xyz/2020/06/29/dnsmasq-ipset-iptables-%E5%AE%9E%E7%8E%B0%E5%AF%B9%E6%B5%81%E9%87%8F%E8%BF%9B%E8%A1%8C%E5%88%86%E6%B5%81/ 需求和实现方式 使用vpn相比代理方式的确会稳定,但是常常会导致客户端网络改变而造成一些问题,所以我们更希望同时具有vpn的稳定以及基于不同网络访问请求而走不同流量的策略。我们可以通 过 dnsmasq+ipset区分出不同域名的不同ip,并且对ip进行分组,然后使用iptable 对不同组的ip打上不同的标签,最后再走不同的路由表实现策略路由。 基本的流程图如下: 正常流量 dnsmasq ipset iptables iproute 流量转发 …
vi /etc/netplan/00-installer-config.yaml 00-installer-config.yaml # This is the network config written by 'subiquity' # /etc/netplan network: ethernets: ens6: dhcp4: true version: 2
k3s创建portainer k3s kubectl apply -f /root/portainer.yaml #执行部署 docker network create -d macvlan --subnet=192.168.3.0/24 --gateway=192.168.3.1 -o parent=br0 macvlan #创建 macvlan 网络 portainer.yaml --- # Source: portainer/templates/namespace.yaml apiVersion: v1 kind: Namespace metadata: name: portainer --- # Source: portainer/templates/serviceaccount.yaml apiVersion: v1 kind: …
想在Linux使用USB线连接到UPS然后提供给其他机器使用,打算使用APC的官方软件,但是无论如何都检测不到,翻了一堆资料才发现官方的应用不支持。 APC的软件PowerChute,不支持任何TypeB接口的设备在Linux下通过USB连接,Windows是可以的,折腾了好久,最后白费,老实用NUT工具获取数据了。相关资料如下: Type A UPS Type B UPS SMT SU SMX SUA (including C500J) SURTD SURT SRT SURTA SMTL SC SCL SUM SMC SRTL SRC models:SRC2KUXISRC3KUXISRC3KUXIX709 Any SRC model, excluding those listed under Type A. The config.sh s…
Openwrt直通SR-IOV网卡,然后与另一个网卡桥接,桥接正常,但是网络DHCP不通,踩了很多坑,最后发现SR-IOV的网卡软桥接会有问题,功能不支持。 Intel官方就描述了相关的问题。 from -- https://forum.proxmox.com/threads/communication-issue-between-sriov-vm-vf-and-ct-on-pf-bridge.68638/ Maybe not as uncommon as I thought it would be, the Intel DPDK documentation is even describing exactly that us case. The problem I\'m having is that VMs from the left s…
Openssl 中间人SSL代理 仅仅能在Linux相关的系统上使用,有很多性能及应用方面的限制,可以用来测试。 文章来自:https://gist.github.com/jeremiahsnapp/6426298 以下为原文 As a proof of concept, the openssl tool can be used on Linux or OS X to create a rudimentary MITM SSL proxy. The openssl s_client used below will terminate after an API request-response completes since the Chef API protocol closes the client-server connection a…
2020最好的Linux发行版
2020-09 from--https://linoxide.com/linux-how-to/what-are-best-linux-distros/ Even we have hundreds of distributions, we have created a list of best Linux distro based on popularity, features, and ease of usage. I felt its fair to categories top Linux distros based on Desktop (laptop), Security, Lightweight, Enterprise and for Developers because each distro have their uniqu…