diff options
Diffstat (limited to 'through-vpn.sh')
| -rwxr-xr-x | through-vpn.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/through-vpn.sh b/through-vpn.sh new file mode 100755 index 0000000..7e9e1ee --- /dev/null +++ b/through-vpn.sh @@ -0,0 +1,11 @@ +#!/bin/sh +# +# Add host to through-vpn address list. +# + +if [ $# -eq 0 ] ; then + echo 'First argument must be host name.' + exit 1 +fi + +ssh riga "/ip firewall address-list add address=$1 list=through-vpn" |
