Re: Server with multiple public IP

2014-05-14 Thread Andrea Venturoli
On 04/28/14 11:16, Dominic Froud wrote: On 28/04/2014 09:58, Andrea Venturoli wrote: I've got a server which has two (or more) interfaces with public IPs. Let's say, as an example (with fictional IPs): ifconfig_vlan1="inet 1.0.0.2 netmask 255.255.255.248..." ifconfig_vlan2="inet 2.0.0.2 netmask

Re: Server with multiple public IP

2014-04-28 Thread Julian Elischer
On 4/28/14, 7:06 PM, Dominic Froud wrote: On 28/04/2014 11:15, Julian Elischer wrote: replying to myself.. On 4/28/14, 6:11 PM, Julian Elischer wrote: On 4/28/14, 5:44 PM, Andrea Venturoli wrote: On 04/28/14 11:18, Andreas Nilsson wrote: You could put all the services which are on 2.0.0.2 i

Re: Server with multiple public IP

2014-04-28 Thread Dominic Froud
On 28/04/2014 11:15, Julian Elischer wrote: replying to myself.. On 4/28/14, 6:11 PM, Julian Elischer wrote: On 4/28/14, 5:44 PM, Andrea Venturoli wrote: On 04/28/14 11:18, Andreas Nilsson wrote: You could put all the services which are on 2.0.0.2 in a separate fib and there have another d

Re: Server with multiple public IP

2014-04-28 Thread Julian Elischer
replying to myself.. On 4/28/14, 6:11 PM, Julian Elischer wrote: On 4/28/14, 5:44 PM, Andrea Venturoli wrote: On 04/28/14 11:18, Andreas Nilsson wrote: You could put all the services which are on 2.0.0.2 in a separate fib and there have another default-route. Thanks, but unfortunately I ca

Re: Server with multiple public IP

2014-04-28 Thread Julian Elischer
On 4/28/14, 5:44 PM, Andrea Venturoli wrote: On 04/28/14 11:18, Andreas Nilsson wrote: You could put all the services which are on 2.0.0.2 in a separate fib and there have another default-route. Thanks, but unfortunately I can't, since some services must be able to answer on both addresses.

Re: Server with multiple public IP

2014-04-28 Thread Andrea Venturoli
On 04/28/14 11:16, Dominic Froud wrote: You want source-based routing. Thanks, that term will help me in my searches. I have this situation and I used pf(4) to do it with a rule like: pass out quick route-to ( vlan2 ) from 2.0.0.0/29 to any no state As a variation you can give an optiona

Re: Server with multiple public IP

2014-04-28 Thread Andrea Venturoli
On 04/28/14 11:18, Andreas Nilsson wrote: You could put all the services which are on 2.0.0.2 in a separate fib and there have another default-route. Thanks, but unfortunately I can't, since some services must be able to answer on both addresses. Maybe I could use socket in one fib to proxy

Re: Server with multiple public IP

2014-04-28 Thread Andreas Nilsson
On Mon, Apr 28, 2014 at 11:16 AM, Dominic Froud wrote: > On 28/04/2014 09:58, Andrea Venturoli wrote: > >> I've got a server which has two (or more) interfaces with public IPs. >> >> Let's say, as an example (with fictional IPs): >> ifconfig_vlan1="inet 1.0.0.2 netmask 255.255.255.248..." >> ifco

Re: Server with multiple public IP

2014-04-28 Thread Dominic Froud
On 28/04/2014 09:58, Andrea Venturoli wrote: I've got a server which has two (or more) interfaces with public IPs. Let's say, as an example (with fictional IPs): ifconfig_vlan1="inet 1.0.0.2 netmask 255.255.255.248..." ifconfig_vlan2="inet 2.0.0.2 netmask 255.255.255.248..." Of course, I can on