LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 05-13-2012, 12:40 AM   #1
el_tedward
LQ Newbie
 
Registered: Apr 2010
Posts: 17

Rep: Reputation: 0
no route to host on certain ports, kvm bridged guest


I have a bridged KVM guest where only certain ports seem to route to it properly. For instance, I can ssh in over port 22 and ping it just fine (from the host as well as on a separate box on my network). However, if I change SSH to run on port 9822, I get a no route to host error, though port 22 gives the expected connection refused error.

KVM guest is at 192.168.0.50, running centos 6.2

KVM host (is also gateway for my network) is at 192.168.0.1, running scientific linux 6.2

other physical box is at 192.168.0.10, running ubuntu 12.04

Here are the relevant network scripts for the KVM host:

cat /etc/sysconfig/network-scripts/ifcfg-br0
Code:
[sudo] password for tedward: 
DEVICE=br0
BOOTPROTO="static"
ONBOOT=yes
TYPE=Bridge
BROADCAST="192.168.0.255"
IPADDR="192.168.0.1"
NETMASK="255.255.255.0"
cat /etc/sysconfig/network-scripts/ifcfg-eth0
Code:
DEVICE="eth0"
HWADDR="00:50:43:00:87:53"
NM_CONTROLLED="no"
ONBOOT="yes"
#BOOTPROTO="static"
BRIDGE=br0
BROADCAST="192.168.0.255"
IPADDR="192.168.0.1"
NETMASK="255.255.255.0"
PROMISC="yes"

Last edited by el_tedward; 05-13-2012 at 12:49 AM.
 
Old 05-13-2012, 07:18 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,339
Blog Entries: 28

Rep: Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145
Is SE/Linux enabled and what are its settings?
 
Old 05-13-2012, 11:42 PM   #3
el_tedward
LQ Newbie
 
Registered: Apr 2010
Posts: 17

Original Poster
Rep: Reputation: 0
I've had the default targeted policies in enforce mode. Switching to permissive on both host and guest gets me the same results, though.
 
Old 05-19-2012, 09:06 PM   #4
el_tedward
LQ Newbie
 
Registered: Apr 2010
Posts: 17

Original Poster
Rep: Reputation: 0
Any ideas?
 
Old 05-21-2012, 01:11 AM   #5
okcomputer44
Member
 
Registered: Jun 2008
Location: /home/laz
Distribution: CentOS/Debian
Posts: 246

Rep: Reputation: 53
Hi,

Iptables/firewall rules?

I think just only the 22(ssh) enabled in your box and when you change it to 9822 then you lose the packet at the INPUT chain.
Try to stop iptables/firewall first to see what happens.
 
  


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 guest cannot access host thehemi Linux - Virtualization and Cloud 8 03-28-2012 04:36 AM
ubuntu move kvm guest from one host to another thllgo Linux - Software 1 04-18-2011 06:12 PM
KVM Guest to Host Bridge Hijacking F14 goatboyx Linux - Virtualization and Cloud 2 03-05-2011 02:09 PM
Share between Qemu-Kvm host and guest Alexvader General 1 06-13-2010 03:07 PM
Has anyone attempted running OS/2 guest under KVM (or other host)? kaza Linux - Virtualization and Cloud 3 05-16-2010 02:53 PM

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

All times are GMT -5. The time now is 11:30 AM.

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