On Mon, Aug 04, 2014 at 08:39:10PM +0200, Christophe wrote:
> Hi misc@,
> 
> I was wondering about the behavior of OpenBSD in this case (not a
> production case at this time).
> 
> 2 WAN interfaces (Ethernet / IPv4 DHCP) , linked to an OpenBSD box and 1
> LAN interface (Ethernet / IPv4 static address)
> 
> WAN1 (em0 DHCP) -----
>                      |--- OpenBSD ----- LAN (em2 static)
> WAN2 (em1 DHCP) -----
> 
> DHCP is providing a default gateway for the 2 WAN interfaces (and can
> potentially change).
> 
> First of all :
> If only "dhcp" is specified in /etc/hostname.em[0|1] files, which of
> these interfaces will provide the default gateway ? Is there a
> precedence in this case ?

Maybe giving one of your interfaces a lower "priority" could solve this
problem in a simple setup?

> 
> Otherwise, is there anyway to specify a routing table in /etc/hostname.X
> while using DHCP ?
> 
> Second question :
> I used to write route-to and reply-to rules in pf.conf in a static context.
> As far as I've seen, there are modifiers on interface specifications
> like :network or :peer. But is there a :gateway or something similar
> telling pf to use the defaut gateway learned by DHCP on the specified
> interface ?
> 
> Thanks and regards,
> Christophe.

Reply via email to