Commit 626487e1 authored by nanahira's avatar nanahira

scripts

parent ef4a146f
#!/bin/bash
NODE_NAME=$1
INTERFACE=mc-$NODE_NAME
cd ansible
ansible wg -m systemd -b -a "name=wg-quick@$INTERFACE state=stopped enabled=false"
ansible wg -m shell -b -a "echo -e \"flush interface ${USERNAME}\\nquit\" | timeout 1 nc ::1 33123"
cd ..
#!/bin/bash #!/bin/bash
ssh root@10.198.1.1 -p 55322 ipset add u_water_chnroute 10.198.1.57 LADDER="water"
ssh root@10.198.1.1 -p 55322 ipset add u_${LADDER}_chnroute 10.198.1.57
ssh nanahira@10.198.0.6 sudo ipset add u_${LADDER}_chnroute 10.198.1.57
./config.sh ./config.sh
ssh root@10.198.1.1 -p 55322 ipset del u_water_chnroute 10.198.1.57 ssh root@10.198.1.1 -p 55322 ipset del u_${LADDER}_chnroute 10.198.1.57
ssh nanahira@10.198.0.6 sudo ipset del u_${LADDER}_chnroute 10.198.1.57
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment