Re: [CentOS] Not firewall, but what?

2010-05-15 Thread Gordon Messmer
On 05/14/2010 12:10 AM, Jussi Hirvi wrote: Ok, rc.d/routes is probably it Looks that way. I find that relatively reassuring. No linux magic involved. But then, if you didn't set that up, who did? (on the healthy machine I previously used as a reference). I will have to study the ip

Re: [CentOS] Not firewall, but what?

2010-05-14 Thread Jussi Hirvi
[r...@farm1 network-scripts]# grep -rl ip rule . ./ifdown-routes ./ifup-routes On 13.5.2010 21.36, Gordon Messmer wrote: Yes, those scripts will run ip rule to process the contents of the rule-* files. The company I work for uses shorewall on all of their multi-homed systems, so I'm not

Re: [CentOS] Not firewall, but what?

2010-05-13 Thread Gordon Messmer
On 05/11/2010 10:21 PM, Jussi Hirvi wrote: On 12.5.2010 3.25, Gordon Messmer wrote: On 05/11/2010 10:21 AM, Jussi Hirvi wrote: Interesting commands, and revealing, it seems to me. Well, there you go. Something set up policy routing on the working host. Do you have any files like

Re: [CentOS] Not firewall, but what?

2010-05-13 Thread m . roth
Gordon wrote: On 05/11/2010 10:21 PM, Jussi Hirvi wrote: On 12.5.2010 3.25, Gordon Messmer wrote: On 05/11/2010 10:21 AM, Jussi Hirvi wrote: snip Find it harder: find /etc/ -type f -print0 | xargs -0 grep ip rule Or, since modern find's default to -print, you could do find /etc -type f

Re: [CentOS] Not firewall, but what?

2010-05-13 Thread Gordon Messmer
On 05/13/2010 12:47 PM, m.r...@5-cent.us wrote: Gordon wrote: Find it harder: find /etc/ -type f -print0 | xargs -0 grep ip rule Or, since modern find's default to -print, Yes, they do, but I have no idea what that has to do with your suggestion to use -exec. If you had suggested

Re: [CentOS] Not firewall, but what?

2010-05-11 Thread Jussi Hirvi
On 11.5.2010 3.40, Gordon Messmer wrote: Routing policy is definitely required for a multi-homed system such as Jussi presented, but NAT is totally superfluous. It adds an extra layer of complexity that makes the system more difficult to diagnose and configure, and contributes nothing of

Re: [CentOS] Not firewall, but what?

2010-05-11 Thread Les Mikesell
Jussi Hirvi wrote: On 11.5.2010 3.40, Gordon Messmer wrote: Routing policy is definitely required for a multi-homed system such as Jussi presented, but NAT is totally superfluous. It adds an extra layer of complexity that makes the system more difficult to diagnose and configure, and

Re: [CentOS] Not firewall, but what?

2010-05-11 Thread Jussi Hirvi
Jussi Hirvi wrote: But I have found no mention of this specific dual-bridge problem I have: that ip traffic goes in ok through any physical nic to the dom0 or domUs, but all replies are routed to only one nic (the default gateway). (I verified this with tcpdump.) On 11.5.2010 16.08, Les

Re: [CentOS] Not firewall, but what?

2010-05-11 Thread Gordon Messmer
On 05/11/2010 06:32 AM, Jussi Hirvi wrote: Ok. But this error does not occur on my other CentOS 5 box (mailserver, non-xen) which also has 2 nics for 2 public ip segments. There input-nic is always = outputnic. And I have done nothing special to achieve this (pure linux magic). That's why I

Re: [CentOS] Not firewall, but what?

