Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Error in /etc/conf.d/net.example multi-homed server iproute2
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
delvar
n00b
n00b


Joined: 07 Feb 2006
Posts: 8

PostPosted: Mon Jun 08, 2009 1:00 pm    Post subject: Error in /etc/conf.d/net.example multi-homed server iproute2 Reply with quote

This may have been reported elsewhere but I couldn’t find a post here,

I was configuring my server with multiple IP addresses that each have their own gateways (multi-homed) its important that connections from any of the IP addresses goes over its own gateway.

A long story short I found a problem in /etc/conf.d/net.example
In the postup function for adding rules using iproute2.
In the for loop that iterates though rules_eth0 there is a line,
Code:
ip rule add ${x} dev "${IFACE}"

this does NOT work the correct line should be
Code:
ip rule add ${x}

No dev eth0. with the dev option the rules do not work even though they show up uing ip rule show’ and look correct. Using wire shark I could see they were going to the ‘main’ default gateway’s MAC address and not the individual gateways they were supposed to.
On removing this option and rebooting it works fine.
Back to top
View user's profile Send private message
malern
Apprentice
Apprentice


Joined: 19 Oct 2006
Posts: 170

PostPosted: Tue Jun 09, 2009 8:26 am    Post subject: Reply with quote

I think you're right. It'd be worth adding it to bugs.gentoo.org to make sure the right people see it, and get it fixed.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum