LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 06-05-2012, 12:38 PM   #1
phatrik
LQ Newbie
 
Registered: Sep 2010
Location: Toronto, ON
Distribution: CentOS
Posts: 18

Rep: Reputation: 0
Question CentOS + KVM network problem


Wanting to play around with OpenFiler, I figured I'd install it in a KVM. Here's what my home lab looks like:


https://www.facebook.com/media/set/?...1&l=e7355f9558


Problem is: While I can ping from the OpenFiler VM to an outside public IP and I can also ping my home PC (192.168.100.4), I can't for some reason ping the openfiler VM from my home PC (i.e.: I can't connect to it's admin interface)


- iptables on openfiler is empty and all default policies are set to allow
- ip forwarding is enabled on the KVM host. the forward chain on the host has a blanket ACCEPT statement for src 0.0.0.0 dst 0.0.0.0
- I have a route on my home PC for the 192.168.100.0 network as shown in the diagram
- Nothing in /etc/hosts.deny or /etc/hosts.allow on openfiler


TIA
 
Old 06-05-2012, 01:20 PM   #2
custangro
Senior Member
 
Registered: Nov 2006
Location: California
Distribution: Fedora , CentOS , RHEL
Posts: 1,979
Blog Entries: 1

Rep: Reputation: 209Reputation: 209Reputation: 209
Quote:
Originally Posted by phatrik View Post
Wanting to play around with OpenFiler, I figured I'd install it in a KVM. Here's what my home lab looks like:


https://www.facebook.com/media/set/?...1&l=e7355f9558


Problem is: While I can ping from the OpenFiler VM to an outside public IP and I can also ping my home PC (192.168.100.4), I can't for some reason ping the openfiler VM from my home PC (i.e.: I can't connect to it's admin interface)


- iptables on openfiler is empty and all default policies are set to allow
- ip forwarding is enabled on the KVM host. the forward chain on the host has a blanket ACCEPT statement for src 0.0.0.0 dst 0.0.0.0
- I have a route on my home PC for the 192.168.100.0 network as shown in the diagram
- Nothing in /etc/hosts.deny or /etc/hosts.allow on openfiler


TIA
Is ip forwarding enabled in the /etc/sysctl.conf file?

-C
 
Old 06-06-2012, 10:21 PM   #3
phatrik
LQ Newbie
 
Registered: Sep 2010
Location: Toronto, ON
Distribution: CentOS
Posts: 18

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by custangro View Post
Is ip forwarding enabled in the /etc/sysctl.conf file?

-C

With all due respect: did you read my problem description or even have a look at my diagram? My guess would be no I found the problem: I got curious so I started a continuous ping from my home PC and started tcpdump on the VM and noticed while I was getting a ping reply on the home PC, I wasn't seeing anything in tcpdump. I had a look at the routing table again on the home PC and noticed that the 192.168.100.0/24 network had my local NIC as it's gateway. After a few minutes I realized that my adapter on the home PC (for some reason) had the IP 192.168.100.3 IP assigned to it. God knows why or when I did that.. it obviously caused problems. Once the IP was removed, pings were getting through.
 
Old 06-07-2012, 12:58 PM   #4
custangro
Senior Member
 
Registered: Nov 2006
Location: California
Distribution: Fedora , CentOS , RHEL
Posts: 1,979
Blog Entries: 1

Rep: Reputation: 209Reputation: 209Reputation: 209
Thank you for posting the solution (it will help future people that may have the same problem)

Maybe next time you post the solution, you can forgo the insult to someone who is taking the time to help you

-C
 
Old 06-08-2012, 12:59 AM   #5
phatrik
LQ Newbie
 
Registered: Sep 2010
Location: Toronto, ON
Distribution: CentOS
Posts: 18

Original Poster
Rep: Reputation: 0
Sorry you took it the wrong way, you're obviously very sensitive to what people tell you. When I started my sentence with "with all due respect", I really did mean it. I was just a little shocked you didn't clue to the fact IP forwarding was enabled based on 3 different hints:

1. My diagram clearly shows IP forwarding is enabled (not only is it marked on the diagram but it's written in red instead of black lettering)
2. My problem description clearly explains IP Forwarding is enabled. Here's what I said word for word "ip forwarding is enabled on the KVM host. the forward chain on the host has a blanket ACCEPT statement for src 0.0.0.0 dst 0.0.0.0"
3. Maybe less obvious, but I did also clearly state pings work one way (from OpenFiler VM to home PC) just not the other way.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
kvm problem with centos 6 module kvm_intel not found !!? jecko617 Red Hat 5 02-28-2012 08:35 AM
[SOLVED] KVM network problem. ThomasRonshof Linux - Virtualization and Cloud 13 01-22-2012 07:07 PM
Network issue KVM host centos michaelux Linux - Virtualization and Cloud 3 06-05-2010 11:51 PM
Problem setting network for KVM Khao8 Linux - Networking 1 09-11-2009 05:05 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:05 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration