#2558 closed (fixed)

status page openvpn fix

Reported by: petrell.menola Owned by:
Keywords: openvpn status Cc:

Description

in file /etc/openvpnstate.sh, there is a typo:

#!/bin/sh echo -e "Server: \n" echo -e "/bin/echo "state" | /usr/bin/nc 127.0.0.1 5002 |awk -F"," '{ print $2}': /bin/echo "state" | /usr/bin/nc 127.0.0.1 5002 |awk -F"," '{print $3}' \n" echo -e "Local Address: /bin/echo "state" | /usr/bin/nc 127.0.0.1 5002 |awk -F"," '{print $4}' \n" echo -e "Remote Address: ifconfig tun0 |awk '{print $3}'|grep P-t-P|awk -F ":" '{print $2}'"

echo -e "Client: \n" echo -e "/bin/echo "state" | /usr/bin/nc 127.0.0.1 5001 |awk -F"," '{ print $2}': /bin/echo "state" | /usr/bin/nc 127.0.0.1 5001 |awk -F"," '{print $3}' \n" echo -e "Local Address: /bin/echo "state" | /usr/bin/nc 127.0.0.1 5001 |awk -F"," '{print $4}' \n" echo -e "Remote Address: ifconfig tun0 |awk '{print $3}'|grep P-t-P|awk -F ":" '{print $2}' \n"

it must be tun1 for "Client" not tun0.

root@router:/tmp# ifconfig tun0 |awk '{print $3}'|grep P-t-P|awk -F ":" '{print $2}' root@router:/tmp# ifconfig tun1 |awk '{print $3}'|grep P-t-P|awk -F ":" '{print $2}' 10.0.1.5 root@router:/tmp#

Change History (1)

comment:1 Changed 12 months ago by Sash

  • Resolution set to fixed
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.