Install python2-certbot-dns-route53 centos 7

If you’ve been bitten by the following bug during the installation of the certbot DNS auth plugin for route53.


---> Package python2-boto3.noarch 0:1.4.6-1.el7 will be installed
--> Processing Dependency: python2-s3transfer >= 0.1.10 for package: python2-boto3-1.4.6-1.el7.noarch
Package python2-s3transfer is obsoleted by python-s3transfer, but obsoleting package does not provide for requirements
--> Finished Dependency Resolution
Error: Package: python2-boto3-1.4.6-1.el7.noarch (epel)
           Requires: python2-s3transfer >= 0.1.10
           Available: python2-s3transfer-0.1.10-1.el7.noarch (epel)
               python2-s3transfer = 0.1.10-1.el7

Continue reading “Install python2-certbot-dns-route53 centos 7”

Enable(fix) write permissions on a NFS share mounted on Windows 10

One annoying “feature” of the windows 10 NFS client is that by default the anonymous user uid and gid is set to -2, and so you can create new files and directories on your NFS server, but you can’t edit or remove existing files.
 
To fix it, you can paste the code bellow in a text file and save it with a ‘.reg’ extension, run it and reboot the machine.
Continue reading “Enable(fix) write permissions on a NFS share mounted on Windows 10”

Apache Reverse Proxy Example

The Simplest reverse proxy configuration possible is the code below, with this configuration your server will proxy all requests from example.com
to subdomain.example.com,

<VirtualHost *:80>
    ServerAdmin [email protected]
    ProxyRequests off
    ServerName example.com
    ProxyPreserveHost On
    <Location />
        ProxyPass http://subdomain.example.com/
        ProxyPassReverse http://subdomain.example.com/
        Order allow,deny
        Allow from all
    </Location>
 
</VirtualHost>

Continue reading “Apache Reverse Proxy Example”

Disable IPv6 on Linux Via Kernel Boot Parameters

If for any reason you want to disable ipv6 and don’t want to do it with the sysctl directive, another easy route is to append ‘ipv6.disable=1’ to the kernel boot parameters.

The grub Way

Open /etc/default/grub and edit the line that starts with GRUB_CMDLINE_LINUX_DEFAULT.
Add the entry ‘ipv6.disable=1’ to the arguments that are already there.
Save and run

Continue reading “Disable IPv6 on Linux Via Kernel Boot Parameters”

Apache auto-create Virtual-Hosts*

In this guide we’ll create a generic apache config file to ‘automatically’ create virtual hosts for a specific domain in your server

Sometimes you have a development server with one primary domain, and some sub-domains with your projects and/or stuff that still need to be validated

Firstly you will need to disable SELinux or configure the folders appropriately ( not covered in this guide ).
Continue reading “Apache auto-create Virtual-Hosts*”

Disable IPv6 on Linux Via Kernel Blacklisting

If for any reason you want to disable ipv6 and don’t want to do it with the sysctl directive, if your kernel was compiled with ipv6 support as a module one easy route is to blacklist the ipv6 kernel module.

All you need to do is create/update the ‘/etc/rc.modules.d/blacklist.conf’ file and add the line ‘blacklist ipv6’.

alternatively you can run the following command as root.

echo '
#Disabling IPv6
blacklist ipv6
' >>  /etc/modprobe.d/blacklist.conf

Sources:

https://www.linuxquestions.org/questions/slackware-14/how-do-i-disable-ipv6-in-slackware-14-1-a-4175504618/
https://www.linuxquestions.org/questions/slackware-14/how-to-disable-ipv6-937447/

Disable IPv6 Centos/Debian/Ubuntu

To completely disable IPv6 on your Linux system, side note you shouldn’t but it’s your choice, you can do so simply editing the 99-sysctl.conf file at the location ‘/etc/sysctl.d/99-sysctl.conf’
 
Copy and paste the following 3 lines at the bottom of the file.

net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1

 
After editing the file you need to then reboot the machine or run the following command as root

sysctl -p

To verify that you have ipv6 disabled you can run

Continue reading “Disable IPv6 Centos/Debian/Ubuntu”