Hi !
Lets say I have a section like this in my pf.conf....
LAN_INT="xl1"
INTERNET_INT="em0"
ALL_INTERFACES="{" $LAN_INT $INTERNET_INT "}"
And a hostname.em0 that looks like this....
inet 200.200.200.200 255.255.255.224 NONE
inet alias 200.200.200.201 255.255.255.224 NONE
In Solaris I can create a hostname.hme0 and a hostname.hme0:1.
But How do I separate the inteface names in OpenBSD so I can easily use
variables like the one I specified in the pf.conf above. Everywere in the
pf.conf that em0 is used it takes both addresses, and I want to use them
differently.
For example... I do not want $INTERNET_INT to be expanded to two IP addresses
below...
--snip--
nat on $INTERNET_INT from $LAN_INT:network to any -> $INTERNET_INT
pass in log quick on $INTERNET_INT inet proto tcp from any to
$INTERNET_INT port { 22 } flags S/SA keep state
--snip--
Maybe the only way is to do it like below in pf.conf...
INTERNET_INT_IP_1="200.200.200.200"
INTERNET_INT_IP_2="200.200.200.201"
But I prefer if possible to NOT specify to much IP:s in my pf.conf.
Suggestions ?
Thanks in advance
--
Per-Olov Sj�holm
Flowsystems