Unix Technical Forum

Re: Interface ranges in pf.conf (i.e. tun[0-10])

This is a discussion on Re: Interface ranges in pf.conf (i.e. tun[0-10]) within the lucky.openbsd.misc forums, part of the OpenBSD category; --> On 2/13/06, Ray Lai <ray@cyth.net> wrote: .... > In this example ifconfig(8) shows that I have groups ``lo'' and ...


Go Back   Unix Technical Forum > Unix Operating Systems > OpenBSD > lucky.openbsd.misc

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-17-2008, 06:05 PM
yary
 
Posts: n/a
Default Re: Interface ranges in pf.conf (i.e. tun[0-10])

On 2/13/06, Ray Lai <ray@cyth.net> wrote:
....
> In this example ifconfig(8) shows that I have groups ``lo'' and
> ``egress'', so in the pf.conf you can stick an interface group
> (almost?) anywhere you can stick an interface. (Actually there's
> a missing interface group in this example: ``enc''. I'm not sure
> if it's a bug in ifconfig(8).) You can also add your own groups
> using ifconfig(8).
>
> pf.conf(5) doesn't describe interface groups, but you can find a
> description in ifconfig(8) under ``group''.


fascinating. Seems like I could do away with macros for interface
names in pf.conf- create groups with my symbolic names for the various
links and use those instead. Then pf.conf doesn't have to change when
NICs change, just the hostname.if files (which have to change anyway.)
Though I fiddle with my pf.conf far more often than I replace NICs.

Now, can one use a group name to set up a pool? eg:
rdr on $ext_if proto tcp from any to any port 80 { httpd_ifs_group } round-robin

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 12:37 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com