![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Rules & FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| passing variable from bash to perl from bash script | arsidh | Shell Programming and Scripting | 10 | 06-04-2008 09:25 AM |
| Why generate "ash and bash" different output for same bash script? | s. murat | Shell Programming and Scripting | 0 | 05-26-2008 04:19 AM |
| Ubuntu: OpenVPN regression | iBot | Security Advisories (RSS) | 0 | 05-15-2008 06:20 AM |
| USN-612-6: OpenVPN regression | iBot | Security Advisories (RSS) | 0 | 05-14-2008 01:30 PM |
| USN-612-3: OpenVPN vulnerability | iBot | Security Advisories (RSS) | 0 | 05-13-2008 12:20 PM |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Help with a bash script for openvpn
I've got a openvpn server and I'm searching a way to permit that a certain certificate is operative only if the connection comes from from a certain ip. Others certificates must have not this limitation because they are for road warriors and we don't know where they can come from.
So the idea is to have an array in a script (we can state some up and down script) or an external file where we have this data: nameofcertificate:ip or network or range example jsmith:1.2.3.4 jsmith:1.2.3.5 jsmith:192.168.1.[10-20] so Mr Smitch can connect only from these locations. I state that at the beginning of the connection I've got both the variables, one derived from the common_name and the other from the env and is trusted_ip. Now I've got to compare the array (or external file) with this variables and if there is a corrispondence permit the connection else not. If a valid certificate is not in the list there is no check on ip. I am not very skilled for this kind of work, someone can help me? Thanks. |
|||
| Google UNIX.COM |
| Forum Sponsor | ||
|
|
| Thread Tools | |
| Display Modes | |
|
|