Now, we need to extend the partition in the server.
SSH to the EC2 instance where the EBS we’ve just extended is attached to.
Type the ‘lsblk’ command to list block devices:
A similar output should be shown:
As you can see size of the root volume reflects the new size, 50GB, the size of the partition reflects the original size, 16 GB, and must be extended before you can extend the file system.
# sudo growpart /dev/xvda 1
Next extend the file system.
Type “df -h” command to check extended file system.
A similar output should be shown:
As you can see size of the file system is still the original size of 16 GB, and must be resized.
# sudo resize2fs /dev/xvda1
You have just extended the EBS Volume in AWS of your Ubuntu Server with no downtime!
Screenshot from the D-Link admin page (Router Graphical User Interface)Inside D-Link admin page, go to “Features” and select “Port Forwarding”. Open the ports of IPSec for the PFsense firewall port 192.168.1.109. UDP Port 500 and 4500.
pfsense Configuration | VPN / IPsec / Mobile Clients
pfsense Configuration | VPN / IPsec / Tunnels
After VPN Configurations, VPN > Tunnels page will look like this:
pfsense Configuration | Firewall > Rules
Remote User Configuration | Windows 10
Download first the crt file from pfsense and send to the remote user. This cert file will be needed to be Installed in the user’s terminal.
* After distributing the crt file from pfsense to the remote users, share the instructions below regarding the installation of the certificate and the creation of VPN connection.
Import the CA to a Windows 10 Remote User PC
Export the CA Certificate from pfSense® and download or copy it to the client PC:
Navigate to System > Cert Manager, Certificate Authorities tab on pfSense
Click by the CA to download only the certificate
Locate the downloaded file on the client PC (e.g. VPNCA.crt) as seen in Figure Downloaded CA Certificate
logrotate in cron.daily was created by DEFAULT (Inside values are by default, no added line)
1 #!/bin/sh
2
3 # Clean non existent log file entries from status file
4 cd /var/lib/logrotate
5 test -e status || touch status
6 head -1 status > status.clean
7 sed 's/"//g' status | while read logfile date
8 do
9 [ -e "$logfile" ] && echo "\"$logfile\" $date"
10 done >> status.clean
11 mv status.clean status
12
13 test -x /usr/sbin/logrotate || exit 0
14 /usr/sbin/logrotate /etc/logrotate.conf
DONE!
Logrotation will be done daily. Then after, will be moved to /backup