Skip to main content

Posts

Showing posts from August, 2014

Port forward of KVM Guest Virtual Machine through Host Machine using IPTABLE/FIREWALL in Linux System

Port forward of KVM Guest Virtual Machine through Host Machine using IPTABLE/FIREWALL in Linux System
There is a lot of method given in Internet for KVM guest machine port forwarding but I always look for the simple solution that can work in any Linux System.

I have issue during the port forward by IPTABLE/FIREWALL as it disable the Internet access within KVM guest machine.
If I look for Internet access within KVM guest machine then system disable port forwarding.

I have implement the simple solution in CentOS 6.5 x86_64 with can work in both situation as follows:

Step 1: Restart libvirtd service, so that it will modify your firewall rules as per KVM requirement.
# service libvirtd restart
Step 2: You need to add two rules in IPTABLE for NAT and FILTER
# iptables-save > iptable_save_default_libvirtd
# cp iptable_save_default_libvirtd iptable_modifed_libvirtd
# vim  iptable_modifed_libvirtd

Add line after *nat for SSH access

 -A PREROUTING -i eth0 -p tcp -m tcp --dport 222 -j DNA…

Open RAR files in Linux

Open RAR files in Linux I have faced an issue with rar files in Linux. I was not able to open rar file in my desktop. This issue can be resolved using unrar utility.
You can check the latest rpm package in any repository like dag or rpmforge or rpmfusion and run the command line this  yum install <link of rpm file>
# yum install http://apt.sw.be/redhat/el5/en/x86_64/rpmforge/RPMS/unrar-5.0.3-1.el5.rf.x86_64.rpm
By using this, you need not to add repository to your system.