Skip to content

Commit

Permalink
openvpn.sh fix message when running return_route(6)
Browse files Browse the repository at this point in the history
  • Loading branch information
David Personette committed May 27, 2020
1 parent b51181d commit c1cea54
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions openvpn.sh
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ global_return_routes() { local if=$(ip r | awk '/^default/ {print $5; quit}')
# Return: configured return route
return_route6() { local network="$1" gw="$(ip -6 route |
awk '/default/ {print $3}')"
echo "The use of ROUTE6 or -R is deprecated and should no longer be needed!"
echo "The use of ROUTE6 or -R may no longer be needed, try it without!!"
ip -6 route | grep -q "$network" ||
ip -6 route add to $network via $gw dev eth0
ip6tables -A INPUT -s $network -j ACCEPT 2>/dev/null
Expand All @@ -175,7 +175,7 @@ return_route6() { local network="$1" gw="$(ip -6 route |
# network) a CIDR specified network range
# Return: configured return route
return_route() { local network="$1" gw="$(ip route |awk '/default/ {print $3}')"
echo "The use of ROUTE or -r is deprecated and should no longer be needed!"
echo "The use of ROUTE or -r may no longer be needed, try it without!"
ip route | grep -q "$network" ||
ip route add to $network via $gw dev eth0
iptables -A INPUT -s $network -j ACCEPT
Expand Down

0 comments on commit c1cea54

Please sign in to comment.