How to Install VMware Tools on CentOS 7
How to Install VMware Tools on CentOS 7 # yum install -y open-vm-tools check file is exist # ls /usr/bin/vmtoolsd Now reboot the server
Articles for Linux
How to Install VMware Tools on CentOS 7 # yum install -y open-vm-tools check file is exist # ls /usr/bin/vmtoolsd Now reboot the server
How to check directory size in Linux DU command uses for disk uses you can use du command to check directory size. for example you want to check directory size…
How to update Centos 5 .X and cannot find a valid baseurl for repo
If you are using CentOS 5.x and want to install any software and update CentOS 5.x . you are getting following error .
root@server1 [~]# yum update -y
Loaded plugins: fastestmirror
Determining fastest mirrors
YumRepo Error: All mirror URLs are not using ftp, http[s] or file.
Eg. Invalid release/
removing mirrorlist with no valid mirrors: /var/cache/yum/base/mirrorlist.txt
Error: Cannot find a valid baseurl for repo: base
This is because update repositories were moved to the CentOS vault when the operating reached it's end-of-life.
Edit the following file
OpenVPN CRL has expired VERIFY ERROR: depth=0, error=CRL has expired: CN=servername In order to fix the issue, we just need to recreate the crl.pem file. we need to backup the current crl.pem…
OPENVPN Logs To troubleshoot connection issues check below logs grep the client name in /var/log/messages # grep VPN /var/log/messages Check the connection time #cat /etc/openvpn/openvpn-status.log Check the connection negotiation…
SSH Login Email Alerts The examples below send an email when someone logs into your server. For this to work, your server must be able to send mail using the mail command.…
iptables port forwarding
I am port forwarding public ip x.x.x.x to private ip 192.168.200.200 .
iptables -A INPUT -i eth0 -p tcp –dport 5001 -m state –state NEW,ESTABLISHED -j ACCEPT
iptables -A OUTPUT -o eth0 -p tcp –sport 5001 -m state –state ESTABLISHED -j ACCEPT
iptables -t nat -A PREROUTING -i eth0 -p tcp -m tcp –dport 5001 -j DNAT –to-destination 192.168.200.200:5001
how to configure Static IP on Centos 6
## Configure eth0
#
# vi /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=”eth0″
NM_CONTROLLED=”yes”
ONBOOT=yes
HWADDR=A4:BA:DB:37:F1:04
TYPE=Ethernet
BOOTPROTO=static
NAME=”System eth0″
UUID=5fb06bd0-0bb0-7ffb-45f1-d6edd65f3e03
IPADDR=192.168.1.44
NETMASK=255.255.255.0
GL-inet allow clients ( behind the LAN ) access from other Network Edit the firewall add following lines vi /etc/config/firewall config forwarding option dest 'lan' option src 'VPN_client' Restart firewall…
How to Show All NAT Tables Rules IPTABLES iptables -t nat -L iptables -t nat -L -n -v | grep 'something' iptables -t nat -L -n -v The netstat-nat command…