You are here
Stas Grishin - Sat, 2010/01/02 - 20:18
I am trying to write a shell script to config an openvpn webmin module via command line but it's not working. I edit /usr/share/webmin/openvpn/config using sed. The changes are saved to the file, but when I load the module configuration in webmin, the changes do not show up. Am I not editing the right file? Everything I looked up points me to that file.
I wish I could see how TKL Mysql and similar appliances that install webmin modules do it.
Also, how does TKL OpenVPN sound? I want to replace my current openvpn server, so I figured TKL Core is a good starting point.
Forum:
TurnKey OpenVPN sounds terrific
Regarding your first question, don't touch anything in /usr/share. That goes against Debian Policy because a package upgrade could wipe your changes out. We configure webmin by tweaking files in /etc/webmin. For example here's how we configure Webmin to list on port 12321:
Regarding your second question, TurnKey appliances install webmin modules via the package manager: There's an OpenVPN module for Webmin but unfortunately I'm not sure you'll be able to install it via the package manager yet, since its not in the list of packaged modules: We package Webmin ourselves though so if you make a prototype we'll take care of that in the next release. In the meantime just install it manually.Thanks you so much
Thanks for the help. I can now install the webmin openvpn module and configure it via command line. I just need to put everything together into one script that will turn TKL Core into an openvpn appliance.
My problem now is how to get openvpn working. I can get it installed, but after following many tuturials and reading help files online, I still cannot get a server working that I can connect to. I have not had to setup openvpn for a long time. I think the installation is good, but until I can get a working server, I find it hard to say it is ready.
Anyone know how to get a working server using the webmin openvpn module?
Anyway, I will try to get a complete script together tomorrow and will do some more testing. If I can figure out how to turn this into a tklpatch, I will do that too this week.
I love the whole concept of virtual machines and how Turnkey Linux takes advantage of the technology. Thanks so much for this great system and for all of the help.
Liraz, can the information you gave above be added to the development section? Also, I was able to create my own webmin-openvpn debian package. Do you prefer I auto-generate it in a script file? Or would you rather host it on the turnkey repository?
http://doxfer.com/Webmin/ModuleDevelopment#Module_Packaging
Add new comment