Forum Discussion
danielc
Cirrus
Jul 11, 2022Mass input/create "Data group list" ?
Hello, Would you please let me know if there is any way to input/create data group in bigup not via the GUI? I am going to create 300+ data group list Thanks
- Jul 14, 2022
Thanks, I already solved this problem by myself and I have already created 300+ data groups.
I just wonder why nobody let me know I can create data group by tmsh command....
create /ltm data-group internal d1051_ip_dc type ip records add { 172.2.3.1/32 {} 172.2.3.2/32 {} }With this command I just able to use excel to lookup the IP address and automatically generate 300+ tmsh commands in one go....then hola....solved.
In the /config/namedb/malwaredomains.zones file the domain entries are like this below example:
zone "zyvwh.ru" {type master; file "/etc/namedb/blockeddomain.hosts"; };
the /etc/namedb/blockeddomain.hosts file is the same for each blackholed domain. It is this that then contains the IP etc it will resolve to. Here is the content of mine (anonymised) - the 1.16.209.141 is where all blackholed requests get resolved to:
; This zone will redirect all requests back to the blackhole itself.
$TTL 3600 ; one day
@ IN SOA at1gtm.domain.com. hostmaster.at1gtm.domain.com. (
1
3600 ; refresh 8 hours
3600 ; retry 2 hours
3600 ; expire 10 days
3600 ) ; min ttl 1 day
NS ph1gtm.domain.com.
NS AT1PROGTM1.domain.net.
A 1.16.209.141
* IN A 1.16.209.141
I recommend checking out:
http://www.pintumbler.org/Code/dnsbl
and the SANS/dshield
http://www.whitehats.ca/main/members/Seeker/seeker_sinkhole/Seeker_DNS_Sinkhole.html
http://isc.sans.edu/diary.html?storyid=9037
To be honest I had meant to extract the sans script for pulling the list of in to the right format for bind as my multiple uses of sed is very painful. If you use wget to pull the list from the sites you may need to spoof the user agent as some of the sites block wget/curl
Hope the above helps
Matt
- Jason_NanceMay 24, 2018
Nimbostratus
You almost had it!
pool = mgmt.tm.ltm.pools.pool.load(partition='Common', name='mypool') pool.members_s.members.create(partition='Common', name='mynodename:80')
The secret sauce is in the overloaded
argument - it is really "node_name:service_port".name
The above adds an existing node called "mynodename" to the pool and sets its service port to 80.
- dani_martinez_2May 25, 2018
Nimbostratus
OK! That's right I forgot the port, Thanks!!
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects