Defining interface macros



  • Since upgrading from 1.2.3, I keep encountering the following
    php: : There were error(s) loading the rules: /tmp/rules.debug:13: macro 'WAN' not defined /tmp/rules.debug:13: syntax error /tmp/rules.debug:14: macro 'LAN' not defined /tmp/rules.debug:25: macro 'WAN' not defined /tmp/rules.debug:25: syntax error /tmp/rules.debug:26: macro 'WAN' not defined /tmp/rules.debug:76: macro 'WAN' not defined /tmp/rules.debug:76: syntax error /tmp/rules.debug:79: macro 'WAN' not defined /tmp/rules.debug:79: syntax error /tmp/rules.debug:80: macro 'WAN' not defined /tmp/rules.debug:84: macro 'LAN' not defined /tmp/rules.debug:84: syntax error /tmp/rules.debug:85: macro 'LAN' not defined /tmp/rules.debug:86: macro 'LAN' not defined /tmp/rules.debug:89: macro 'loopback' not defined /tmp/rules.debug:89: syntax error /tmp/rules.debug:90: macro 'loopback' not defined /tmp/rules.debug:98: macro 'WAN' not defined /tmp/rules.debug:98: syntax error /tmp/rules.debug:99: macro 'WAN' not defined /tmp/rules.debugūüíĮ macro 'WAN' not defined /tmp/rules.debug:101: macro 'WAN'

    Looking at the lines it seems none of my interfaces (LAN, WAN, loopback, openvpn) have a macro set and are not being set in /tmp/rules.debug

    head -15 /rules.debug

    Gateways

    GWWAN = " route-to ( fxp1 x.x.x.x ) "

    set loginterface fxp0                                                                                                 
    set optimization normal                                                                                               
    set limit states 35000                                                                                                 
    set limit src-nodes 35000

    set skip on pfsync0

    scrub in on $WAN all no-df  fragment reassemble                                                                       
    scrub in on $LAN all no-df  fragment reassemble
    <snip>I've done a factory reset to no avail and have searched through the forum for an answer. The closest was a similar issue with 1.3, but the fix (editing /etc/inc/filter.inc) doesn't appear relevant with 2.0. I've tried changing the name in Interfaces LAN/WAN as well.

    Am I missing where to assign the macro or is my install possibly corrupt?

    I'm currently running the below version and have tried several previous ones.
    Current version: 2.0-RC1
          Built On: Sat May  7 22:58:48 EDT 2011

    On i386</snip>


Log in to reply