From b9bc9671d76dc99f3ba16cdf6ebfeb7d396e4cb5 Mon Sep 17 00:00:00 2001 From: Anton Bobov Date: Sat, 8 Feb 2025 00:32:20 +0500 Subject: Update RouterOS address list script --- through-vpn.sh | 73 ++++++++++++++++++++++++++++++++++++++++++++++++++++------ 1 file changed, 66 insertions(+), 7 deletions(-) (limited to 'through-vpn.sh') diff --git a/through-vpn.sh b/through-vpn.sh index 7e9e1ee..b35623b 100755 --- a/through-vpn.sh +++ b/through-vpn.sh @@ -1,11 +1,70 @@ -#!/bin/sh -# -# Add host to through-vpn address list. +#!/usr/bin/env bash +# Add host to RouterOS address list. # -if [ $# -eq 0 ] ; then - echo 'First argument must be host name.' +set -euo pipefail + +LIST_NAME="through-vpn" +ROUTER_HOST="riga" + +usage() { + cat <