You are here
Frank - Wed, 2016/08/17 - 21:24
Hello,
I would like to benefit the Turnkey Revision Comtrol applicance using Subversion. I don't need others and I would like to simply disable them so that I don't have to worry about security issues on these systems?
What is the best way to proceed wihtout having to unstall them?
***** Update - Maybe I can simply block associated port on the firewall? *****
Thank you.
Frank
Forum:
Sorry for slow reponse
Yes blocking the ports via the firewall would certainly work. Keep in mind though, that although the firewall on TurnKey servers is configured, it isn't enabled by default. If you are running on Amazon then it does have a pre-configured (and enabled) "Security Group" (Amazon's firewall).
But a better way to go would be to disable the relevant services (as you initially requested). In theory the command you would use to disable services (daemons in Linux speak) would depend on the TurnKey version &/or build type. v13.x appliances all used the old SysvInit system whereas v14.x use SystemD; except for LXC containers and Open Stack builds which still use SysvInit. I'll give both commands below.
However in practice most services use the legacy SysvInit format with a SystemD helper. This means that often the old commands still apply even on a SystemD server. So unfortunately as I don't know OTTOMH which ones apply, you'll need to do some trial and error. I recommend trying the SysvInit commands and reboot to check if they're running. If they are still running, try the SystemD command and recheck.
To disable services use the following commands:
SysvInit (try this first):
SystemD (if services still running on reboot after trying above):You'll also need to know the service names:
Obviously you won't need the svn service name but I figured I'd include it for completeness... :)Also, all of them are proxied via Apache so you'll also want to disable those configurations (again I included SVN for completeness; obviously you won't use that one; should be obvious which one it is!):
Then restart Apache:let's try this!
Hello Jeremy,
thank you for this detailes information. I gonna try this if we decide to go with a computer exposed to internet.
Add new comment