OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • English Forums »
  • General Discussion »
  • Alias URL Question
« previous next »
  • Print
Pages: [1]

Author Topic: Alias URL Question  (Read 2581 times)

tibere86

  • Guest
Alias URL Question
« on: February 02, 2018, 04:34:58 pm »
I am trying to add a URL based Alias ASN list to block all Google traffic. Not sure which option to use...URL (IP) or URL (IP Table).
Is there anyway to verify OPNsense resolves all listed subnets from URL?
Logged

onefix

  • Newbie
  • *
  • Posts: 7
  • Karma: 4
    • View Profile
Re: Alias URL Question
« Reply #1 on: February 03, 2018, 04:34:25 am »
I don't think OPNSense has an automated ASN lookup rule.  What I have done is create a script to output a number of requests / lists to an /opt file once a day.  The command would look like this:

whois -h whois.radb.net -- '-i origin AS15169' | grep -Eo "([0-9.]+){4}/[0-9]+" > /opt/aliases/google_ips

You should then simply create a rule URL Table (IPs) and point the first entry to /opt/aliases/google_ips
Logged

  • Print
Pages: [1]
« previous next »
  • OPNsense Forum »
  • English Forums »
  • General Discussion »
  • Alias URL Question
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2024 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2