#!/bin/bash for j in {1..5} do NAME=sec_vpn_$j.ovpn sudo sed -i '5,7d' /home/zoiros13/swarmlab-sec/vpn/$NAME sudo sed -i '4 a comp-lzo' /home/zoiros13/swarmlab-sec/vpn/$NAME sudo sed -i '5 a resolv-retry infinite' /home/zoiros13/swarmlab-sec/vpn/$NAME sudo sed -i '6 a keepalive 15 60' /home/zoiros13/swarmlab-sec/vpn/$NAME sudo sed -i '7 a remote-cert-tls server' /home/zoiros13/swarmlab-sec/vpn/$NAME sudo sed -i '8 a remote 192.168.1.5 1194 udp' /home/zoiros13/swarmlab-sec/vpn/$NAME sudo sed -i '9 a float' /home/zoiros13/swarmlab-sec/vpn/$NAME done