The syntax is as follows:
iptables -A INPUT -s IP-ADDRESS -j DROP
e.g.
iptables -A INPUT -s 84.94.83.02 -j DROP
The syntax is as follows:
iptables -A INPUT -s IP-ADDRESS -j DROP
e.g.
iptables -A INPUT -s 84.94.83.02 -j DROP
Generate auth keys:
ssh-keygen -t rsa
Copy public key (id_rsa.pub) to destination server:
ssh-copy-id root@10.10.10.10
*Or manually insert key from id_rsa.pub (host) into /root/.ssh/authorized_keys (destination)
Now try shelling from the host machine to the destination e.g.
ssh root@10.10.10.10
You shouldn’t be asked for a password and dropped straight into the server.
Find the drive name:
fdisk -l
*In this example we will use /dev/sdc
Now access parted to prepare the drive for formatting and mounting:
sudo parted /dev/sdc
Now set the following:
(parted) mklabel gpt (parted) unit TB (parted) mkpart primary 0.00TB 4.00TB (Changing 4.00TB to the size of your drive) (parted) quit
apt-get install ntp
Edit ntp config file:
vim /etc/ntp.conf
Update the 4 “server pool.ntp.org” lines to your locale. e.g. UK:
server 0.uk.pool.ntp.org server 1.uk.pool.ntp.org server 2.uk.pool.ntp.org server 3.uk.pool.ntp.org
All zones can be found here http://www.pool.ntp.org/zone/@
Check the date/time is indeed correct:
date
Credit goes to http://wiki.debian.org/DateTime
INSTALL AND CONFIGURE
Install the domain packages:
apt-get install opendkim opendkim-tools
Add the following to /etc/opendkim.conf:
Domain example.com KeyFile /etc/postfix/dkim.key Selector dkim SOCKET inet:8891@localhost
*example.com being your domain
Add the following to /etc/default/opendkim:
SOCKET="inet:8891@localhost"
Add the following to the bottom /etc/postfix/main.cf:
Recent Comments