Yesterday i create windows 2012r2 VM in my ubuntu 16.04 server using KVM. Now i can ping between guest and host and in vice versa. But other system in my LAN not able to ping with the vm (i assign a static ip to my vm).
i used the below anser for forward the port, Alter the iptable rules. Also disable the windows firewall settings
Enable the fort forwarding in ubuntu host. But no progress Other machines will not ping to the VM.
*
root@server2:~# virsh net-dumpxml default
<network>
<name>default</name>
<uuid>95e24458-3946-42cf-b013-71637b906842</uuid>
<forward mode='nat'>
<nat>
<port start='1024' end='65535'/>
</nat>
</forward>
<bridge name='virbr0' stp='on' delay='0'/>
<mac address='52:54:00:fd:24:95'/>
<ip address='192.168.122.1' netmask='255.255.255.0'>
<dhcp>
<range start='192.168.122.2' end='192.168.122.254'/>
</dhcp>
</ip>
</network>
*
root@server2:~# iptables -L Chain INPUT (policy ACCEPT) target
prot opt source destination ACCEPT udp -- anywhere anywhere udp dpt:domain ACCEPT tcp -- anywhere
anywhere tcp dpt:domain ACCEPT udp -- anywhere
anywhere udp dpt:bootps ACCEPT tcp -- anywhere
anywhere tcp dpt:bootpsChain FORWARD (policy ACCEPT) target prot opt source
destination ACCEPT all -- anywhere 192.168.122.0/24 ctstate RELATED,ESTABLISHED ACCEPT all -- 192.168.122.0/24
anywhere ACCEPT all -- anywhere anywhere REJECT
all -- anywhere anywhere reject-with icmp-port-unreachable REJECT all -- anywhere
anywhere reject-with icmp-port-unreachable ACCEPT all -- anywhere 192.168.122.0/24 state NEW,RELATED,ESTABLISHED ACCEPT all -- anywhere
anywhere state RELATED,ESTABLISHED ACCEPT all -- anywhere anywhere ACCEPT tcp -- anywhere
192.168.122.196 tcp dpt:ssh state NEW DROP all -- anywhere anywhereChain OUTPUT (policy ACCEPT) target prot opt source
destination ACCEPT udp -- anywhere anywhere
udp dpt:bootpcroot@server2:~#
Any mistake please advice. I am new to this enviorment .Any one please help.