Hello,
I have configured openvpn 2.2.2. server on RHEL 6 and openvpn clienr on windows. Server and client are getting authenticated using digital certificates and --auth-user-pass(-verfy).
I know that using --script-security 2 user scripts can be executed from clien.conf & server.conf.
****My requirement**** is to get some details, like MAC, from client machine and send it server after username/password so as to verify it. I know the limitations of this, but i have to do it. I can write some script for windows client to get required info from machine and write it to a file. simillarly i can write shell script to compare the values at server.
Now my problem is, how to send this info which is in the file to the server and compare the corresponding value that has been put is some file on server.
Please help me. Thanks.
Santh
user script to get client MAC and send to server
Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech
-
- OpenVpn Newbie
- Posts: 9
- Joined: Mon Apr 23, 2012 8:50 am
-
- OpenVpn Newbie
- Posts: 3
- Joined: Tue Apr 02, 2013 5:43 pm
Re: user script to get client MAC and send to server
Can you try using socket connections from the client to the server via the connected VPN tunnel?
- janjust
- Forum Team
- Posts: 2703
- Joined: Fri Aug 20, 2010 2:57 pm
- Location: Amsterdam
- Contact:
Re: user script to get client MAC and send to server
currently there is way to send information back from the client to the server. As aywu suggests, you will have to resort to writing a program which sends this info back to the server *AFTER* the VPN has come up.