Home
Help
Search
Login
Register
OPNsense Forum
»
Archive
»
20.1 Legacy Series
»
Feature request: generate URL table alias from AS Numbers
« previous
next »
Print
Pages: [
1
]
Author
Topic: Feature request: generate URL table alias from AS Numbers (Read 3054 times)
aesth
Newbie
Posts: 17
Karma: 1
Feature request: generate URL table alias from AS Numbers
«
on:
February 21, 2020, 06:44:38 pm »
For example: Facebook, AS32934 being the ASN of company Facebook.
So opnsense would perform something like: "whois -h whois.radb.net -- '-i origin AS32934' | grep ^route" -> formats to iplist. Periodic updates.
Thanks for all the hard work.
Logged
hbc
Hero Member
Posts: 501
Karma: 47
Re: Feature request: generate URL table alias from AS Numbers
«
Reply #1 on:
February 22, 2020, 08:31:20 pm »
Just use
http://asn.blawk.net/
for your URL table
e.g.
http://asn.blawk.net/2906
zu get list of ASN 2906 networks (Netflix)
Logged
Intel(R) Xeon(R) Silver 4116 CPU @ 2.10GHz (24 cores)
256 GB RAM, 300GB RAID1, 3x4 10G Chelsio T540-CO-SR
siga75
Full Member
Posts: 185
Karma: 11
Re: Feature request: generate URL table alias from AS Numbers
«
Reply #2 on:
February 23, 2020, 08:21:43 am »
you can schedule something like
whois -h whois.radb.net -- '-i origin AS32934' | awk '/^route:/ {print $2}' | xargs pfctl -t facebook_networks -T replace
or using spf records
https://www.signorini.ch/content/opnsense-create-pftable-for-google-networks
Logged
https://www.signorini.ch
Protectli Pfsense Mi7500L6 Intel 7Th Gen Core I7 7500U 16Gb Ddr4 Ram
512Gb Msata Ssd
6 X Intel Gigabit Ethernet
aesth
Newbie
Posts: 17
Karma: 1
Re: Feature request: generate URL table alias from AS Numbers
«
Reply #3 on:
February 23, 2020, 05:47:35 pm »
These all seem like fine options, I will use asn.blawk.net for now.
It still seems like a neat feature to have in the GUI however.
Thanks.
«
Last Edit: February 23, 2020, 05:55:44 pm by aesth
»
Logged
siga75
Full Member
Posts: 185
Karma: 11
Re: Feature request: generate URL table alias from AS Numbers
«
Reply #4 on:
February 23, 2020, 06:35:44 pm »
that looks nice but it's updated in 2016
Logged
https://www.signorini.ch
Protectli Pfsense Mi7500L6 Intel 7Th Gen Core I7 7500U 16Gb Ddr4 Ram
512Gb Msata Ssd
6 X Intel Gigabit Ethernet
aesth
Newbie
Posts: 17
Karma: 1
Re: Feature request: generate URL table alias from AS Numbers
«
Reply #5 on:
February 23, 2020, 07:23:03 pm »
Yes, and no IPv6 support.
Logged
aesth
Newbie
Posts: 17
Karma: 1
Re: Feature request: generate URL table alias from AS Numbers
«
Reply #6 on:
May 25, 2020, 06:01:48 pm »
whois -h whois.radb.net -- '-i origin AS32934' | awk '/^route:/ {print $2}' | xargs pfctl -t facebook_networks -T replace
How would this command look if I wanted to output multiple ASN's to the same table?
Edit: Never mind, found a working solution.
«
Last Edit: May 26, 2020, 04:35:08 pm by aesth
»
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
Archive
»
20.1 Legacy Series
»
Feature request: generate URL table alias from AS Numbers