Skip to content

Commit

Permalink
ovpn_genconfig
Browse files Browse the repository at this point in the history
> Added option -o to set the OpenVPN device number (e.g. -o 1 will create interface tun1)
  • Loading branch information
Salvoxia committed May 3, 2024
1 parent 4532ca4 commit 6a94eee
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion bin/ovpn_genconfig
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ OVPN_BR_DHCP_END=''
[ -r "$OVPN_ENV" ] && source "$OVPN_ENV"

# Parse arguments
PARSED_ARGUMENTS=$(getopt -l "bridge-name:,bridge-eth-if:,bridge-eth-ip:,bridge-eth-subnet:,bridge-eth-broadcast:,bridge-eth-gateway:,bridge-eth-mac:,bridge-dhcp-start:,bridge-dhcp-end:" -o ":a:e:E:C:T:r:s:du:bcp:n:k:DNm:f:tz2B" -- "$@")
PARSED_ARGUMENTS=$(getopt -l "bridge-name:,bridge-eth-if:,bridge-eth-ip:,bridge-eth-subnet:,bridge-eth-broadcast:,bridge-eth-gateway:,bridge-eth-mac:,bridge-dhcp-start:,bridge-dhcp-end:" -o ":a:e:E:C:T:r:s:du:bcp:n:k:DNm:f:o:tz2B" -- "$@")
VALID_ARGUMENTS=$?
if [ "$VALID_ARGUMENTS" != "0" ]; then
usage
Expand Down Expand Up @@ -289,6 +289,10 @@ do
-t)
OVPN_DEVICE="tap"
;;
-o)
shift
OVPN_DEVICEN="$1"
;;
-z)
OVPN_COMP_LZO=1
;;
Expand Down

0 comments on commit 6a94eee

Please sign in to comment.