Posts

Showing posts from October, 2021

How to force browser to use https for any site

chrome://net-internals/#events opera://net-internals/#events  Domain Security Policy  Add HSTS domain > mofa.gov.sa   Include subdomains for STS: [click]  Add  Sockets  Close Flush  DNS  Clear  Proxy  Clear  Re-apply

CISCO ROUTER BASIC CONFIGURATION

Set Hostname. R1(config)#hostname BOL_RTR Set WAN IP. BOL_RTR(config)#interface fastEthernet 0/0 BOL_RTR(config-if)#description WAN interface BOL_RTR(config-if)#ip address 192.168.1.151 255.255.255.0 BOL_RTR(config-if)#duplex full BOl_RTR(config-if)#ip nat outside BOL_RTR(config-if)#no shutdown Set route for INTERNET ACCESS. BOL_RTR(config)#ip route 0.0.0.0 0.0.0.0 192.168.1.1 Set LAN IP (as Gateway). BOL_RTR(config)#interface fastEthernet 0/1 BOL_RTR(config-if)#description LAN_interface BOL_RTR(config-if)#ip address 172.16.16.1 255.255.0.0 BOL_RTR(config-if)#duplex full BOL_RTR(config-if)#ip nat inside BOL_RTR(config-if)#no shutdown Configure DHCP for LAN. BOL_RTR(config)#ip dhcp pool LAN BOL_RTR(dhcp-config)#network 172.16.16.0 255.255.0.0 BOL_RTR(dhcp-config)#default-router 172.16.16.1 Set DNS. BOL_RTR(config)#ip name-server 8.8.8.8 BOL_RTR(config)#no ip domain-lookup BOL_RTR(config)#no aaa new-model Set NAT. BOL_RTR(config)#ip nat pool LAN 192.168.1.151 192.168.1.151 netmask...

Install and configure SSL certificate in Apache Webserver

Step:1 Upload the certificate file into the server. I have uploaded the file in /tmp directory Step:2 Modify the apache configuration vi /etc/apache2/sites-available/000-default.conf <VirtualHost *:80>             ServerName monit.example.com             ServerAdmin webmaster@localhost             DocumentRoot /opt/observium/html             Redirect / https://monsupport.example.com             <Directory />               Options FollowSymLinks               AllowOverride None             </Directory>             <Directory /opt/observium/html/>               Options Indexes FollowSymLinks MultiViews               Allow...