Renewed POST with new info, as openvpn package changed, not everything in old tutorial is true now :) This tutorial is based by old one Default centos repositoryt doesn’t have openvpn package, so lets add epel repository first. I downloaded it from this mirror here.
|
yum install http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm |
(link may be different depending on latest release version, currently file is epel-release-6-8.noarch.rpm) After that, You can install openvpn and easy-rsa packages:
|
yum install openvpn.x86_64 easy-rsa.noarch |
Like this:
Like Loading...
nsc
November 29, 2013
linux6.4, 64bit, centos, certificates, linux, openvpn, vpn
Read more >
If You got messed up with PHP in CentOS with plesk 10.4, You might get such error:
|
# httpd -t Syntax error on line 65 of /var/www/vhosts/domain.tld/conf/13353493930.96968200_httpd.include: Wrapper /var/www/cgi-bin/cgi_wrapper/cgi_wrapper cannot be accessed: (2)No such file or directory |
Small fix to make it work:
Like this:
Like Loading...
nsc
May 6, 2012
linuxcentos, cgi, fcgi, linux, plesk
Read more >
To create debian template for lxc you need fresh copy of debian system. Well, we do have one installed recently on guruplug. All debian install on guruplug steps are here.
Like this:
Like Loading...
nsc
February 20, 2012
linuxcontainer, create, debian, linux, lxc, template, virtualization
Read more >
With default config nginx all IP addresses shows as localhost. Here is configuration to show real client IP. Snippet from varnish config:
|
sub vcl_pipe { set bereq.http.connection = "close"; if (req.http.X-Forwarded-For) { set bereq.http.X-Forwarded-For = req.http.X-Forwarded-For; } else { set bereq.http.X-Forwarded-For = regsub(client.ip, ":.*", ""); } } sub vcl_pass { set bereq.http.connection = "close"; if (req.http.X-Forwarded-For) { set bereq.http.X-Forwarded-For = req.http.X-Forwarded-For; } else { set bereq.http.X-Forwarded-For = regsub(client.ip, ":.*", ""); } } |
Snippet from nginx config:
|
set_real_ip_from 127.0.0.1; real_ip_header X-Forwarded-For; |
Like this:
Like Loading...
nsc
February 12, 2012
linuxlinux, nginx, real ip, real_ip_header, server, varnish, web, X-Forwarded-For
Read more >
Replaces all “OLDSTRING” to “NEWSTRING” in all files
|
$ grep -rl OLDSTRING * | sort | uniq | xargs sed -i -e ‘s/OLDSTRING/NEWSTRING/’ |
or using find:
|
find */public_html/ -iname '*.php' -exec sed -i -e 's/OLDSTRING/NEWSTRING/' {} \; |
Like this:
Like Loading...
nsc
February 10, 2012
linuxlinux, replace, sed, text
Read more >
If you cannot connect to guruplug for some reason via lan interface, for example sshd stopped running or just firewalled yourself out of it, you can connect to it using serial connection.
Like this:
Like Loading...
nsc
January 17, 2012
linuxconnection, development kit, guruplug, linux, minicom, serial, server plus, usb
Read more >
For some tasks, like loading bootloader you need to have tftp server. Here are few steps to set it up and get it running.
Like this:
Like Loading...
nsc
January 17, 2012
linuxfiles, linux, server, tftp, tftpd, transfer, ubuntu
Read more >