2010-05-11 Thread Les Mikesell
On 5/11/2010 8:32 AM, Jussi Hirvi wrote: Jussi Hirvi wrote: But I have found no mention of this specific dual-bridge problem I have: that ip traffic goes in ok through any physical nic to the dom0 or domUs, but all replies are routed to only one nic (the default gateway). (I verified this

Re: [CentOS] Not firewall, but what?

2010-05-11 Thread Jussi Hirvi
On 11.5.2010 18.36, Gordon Messmer wrote: That's odd. Is there any output on that host from ip rule show? What about: # ip rule show # ip rule show | awk '{print $NF}' | sort | uniq | \ while read table ; do echo ; echo $table ; ip route show table $table ; done Interesting

Re: [CentOS] Not firewall, but what?

2010-05-11 Thread Gordon Messmer
On 05/11/2010 10:21 AM, Jussi Hirvi wrote: Interesting commands, and revealing, it seems to me. Well, there you go. Something set up policy routing on the working host. Do you have any files like /etc/sysconfig/network-scripts/route-* or /etc/sysconfig/network-scripts/rule-* ?

Re: [CentOS] Not firewall, but what?

2010-05-11 Thread Jussi Hirvi
On 12.5.2010 3.25, Gordon Messmer wrote: On 05/11/2010 10:21 AM, Jussi Hirvi wrote: Interesting commands, and revealing, it seems to me. Well, there you go. Something set up policy routing on the working host. Do you have any files like /etc/sysconfig/network-scripts/route-* or

Re: [CentOS] Not firewall, but what?

2010-05-11 Thread Jussi Hirvi
On 05/11/2010 10:21 AM, Jussi Hirvi wrote: Interesting commands, and revealing, it seems to me. On 12.5.2010 3.25, Gordon Messmer wrote: Well, there you go. Something set up policy routing on the working host. Do you have any files like /etc/sysconfig/network-scripts/route-* or

Re: [CentOS] Not firewall, but what?

2010-05-10 Thread Jussi Hirvi
On 9.5.2010 14.03, Kahlil Hodgson wrote: Okay, that makes my head hurt. Why two VLANs? What's you mapping between virtual interfaces and guests? And which guest is the bad one? Ok, Kal, thank you for very useful ramblings! This box is already in production, but I think the most useful

Re: [CentOS] Not firewall, but what?

2010-05-10 Thread Kahlil Hodgson
On 05/10/2010 05:34 PM, Jussi Hirvi wrote: This box is already in production, but I think the most useful approach here is to reconsider my setup. I have two public networks here, 62.220.237.x and 62.236.221.x. I want to build a xen system, where some guests connect to one network, some

Re: [CentOS] Not firewall, but what?

2010-05-10 Thread Jussi Hirvi
On 10.5.2010 12.50, Kahlil Hodgson wrote: I'd opt for NAT and policy-based routing. I'll get back to you with details after I've had my diner ;-) Cheers! Kal Hm, NAT might be difficult, because there are common ports to the guest systems. Below is more detail: If we say network A

Re: [CentOS] Not firewall, but what?

2010-05-10 Thread Les Mikesell
Jussi Hirvi wrote: On 9.5.2010 14.03, Kahlil Hodgson wrote: Okay, that makes my head hurt. Why two VLANs? What's you mapping between virtual interfaces and guests? And which guest is the bad one? Ok, Kal, thank you for very useful ramblings! This box is already in production, but I

Re: [CentOS] Not firewall, but what?

2010-05-10 Thread Jussi Hirvi
I have two public networks here, 62.220.237.x and 62.236.221.x. I want to build a xen system, where some guests connect to one network, some guest to the other one, and some to both. To reduce cabling, I would like to do this with only two nics. On 10.5.2010 15.48, Les Mikesell wrote: How do

Re: [CentOS] Not firewall, but what?

2010-05-10 Thread Kahlil Hodgson
On 05/10/2010 08:09 PM, Jussi Hirvi wrote: Hm, NAT might be difficult, because there are common ports to the guest systems. Yeah, but they're going to have different IP addresses and we could do NAT around that. My personal preference is to put a router between external interfaces (with

Re: [CentOS] Not firewall, but what?

2010-05-10 Thread Jussi Hirvi
On 10.5.2010 16.20, Kahlil Hodgson wrote: Here's a pointer to some reading that should get you up to speed. http://www.policyrouting.org/PolicyRoutingBook/ONLINE/TOC.html Lots of good stuff in there and well work the read. Thanks Kal, the nat approach starts to sound good. I will read that

Re: [CentOS] Not firewall, but what?

2010-05-10 Thread John R Pierce
Jussi Hirvi wrote: On 10.5.2010 15.48, Les Mikesell wrote: How do you handle the default route on the 'connect to both' guests? Normally you only want one default gateway and it should be the same one where the connections are coming in. Otherwise you have to do some very tricky things

Re: [CentOS] Not firewall, but what?

2010-05-10 Thread Kahlil Hodgson
On 05/10/2010 11:03 PM, Jussi Hirvi wrote: On 10.5.2010 15.48, Les Mikesell wrote: How do you handle the default route on the 'connect to both' guests? Normally you only want one default gateway and it should be the same one where the connections are coming in. Otherwise you have to do

Re: [CentOS] Not firewall, but what?

2010-05-10 Thread Gordon Messmer
On 05/10/2010 06:20 AM, Kahlil Hodgson wrote: This gives me a very clean and clear separation between inside my network and outside, and no one outside my network is going to see my RFC1918 address space. I weep every time I see someone advocate NAT for security reasons. It's ridiculous.

Re: [CentOS] Not firewall, but what?

2010-05-10 Thread Kahlil Hodgson
On 11/05/10 10:40, Gordon Messmer wrote: On 05/10/2010 06:20 AM, Kahlil Hodgson wrote: This gives me a very clean and clear separation between inside my network and outside, and no one outside my network is going to see my RFC1918 address space. I weep every time I see someone advocate NAT

Re: [CentOS] Not firewall, but what?

2010-05-09 Thread Kahlil Hodgson
On 05/08/2010 11:28 PM, JohnS wrote: If I were you I would start from scratch and go step by step and set it up. John I'm in agreement with John here. Your set up looks complex and may be starting from scratch is the way to go. Looking back though the thread, your set up might also be

Re: [CentOS] Not firewall, but what?

2010-05-08 Thread Gordon Messmer
On 05/07/2010 07:26 AM, Jussi Hirvi wrote: [r...@farm1 log]# ip route show 62.236.221.64/28 dev eth0 proto kernel scope link src 62.236.221.67 62.220.237.96/27 dev eth1 proto kernel scope link src 62.220.237.104 192.168.122.0/24 dev virbr0 proto kernel scope link src 192.168.122.1

Re: [CentOS] Not firewall, but what?

2010-05-08 Thread John R Pierce
Gordon Messmer wrote: On 05/07/2010 07:26 AM, Jussi Hirvi wrote: [r...@farm1 log]# ip route show 62.236.221.64/28 dev eth0 proto kernel scope link src 62.236.221.67 62.220.237.96/27 dev eth1 proto kernel scope link src 62.220.237.104 192.168.122.0/24 dev virbr0 proto kernel

Re: [CentOS] Not firewall, but what?

2010-05-08 Thread Jussi Hirvi
On 8.5.2010 4.31, Kahlil Hodgson wrote: Hmmm have you got more than one bridge on your network? If so you need to make sure you have STP turned ON on all your bridges. If you have any services that require network at start up (nfs), you'll need set you network start up delay to more than 10

Re: [CentOS] Not firewall, but what?

2010-05-08 Thread Kahlil Hodgson
On 05/08/2010 05:38 PM, Jussi Hirvi wrote: How can I turn stp on? In my /etc/xen/scripts/xen-network-common.sh there is a section: # Don't create the bridge if it already exists. if [ ! -e /sys/class/net/${bridge}/bridge ]; then brctl addbr ${bridge} brctl stp

Re: [CentOS] Not firewall, but what?

2010-05-08 Thread Jussi Hirvi
On 8.5.2010 11.56, Kahlil Hodgson wrote: Is if safe to turn stp on there (instead of off? (Requires xend restart at least, I suppose.) Or is there a better way to turn stp on permanently? STP is safe to turn on, but there is a small start up and tiny performance hit - that's why its off by

Re: [CentOS] Not firewall, but what?

2010-05-08 Thread JohnS
On Sat, 2010-05-08 at 15:00 +0300, Jussi Hirvi wrote: But I can *also* access those ip addresses from the network 62.220.237.xx. Why? No idea. (the other if-card on the xen box is configured to this network segment, but I don't see why this would explain this.) Also seen from my home

Re: [CentOS] Not firewall, but what?

2010-05-08 Thread Jussi Hirvi
On 8.5.2010 16.28, JohnS wrote: You only see them from your home pc because your on the same address block/dom/ip carrier! Look at your routing and dns. Sporadic dns issues and routing? BTW some addys get blocked from certain countries also. If I were you I would start from scratch and go

Re: [CentOS] Not firewall, but what?

2010-05-08 Thread JohnS
On Sat, 2010-05-08 at 21:28 +0300, Jussi Hirvi wrote: On 8.5.2010 16.28, JohnS wrote: You only see them from your home pc because your on the same address block/dom/ip carrier! Look at your routing and dns. Sporadic dns issues and routing? BTW some addys get blocked from certain

Re: [CentOS] Not firewall, but what?

2010-05-07 Thread Philippe Naudin
Le Fri, 07 May 2010 07:38:45 +0300, Jussi Hirvi listmem...@greenspot.fi a écrit : ... You could test yourself if you can see http://62.236.221.71 (the problem system) http://62.236.221.78 (another guest on the same xen host) If someone *cannot* see the 1st one, then it would be

Re: [CentOS] Not firewall, but what?

2010-05-07 Thread kalinix
On Fri, 2010-05-07 at 07:38 +0300, Jussi Hirvi wrote: You could test yourself if you can see http://62.236.221.71 (the problem system) http://62.236.221.78 (another guest on the same xen host) If someone *cannot* see the 1st one, then it would be interesting to know if (s)he

Re: [CentOS] Not firewall, but what?

2010-05-07 Thread Simon Billis
Hi, Philippe Naudin sent a missive on 2010-05-07: Le Fri, 07 May 2010 07:38:45 +0300, Jussi Hirvi a écrit : ... You could test yourself if you can see http://62.236.221.71 (the problem system) http://62.236.221.78 (another guest on the same xen host) If someone *cannot* see

Re: [CentOS] Not firewall, but what?

2010-05-07 Thread Tony Molloy
On Friday 07 May 2010 05:38:45 Jussi Hirvi wrote: Ok, thanks for ideas - many new things to test. So far no luck. Too bad i don't have first-hand access to any of the client machines who *do* have this problem. Next, I will go and switch the ethernet cable to a different slot on the

Re: [CentOS] Not firewall, but what?

2010-05-07 Thread Philippe Naudin
Le Fri, 7 May 2010 09:01:17 +0100, Simon Billis si...@houxou.com a écrit : Can you confirm the routing on the two boxes - is there anything different? I would also check the routing on the upstream routers - it is possible that one of your ingress/egress routers has a static entry that is

Re: [CentOS] Not firewall, but what?

2010-05-07 Thread Jussi Hirvi
Thanks everyone for feedback. This could be something weird with the xen network-interface bridging. This problematic server-system is the only xen guest that shares *both* network cards on the machine. I asked my upstream ISP to check things from their side. I hope I will soon get a ssh

Re: [CentOS] Not firewall, but what?

2010-05-07 Thread Didi Hoffmann
On Fri, 2010-05-07 at 09:14 +0100, Tony Molloy wrote: You could test yourself if you can see http://62.236.221.71 (the problem system) http://62.236.221.78 (another guest on the same xen host) If someone *cannot* see the 1st one, then it would be interesting to know if (s)he

Re: [CentOS] Not firewall, but what?

2010-05-07 Thread Benjamin Franz
On 05/06/2010 09:38 PM, Jussi Hirvi wrote: Does the problem affect other xen systems on the same box? I haven't tested this yet (I cannot reproduce the error). You could test yourself if you can see http://62.236.221.71 (the problem system) http://62.236.221.78 (another guest on

Re: [CentOS] Not firewall, but what?

2010-05-07 Thread Jussi Hirvi
Ok, I have now ssh account with which I can reproduce the errors. The error is now narrowed down to inside the box: tcpdump shows that data is coming in, but nothing is leaving. The box is a xen system with 2 if-cards which are shared with xen guests. The error is connected to eth0 (not eth1)

Re: [CentOS] Not firewall, but what?

2010-05-07 Thread Jussi Hirvi
On 7.5.2010 16.40, Benjamin Franz wrote: Post the results for 'route -n', 'ifconfig', and 'arping -D 62.236.221.71' on the machine. The values in the previous message and below are from the xen host (62.236.221.67/62.220.237.104), which displays just the same errors as the xen guest

Re: [CentOS] Not firewall, but what?

2010-05-07 Thread Eduardo Grosclaude
On Fri, May 7, 2010 at 7:17 AM, Didi Hoffmann riba...@gmail.com wrote: On Fri, 2010-05-07 at 09:14 +0100, Tony Molloy wrote: You could test yourself if you can see     http://62.236.221.71 (the problem system)     http://62.236.221.78 (another guest on the same xen host) If someone

Re: [CentOS] Not firewall, but what?

2010-05-07 Thread Eduardo Grosclaude
On Fri, May 7, 2010 at 11:47 AM, Eduardo Grosclaude eduardo.groscla...@gmail.com wrote: You could test yourself if you can see     http://62.236.221.71 (the problem system)     http://62.236.221.78 (another guest on the same xen host) Sure your network masks are OK? -- Eduardo

Re: [CentOS] Not firewall, but what?

2010-05-07 Thread Kahlil Hodgson
On 05/08/2010 12:26 AM, Jussi Hirvi wrote: On 7.5.2010 16.40, Benjamin Franz wrote: Post the results for 'route -n', 'ifconfig', and 'arping -D 62.236.221.71' on the machine. The values in the previous message and below are from the xen host (62.236.221.67/62.220.237.104), which displays

Re: [CentOS] Not firewall, but what?

2010-05-07 Thread Ralph Angenendt
Am 06.05.10 20:43, schrieb Paul Heinlein: A while back, I remember there was a problem with TCP window scaling that would impact only some clients in a way that you describe: http://lwn.net/Articles/92727/ Thank you, I was searching for that a few weeks ago, but didn't find it.

[CentOS] Not firewall, but what?

2010-05-06 Thread Jussi Hirvi
I have a strange problem, where some clients see the website on my server and some do not. It is not about the iptables, and seems to be not about tcp wrapper. Still it is something within the box. More details: - the problem is only with some clients, with no geographical connection between

Re: [CentOS] Not firewall, but what?

2010-05-06 Thread Gavin Carr
Is one of your dns servers broken? On Thu, May 06, 2010 at 09:31:22PM +0300, Jussi Hirvi wrote: I have a strange problem, where some clients see the website on my server and some do not. It is not about the iptables, and seems to be not about tcp wrapper. Still it is something within the

Re: [CentOS] Not firewall, but what?

2010-05-06 Thread Ryan Manikowski
On 5/6/2010 2:35 PM, Gavin Carr wrote: Is one of your dns servers broken? On Thu, May 06, 2010 at 09:31:22PM +0300, Jussi Hirvi wrote: I have a strange problem, where some clients see the website on my server and some do not. It is not about the iptables, and seems to be not about tcp

Re: [CentOS] Not firewall, but what?

2010-05-06 Thread Paul Heinlein
On Thu, 6 May 2010, Jussi Hirvi wrote: I have a strange problem, where some clients see the website on my server and some do not. It is not about the iptables, and seems to be not about tcp wrapper. Still it is something within the box. More details: - the problem is only with some clients,

Re: [CentOS] Not firewall, but what?

2010-05-06 Thread Rob Kampen
Paul Heinlein wrote: On Thu, 6 May 2010, Jussi Hirvi wrote: I have a strange problem, where some clients see the website on my server and some do not. It is not about the iptables, and seems to be not about tcp wrapper. Still it is something within the box. More details: - the

Re: [CentOS] Not firewall, but what?

2010-05-06 Thread Benjamin Franz
On 05/06/2010 11:42 AM, Ryan Manikowski wrote: Notice the op posted they get timeouts even when going directly to a numerical address (if the apache server is configured to respond to *:80 it should at least display something) Try using telnet from a client machine that can not connect.

Re: [CentOS] Not firewall, but what?

2010-05-06 Thread Jussi Hirvi
Ok, thanks for ideas - many new things to test. So far no luck. Too bad i don't have first-hand access to any of the client machines who *do* have this problem. Next, I will go and switch the ethernet cable to a different slot on the router - kind of desperate, I know. Some more details: -