Results 1 to 5 of 5

Thread: Boolean Rules?

  1. #1
    Newbie
    Join Date
    Dec 2020
    Posts
    3

    Default Boolean Rules?

    My google-fu probably needs some work, but I have not been able to find a way to use OR options within rules. Does the Untangle even support such a rule?

    I have several websites and services that use multiple points of entry, depending on the service. For example:

    Description: Super Complex Site with Multiple Services
    HTTP Hostname: abc.com
    OR
    HTTP Hostname: xyz.com
    OR
    Host Hostname= blah AND Protocol = UDP AND Destination Port = xxxxx
    Host Hostname= blah AND Protocol = TCP AND Destination Port = yyyyy

    The last two filters work fine as independent rules, but I'd prefer to use boolean operators to concatenate and make my rules more efficient...and have fewer of them.


    Thanks in advance,
    Carl

  2. #2
    Untangle Ninja jcoehoorn's Avatar
    Join Date
    Mar 2010
    Location
    York, NE
    Posts
    1,838

    Default

    In some cases, you can use tags for this (tag IS X AND Protocol = UDP AND Destination Port = xxxxx). Then apply the tag to multiple items you need.

    I'm not sure that will work for hostname, though.
    Five time Microsoft ASP.Net MVP managing a Lenovo RD330 / E5-2420 / 16GB with Untangle 16.2 to protect 500Mbits for ~450 residential college students and associated staff and faculty

  3. #3
    Untangle Ninja sky-knight's Avatar
    Join Date
    Apr 2008
    Location
    Phoenix, AZ
    Posts
    25,808

    Default

    Each rule line is connected to the rest with a logical AND

    Each value in a given line is connected with a logical OR

    Beware NOT, it doesn't always do what you think it does.
    Rob Sandling, BS:SWE, MCP
    NexgenAppliances.com
    Phone: 866-794-8879 x201
    Email: support@nexgenappliances.com

  4. #4
    Newbie
    Join Date
    Dec 2020
    Posts
    3

    Default

    Quote Originally Posted by sky-knight View Post
    Each rule line is connected to the rest with a logical AND

    Each value in a given line is connected with a logical OR

    Beware NOT, it doesn't always do what you think it does.

    So if I understand correctly:


    Description: Super Complex Site with Multiple Services
    HTTP Hostname: abc.com xyz.com 123.com
    Protocol: = UDP TCP
    Destination Port:= xxxxx yyyy


    Is this a valid rule, with AND connecting the individual lines, and the OR connecting each (space separated) value within a line?

  5. #5
    Untangler jcoffin's Avatar
    Join Date
    Aug 2008
    Location
    Sunnyvale, CA
    Posts
    9,475

    Default

    HTTP Hostname will not accept multiple values. Also multiple values are separ
    Last edited by jcoffin; 03-02-2021 at 10:56 AM.
    Attention: Support and help on the Untangle Forums is provided by
    volunteers and community members like yourself.
    If you need Untangle support please call or email support@untangle.com

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

SEO by vBSEO 3.6.0 PL2