At last change the setting in Google Account to allow less secured non-Google apps to use authentication to send emails via SMTP on your behalf.
Category Archives: Linux Ubuntu
Install and Configure Postfix with Gmail SMTP for Perfect Mailing System
Changing the Hostname on Ubuntu Server
Before we configure Postfix MTA, let’s adjust our hostname to reflect the correct domain name in our outgoing internal email.
Setting up a hostname is really important if you’re using a custom domain for emailing. The hostname helps in proper mailing address.
One of the easiest and reliable solutions that I recommend is using G Suite to have a business email address, for example: team@restorebin.com. You can also get a 20% discount on sign up using this G Suite coupon code.
About Hostname, you can check your current hostname using the below command line in SSH:
hostname -f
The hostname command can also be used for changing the Ubuntu Server hostname throughout.
hostname example.com
I will be changing the hostname to demo.restorebin.com using below command. Continue reading
Install FreeRADIUS 3 and FreeRADIUS modules Ubuntu 18.04
Start by updating your system packages to the latest version:
sudo apt update sudo apt -y upgrade
Reboot system after doing an upgrade
sudo reboot
Once the system is up, begin the installation FreeRADIUS and Daloradius on your Ubuntu 18.04 / Ubuntu 16.04 system.
Step 1: Install Apache Web Server and PHP
Daloradius will require php and Apache web server to be installed on the host system.
Installing Apache on Ubuntu:
Install Apache web server by running: Continue reading
Linux Copy a Folder [ Command Line Option ]
The cp command is a Linux command for copying files and directories. The syntax is as follows:
cp source destination cp dir1 dir2 cp -option source destination cp -option1 -option2 source destination |
Linux cp command examples
UFW Essentials: Common Firewall Rules and Commands
Remember that you can check your current UFW ruleset with sudo ufw status
or sudo ufw status verbose
.
Block an IP Address
To block all network connections that originate from a specific IP address, 15.15.15.51
for example, run this command:
- sudo ufw deny from 15.15.15.51
Set Up vsftpd for a User’s Directory on Ubuntu 18.04
Step 1 — Installing vsftpd
Let’s start by updating our package list and installing the vsftpd
daemon:
- sudo apt update
- sudo apt install vsftpd
When the installation is complete, let’s copy the configuration file so we can start with a blank configuration, saving the original as a backup:
- sudo cp /etc/vsftpd.conf /etc/vsftpd.conf.orig
With a backup of the configuration in place, we’re ready to configure the firewall.
Step 2 — Opening the Firewall
Let’s check the firewall status to see if it’s enabled. If it is, we’ll ensure that FTP traffic is permitted so firewall rules don’t block our tests.
Check the firewall status:
- sudo ufw status
Install and configure vsftpd
What is FTP?
FTP, short for File Transfer Protocol, is a network protocol that was once widely used for moving files between a client and server. It has since been replaced by faster, more secure, and more convenient ways of delivering files.
Here is the list of some well-known FTP servers.
- FTPD
- VSFTPD
- PROFTPD
- PUREFTPD
Introduction to vsftpd
VSFTPD stands for Very Secure File Transfer Protocol Daemon. It is GPL licensed FTP server for UNIX systems, including Linux. It is secure and extremely fast and stable.
Features:
How do I uninstall and reinstall MySQL? linux
Before you remove your MySQL installation, try running the following command from the CLI.
mysql_secure_installation
If a password hasn’t been set for root
(for MySQL), that’ll prompt you to set a password and run you through a series of steps to help clean up and secure MySQL (basic security).
Once set, then try running the command below to restart MySQL and see if you receive an error. Continue reading
How To Setup a Firewall with UFW on an Ubuntu and Debian Cloud Server
Introduction
One of the first lines of defense in securing your cloud server is a functioning firewall. In the past, this was often done through complicated and arcane utilities. There is a lot of functionality built into these utilities, iptables being the most popular nowadays, but they require a decent effort on behalf of the user to learn and understand them. Firewall rules are not something you want yourself second-guessing.
To this end, UFW is a considerably easier-to-use alternative.
What is UFW?
UFW, or Uncomplicated Firewall, is a front-end to iptables. Its main goal is to make managing your firewall drop-dead simple and to provide an easy-to-use interface. It’s well-supported and popular in the Linux community—even installed by default in a lot of distros. As such, it’s a great way to get started securing your sever.
Before We Get Started
First, obviously, you want to make sure UFW is installed. It should be installed by default in Ubuntu, but if for some reason it’s not, you can install the package using aptitude or apt-get using the following commands:
sudo aptitude install ufw
or
sudo apt-get install ufw
How to Open/Allow incoming firewall port on Ubuntu 18.04 Bionic Beaver Linux
Objective
The objective of this article is to serve as a quick reference guide on how to allow incoming traffic on any TCP or UDP port using Ubuntu 18.04 Bionic Beaver Linux with UFW firewall.
Operating System and Software Versions
- Operating System: – Ubuntu 18.04 Bionic Beaver Linux
Requirements
Privileged access to your Ubuntu System as root or via sudo
command is required.
Difficulty
EASY
Conventions
- # – requires given linux commands to be executed with root privileges either directly as a root user or by use of
sudo
command - $ – requires given linux commands to be executed as a regular non-privileged user
Instructions
Example 1
Open incoming TCP port 10000 to any source IP address:
$ sudo ufw allow from any to any port 10000 proto tcp