10 Search results

For the term "test".

nftables Beginner Examples

The first things you need to do and the commands that you need. Save and Translate your iptables rule into nftables rules when migrating from iptables to nftables are: Save iptables rules to text file iptables-save -c > iptables-saved-backup.txt Translate iptables rules to nftables text file iptables-restore-translate -f iptables-saved-backup.txt > ruleset.nft Active nftables rules nft -f ruleset.nft NOTE You should...

Install Apache on Debian and Ubuntu

Install Apache sudo apt-get install apache2 sudo vi /etc/apache2/sites-available/default change AllowOverride None > AllowOverride All in line 11 Enable Apache rewrite and restart Achtung! Don’t forget or things will not work and you’ll waste hours trying to find out why sudo a2enmod rewrite Restart Apache sudo service apache2 restart If no error, its working Optional: The following “example” is used...

Systemd ssh Reverse Tunnel on Debian 9 Stretch

I have used rc.local for years to setup an ssh reverse tunnel on boot under Debian up until Stretch. Now like many others I imagine, I’ve had to convert to systemd. I read everything I could about the choice for deprecating rc.local for systemd. I can say that systemd may be powerful, but systemd’s complexity entails a huge learning-curve for...

How To Configure exim4 on Debian 9

This setup is for a wordpress server that mail-out submissions on the website and assumes that 1) Outbound only. All mail is sent-out via SMTP. You don't want mail retained on the server. 2) there is more than one recipient, re. one for WordPress form submissions and a webmaster (or root). 3) and you are using Google as your SMTP....

Mark Bad Blocks Check Hard Drive Linux

Which disk? sudo fdisk -l Non-destructive read-write test If you want to preserve your data try this first sudo badblocks -svn /dev/sdb smartmon Check to see if your fix worked sudo apt-get install smartmontools sudo smartctl –all /dev/sdb sudo smartctl -A /dev/sdb sudo smartctl -a /dev/sdb | grep -i reallocated Use DD to automatically mark bad blocks – destructive if...

what is s.ytimg.com

YouTubeIMaGe – s.ytimg.com means YouTube image https://support.mozilla.org/en-US/questions/953550 This is a tracker that you can change as follows https://support.mozilla.org/en-US/kb/enable-and-disable-cookies-website-preferences If you place YouTube videos on you website, you may not want to place them on your Home Page for speed considerations, as this tracker tends to be the slowest component. Check that here http://tools.pingdom.com/fpt/ Pingdom website Speed Test Personally hate Adobe...

vi cheat sheet

Command of the day :.,$s/find-this-string/replace-with-this-string/g     Quitting :x Exit, saving changes :wq Exit, saving changes :q Exit as long as there have been no changes ZZ Exit and save changes if any have been made :q! Exit and ignore any changes Motion h Move left j Move down k Move up l Move right w Move to next word...

Start Reverse Tunnel on boot using autossh for Debian 7

As usual, most of the how-to guides out there are too brief (I’m guilty) or apply to other distros: This works on Linux Debian 7 all-around, and this is a complete how to. It works. You just have to follow a very long thread. No A.D.D. here! We will create a Persistent Reverse SSH Tunnel between 2 machines using autossh....

Setup Fail2ban for Debian and Ubuntu

My Notes Only taken from various sources. There are other much more complete guides for Fail2ban available. Install Fail2ban sudo apt-get install fail2ban filter definitions located in /etc/fail2ban/filter.d action definitions located in /etc/fail2ban/action.d The following is a minimal setup. Configure Fail2ban sudo vi /etc/fail2ban/jail.conf Configuration for jail.conf destemail = you@example.com # Email of where alerts should be sent to ignoreip...

Fail2ban Mysql Database to Manage Persistent Bans

Step 1 Create Database and Tables in MySQL Add a “source” field for the server name if you want to use a remote database setup (and add it to the UNIQUE KEY).The UNIQUE KEY prevents duplicates of course. But this means you can refresh the perl script without handling duplicates there which would complicate things considerably. CREATE TABLE iptable (...