carp / ip aliases

2004-04-14 Thread Tobias Wigand
hi,

i am thinking of to replacing my single firewall setup with a failover 
pair using carp/pfsync. right now it´s one box with 3 nics 
(internal/external/dmz). i am natting the dmz hosts on the external 
interface 1:1, thus have a lot of ip aliases on the external interface. 
so, is it possible to give the carp interface aliases? if it is, whats 
the syntax?

cheers
tobias


Re: carp / ip aliases

2004-04-14 Thread Ryan McBride
On Wed, Apr 14, 2004 at 09:34:06AM +0200, Tobias Wigand wrote:
 i am thinking of to replacing my single firewall setup with a failover 
 pair using carp/pfsync. right now it?s one box with 3 nics 
 (internal/external/dmz). i am natting the dmz hosts on the external 
 interface 1:1, thus have a lot of ip aliases on the external interface. 
 so, is it possible to give the carp interface aliases? if it is, whats 
 the syntax?

Yes, just add them as if the carp interface was your physical interface.

/etc/hostname.carp0:
inet 192.168.6.1 255.255.255.0
inet alias 192.168.6.2 255.255.255.0
inet alias 192.168.6.3 255.255.255.0
inet alias 192.168.6.4 255.255.255.0