Changeset 17708
- Timestamp:
- 10/01/11 13:36:35 (20 months ago)
- File:
-
- 1 edited
-
src/router/openvpn/config/openvpnstate.sh (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/router/openvpn/config/openvpnstate.sh
r16862 r17708 1 1 #!/bin/sh 2 2 echo -e "Server: \n" 3 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 500 1|awk -F"," '{print $3}'` \n"4 echo -e "Local Address: `/bin/echo "state" | /usr/bin/nc 127.0.0.1 500 1|awk -F"," '{print $4}'` \n"3 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" 4 echo -e "Local Address: `/bin/echo "state" | /usr/bin/nc 127.0.0.1 5002 |awk -F"," '{print $4}'` \n" 5 5 echo -e "Remote Address: `ifconfig tun0 |awk '{print $3}'|grep P-t-P|awk -F ":" '{print $2}'`" 6 6
Note: See TracChangeset
for help on using the changeset viewer.
