monitoring server with line commands / no password typing in

Post your questions about SoftEther VPN software here. Please answer questions if you can afford.
Post Reply
sky59
Posts: 477
Joined: Tue Sep 11, 2018 5:58 pm

monitoring server with line commands / no password typing in

Post by sky59 » Wed Dec 02, 2020 6:49 am

Hi,
now it is time I need help :)

I have installed OrangePiZero SE server in company two years ago. It is now widely used during "corona hoax" times.
Of course, I am the only admin for it :)
System runs from permanently locked SD card so even me can not do any more changes on it. From this point of view it is perfect.

If I use windows based manager (my office PC is on the same network) I do not have to write password for connecting to it.
Sometimes I need to check who is connected and if connection to the client worldwide (for Siemens PLC) is established.

As the server is used also by other people I would need to give them possibility to check status of all remote bridges connected to the VPC hub.
This is to check if there is acces to the PLC.

Sometimes I use vpncmd utility with its command sessionlist. But it needs everytime to type in password. Also I would like to have it automatized
just to start some utility/script? to connect to the server, provide hashed passord and list connections to the hub VPC, like sessionlist.

Is there such a possibility? Thanx!

sky59
Posts: 477
Joined: Tue Sep 11, 2018 5:58 pm

Re: monitoring server with line commands / no password typing in

Post by sky59 » Wed Dec 02, 2020 2:05 pm

More detailed description what I need (I tried it just now):
These are the steps now which I have to make

- start "vpncmd"
- select "1" (management of the server)
- type IP address of the server "xx.xx.xx.xx"

then "specify virtual hub name" is requested, at this point just "enter" (empty string - I do not understand why it does not accept name here)

- type password "xxxxxxxxxxxx"
- type "hub VPN" (now it is "VPN server/VPN>")
- type "sessionlist"

I changed slightly my mind and now I think if it would not be possible to alter source code for "vpncmd" with hardcoded abovemention info inside it?
Does anybody have experience with this?
So I would just "start myvpncmd" and response would be already sessionlist answer.

sky59
Posts: 477
Joined: Tue Sep 11, 2018 5:58 pm

Re: monitoring server with line commands / no password typing in

Post by sky59 » Fri Dec 04, 2020 2:18 pm

OK, guys..

I have to answer my question alone. :)

Altering slighlty SE source code for vpncmd utility and adding two primitive state machines providing "faked" inputs here is the result how it looks like, in attachment.

I think not bad for a guy born in 1959 ?

Clipbord.png
You do not have the required permissions to view the files attached to this post.

sky59
Posts: 477
Joined: Tue Sep 11, 2018 5:58 pm

Re: monitoring server with line commands / no password typing in

Post by sky59 » Tue Dec 08, 2020 10:44 am

zdafafe wrote:
Mon Dec 07, 2020 7:44 pm
Altering slighlty SE source code for vpncmd utility and adding two primitive state machines providing "faked"
? :-)

fenice
Posts: 183
Joined: Sun Jul 19, 2015 4:23 pm

Re: monitoring server with line commands / no password typing in

Post by fenice » Tue Dec 08, 2020 8:33 pm

sky59 wrote:
Tue Dec 08, 2020 10:44 am
zdafafe wrote:
Mon Dec 07, 2020 7:44 pm
Altering slighlty SE source code for vpncmd utility and adding two primitive state machines providing "faked"
? :-)
He was a spammer.
Regards


Bill

sky59
Posts: 477
Joined: Tue Sep 11, 2018 5:58 pm

Re: monitoring server with line commands / no password typing in

Post by sky59 » Tue Dec 08, 2020 8:40 pm

Thanx for clarifying

Post Reply