How can I import an IP List into a USG310 via shell script
I created a Python script to import the IPs and format them as per what I can find out, However that's where I seems to be stuck, im unable to create a working shell script .zysh to import said IPs, any help would really be appreciated.
The Zyxel in Question is a USG310, and even though its EOL its a solid piece of kit.
Here's what i done so far:
#
!
object-group service CC2
description CommandControl IPs
address-object cc1 1.221.179.74
address-object cc2 100.10.72.114
address-object cc3 100.4.182.242
address-object cc4 102.156.115.75
address-object cc5 102.156.192.103
address-object cc6 102.156.234.92
address-object cc7 102.156.6.123
address-object cc8 102.157.165.228
address-object cc9 102.159.177.74
address-object cc10 102.159.81.188
…
address-object cc486 98.147.155.235
address-object cc487 98.163.227.79
address-object cc488 98.187.21.2
address-object cc489 98.4.43.111
!
Any help greatly appreciated.
Best Answers
-
Hi @cfts_ea,
Enter the following commands in a file and save it as zysh. Then upload the zysh file to USG310 and apply it.
configure terminal
address-object cc1 1.221.179.74
address-object cc2 100.10.72.114
address-object cc3 100.4.182.242
address-object cc4 102.156.115.75
address-object cc5 102.156.192.103
address-object cc6 102.156.234.92
address-object cc7 102.156.6.123
address-object cc8 102.157.165.228
address-object cc9 102.159.177.74
address-object cc10 102.159.81.188…
address-object cc486 98.147.155.235
address-object cc487 98.163.227.79
address-object cc488 98.187.21.2
address-object cc489 98.4.43.111
writeBest regards,
EmilyDon't miss this great chance to upgrade your Nebula org. For free!
0 -
Hi @cfts_ea,
configure terminal
object-group address CC2
address-object cc1
address-object cc2
...
address-object cc128
exit
writeNote: On USG310, the maximum address object in one address group is 128.
Best regards,
EmilyDon't miss this great chance to upgrade your Nebula org. For free!
0
All Replies
-
Hi @cfts_ea,
Enter the following commands in a file and save it as zysh. Then upload the zysh file to USG310 and apply it.
configure terminal
address-object cc1 1.221.179.74
address-object cc2 100.10.72.114
address-object cc3 100.4.182.242
address-object cc4 102.156.115.75
address-object cc5 102.156.192.103
address-object cc6 102.156.234.92
address-object cc7 102.156.6.123
address-object cc8 102.157.165.228
address-object cc9 102.159.177.74
address-object cc10 102.159.81.188…
address-object cc486 98.147.155.235
address-object cc487 98.163.227.79
address-object cc488 98.187.21.2
address-object cc489 98.4.43.111
writeBest regards,
EmilyDon't miss this great chance to upgrade your Nebula org. For free!
0 -
Thanks Emily, your a star. :)
One question, is the a way to add the above to a object group 'CC2'?0 -
Hi @cfts_ea,
configure terminal
object-group address CC2
address-object cc1
address-object cc2
...
address-object cc128
exit
writeNote: On USG310, the maximum address object in one address group is 128.
Best regards,
EmilyDon't miss this great chance to upgrade your Nebula org. For free!
0 -
Thank you, all is clear now, I can now implement my own blocks list with reasonable ease, i looks at how to automate the updates later.
0
Categories
- All Categories
- 414 Beta Program
- 2.3K Nebula
- 132 Nebula Ideas
- 92 Nebula Status and Incidents
- 5.4K Security
- 183 USG FLEX H Series
- 258 Security Ideas
- 1.4K Switch
- 71 Switch Ideas
- 1K Wireless
- 37 Wireless Ideas
- 6.2K Consumer Product
- 237 Service & License
- 374 News and Release
- 79 Security Advisories
- 24 Education Center
- 5 [Campaign] Zyxel Network Detective
- 2.9K FAQ
- 34 Documents
- 34 Nebula Monthly Express
- 80 About Community
- 69 Security Highlight