Hi All

I'm currently building PF (packet filter) rules file on freebsd  using the 
example provided by "unit_copy_edit.cf". To identify the main network interface 
of the system, I'm trying to use the "sys.interface" variable in order to 
replace a keyword in a pf.conf file (in this case "INTERFACE0"). Cfengine 
successfully writes out the config file but somehow finds something completely 
wrong to be the main interface of the system, instead of something like "bce0" 
which ifconfig returns as the main network interface.

Running cf-agent in debug mode shows that cfengine correctly identifies the 
network interfaces of the system when discovering the system classes. So, my 
question is, what does "sys.interface" actually do, and is there a sys.x 
variable that will give me the first, second ... Nth network interface on my 
freebsd system?


Thanks in advance,
Traiano Welcome
________________________________
NOTE: This e-mail message and all attachments thereto contain confidential 
information intended for a specific addressee and purpose. If you are not the 
addressee (a) you may not disclose, copy, distribute or take any action based 
on the contents hereof; (b) kindly inform the sender immediately and destroy 
all copies hereof. Any copying, publication or disclosure of this message, or 
part hereof, in any form whatsoever, without the sender's express written 
consent, is prohibited. No opinion expressed or implied by the sender 
necessarily constitutes the opinion of MTN. This message does not constitute a 
guarantee or proof of the facts mentioned herein. No Employee or intermediary 
is authorised to conclude a binding agreement on behalf of MTN Group Limited, 
or any of its subsidiary companies, by e-mail without the express written 
confirmation by a duly authorised representative of MTN Group Limited.
_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to