Shadowsocks-libev Iptables Firewalld

路由器全局走ssiptables -t nat -N SHADOWSOCKS iptables -t mangle -N SHADOWSOCKS # Ignore your shadowsocks server's addresses # It's very IMPORTANT, just be careful. iptables -t nat -A SHADOWSOCKS -d 47.240.28.126 -j RETURN # Ignore LANs and any other addresses you'd like to bypass the proxy # See Wikipedia and RFC5735 for…

我的主机推广码

vultr的日本节点 韩国节点的cafe24 强力推荐 阿里云 强力推荐没有之一…

Archlinux滚挂1

error ERROR: devide 'UUID=< uuid_2 >' not found. Skipping fsck. mount: can t find UUID=< uuid_2 > You are now being dropped into an emergency shell. sh: can t access tty; job control turned off [rootfs ]# pacman -Syu后重启就这样了 键盘输入不了。 解决 我是通过降回之前的linux内核解决的这个问题。 从linux 4.16降到linux 4.…

Kcptun shadowsocks in docker

server docker run -dt --restart="always" --name ssserver -p 8388:80 -p 443:443/udp mritd/shadowsocks -m "ss-server" -s "-s 0.0.0.0 -p 80 -m aes-256-cfb -k password --fast-open" -x -e "kcpserver" -k "-t 127.0.0.1:…

Arch Linux 升降换内核

换成linux-lts pacman -S linux-lts linux-lts-headers ls -lsha /boot pacman -R linux linux-headers grub-mkconfig -o /boot/grub/grub.cfg reboot 降版本 ls /var/cache/pacman/pkg/ cd /var/cache/pacman/pkg/ pacman -U linux-xxxxx-x86_64.pkg.tar.xz linux-headers-xxxxx-x86_64.pkg.tar.xz reboot 参考 https://unix.stackexchange.com/questions/284617/…

openldap AC权限配置

目标: ou=apps,dc=example,dc=com目录下的cn=*有权只读ou=people,dc=example,dc=com下的信息列表 通过ldapadmin登陆cn=config,修改olcDatabase={1}hdb的olcAccess值 {0}to dn.subtree="ou=people,dc=example,dc=com" by self write by dn.children="ou=apps,dc=example,dc=com" read by * none 参考 https://www.…

Docker创建新的网络

docker network create --driver bridge \ --subnet 172.21.0.0/16 \ --gateway 172.21.0.1 \ --subnet 2001:db8:2::/64 \ --gateway 2001:db8:2::1 \ --opt com.docker.network.bridge.name=new_net_name \ --opt com.docker.network.bridge.enable_icc=true \ --opt com.docker.network.driver.mtu=1492…

Archlinux systemd开机自动挂载alioss

vim /etc/systemd/system/mountoss.service [Unit] Description=mount oss on boot Requires=network-online.target After=network-online.target firewalld.service Before=After=docker.socket [Service] Type=oneshot RemainAfterExit=yes # 写自己的信息 ExecStart=/usr/local/bin/ossfs my-bucket /tmp/ossfs -ourl= /data/public/syncthing -ourl=oss-cn-beijing.aliyuncs.com -o allow_other [Install]…

Rsync备份VPS

服务器 备份mysql vim backup.sh #!/bin/sh mysqldump -h '172.18.0.3' -u wikiuser -p'mysecret' --databases wikidb > ~/mediawiki/dbbackup/wikidb.`date +%y%m%d`.sql chmod 755 backup.sh 每日 crontab -e 0 6 * * 1 sh ~/mediawiki/backup.sh Rsync $ echo "pid file = /var/run/rsyncd.pid…

Transmission in docker

Transmission + Flexget 实现RSS自动下载 vim docker-compose.yml version: "2" services: bt: restart: unless-stopped image: linuxserver/transmission container_name: bt ports: - "51413:51413/udp" - "51413:51413/tcp" - "9091:9091" volumes: - ./config:/config - /data/public/watch:/watch - /data/public/…