averainy's Blog

averainy

01 Aug 2022

Wireguard Install Script

最近用wireguard安装脚本搭建wireguard服务器,用起来非常方便,推荐使用。 在下载脚本之后,强烈建议修改下生成客户端脚本的代码第313行,加入以下配置: PersistentKeepalive = 25 这样每隔25秒就会发送一次心跳包,以保持客户端与服务端的连接。 …
19 Jul 2022

Summer Moon

夏天农村的月光
19 Jul 2022

Forwarding Ports With Firewalld

1.Enable IPv4 masquerade. firewall-cmd --add-masquerade --permanent 2.add firewalld rule. firewall-cmd …
08 Jul 2022

Use Chrony Test Ntp Server

when we have setuped a ntp service ,we need to test the ntp service if it work well. we can use the following command to test the NTP …
14 Jun 2022

Backup Kvm Vms With Python Libvirt

we changed the vm platform from esxi to kvm a few months ago,so we need to writ e some scripts to backup vms automatically. we only have a …
14 May 2022

Use Wireguard as Relay Node to Access Lan Network in Openwrt

背景 平时为了能够在外面随时连接家庭内部网络,通常有以下几种方式: 1.有公网ip的情况下,做端口映射 2. 没有公网ip的情况下,可以使用frp类似的技术做反向代理. 3. 使用vpn技术连接. 前面两种方式都需要将端口映射到公网,这就带来了被入侵的风险.这就不得不提到新冠病毒 …
05 May 2022

Create Kms Service in Linux

I create a kms service for the lan computers in a linux server recently,so record the steps download kms source and compile it cd …
24 Apr 2022

How to Convert Free Space in Qcow2 Image to Kvm Host

How do you convert free space within the QCOW2 disk image to free space on the kvm host? I use Virt-sparsify to do this. qcow2 image is a …
23 Apr 2022

Auto Select Fastest Proxy in Clash With Python

起因 为了能够方便家里的电脑,电视盒子以及手机能够方便的使用代理,因此在我的群晖上用docker部署了clash。同时为了能够自动选择响应速度最快的代理,因此,用python写了这个脚本。 将这个脚本加入到定时任务即可实现自动切换最快代理。 代码 # coding=utf-8 …
20 Apr 2022

Run Wireguard in Windows With No Administrator Permission

原因 在无管理员权限的Windows系统上无法运行wireguard GUI客户端,为此需要通过安装wireguard服务来解决这个问题。 操作方法 在没有管理权限的Windows系统上安装运行wireguard方法: 以管理员权限打开powershell窗口,运行: …