Support two easy programming solution
I am just an hobby VPS'ler. I am running some rented Servers here. For automatation reason I try to find a solution for me.
Please help me out.
First is I want automate update script the firewall ufw. For this reason I am stuck with the port of wireguard.
I want combine two linux command. I dont know how
command wg show | grep port
listening port: 50 #the port is different in every of my VPS.
hope the get the command
ufw allow 50
Second is extend very common github wireguard script
After first configuration i want create 10 user with one command or one bash script.
I have try
wget https://git.io/wireguard -O wireguard-install.sh && bash wireguard-install.sh -1 -13 -3
but it is not really working.
Please excuse my easy question, but as mechanical engineer. I am not quite skilled in the IT. Google or other Investigation I could not find a solution.