View previous topic :: View next topic |
Author |
Message |
delvar n00b
Joined: 07 Feb 2006 Posts: 8
|
Posted: Mon Jun 08, 2009 1:00 pm Post subject: Error in /etc/conf.d/net.example multi-homed server iproute2 |
|
|
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
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 |
|
|
malern Apprentice
Joined: 19 Oct 2006 Posts: 170
|
Posted: Tue Jun 09, 2009 8:26 am Post subject: |
|
|
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 |
|
|
|