• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx

  • We are developing a new feature in Plesk that will help you promote your websites or business on social media. We want to conduct a one-hour online UX test to present the prototype and collect feedback. If you are interested in the feature, please book a meeting via this link.
    Thank you in advance!
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Question add IP Addresses to the Firewall module in bulk using import and export function?

nikketrikke

Basic Pleskian
Hello
iI need to add ip address for cdn to be whitelisted on firewall
so
I created a rule for cdn ip list with 2 enters on firewall... then exported via json the firewall rules and named file (original to have as backup)...then using a text editor like Notepad++ I search where the 2 addresses listed are and simply put one by one comma separated all the address i need to whitelist...saved json file
then imported again the modified file (json) into firewall and seems all rules are a their position loaded correctly
Possible so simple????
How can i check if that addresses are correctly whitelisted? there is a shh command to view

iptables -L INPUT -v -n | less

i tried and some addresses are listed not the ip6 exadecimal address
thanks
 
If you want to list all IPv6 rules you have to use the ip6tables utility instead. For example: ip6tables -L INPUT -v -n | less

Also, on a side note, manually exporting, editing and importing firewall rules seems kinda time consuming, There are CLI command to manage firewall rules too. Which might be an easier way to bulk add IP address to rules. More info can be found here: https://support.plesk.com/hc/en-us/...rules-using-Plesk-Firewall-in-Plesk-for-Linux
 
If you want to list all IPv6 rules you have to use the ip6tables utility instead. For example: ip6tables -L INPUT -v -n | less

Also, on a side note, manually exporting, editing and importing firewall rules seems kinda time consuming, There are CLI command to manage firewall rules too. Which might be an easier way to bulk add IP address to rules. More info can be found here: https://support.plesk.com/hc/en-us/...rules-using-Plesk-Firewall-in-Plesk-for-Linux
thanks for the suggestion I see ip6tables ...
i know how to add single rule as in your link but the problem is adding many ip address one by one... my trick of exporting modify and importing json is for adding in bulk so many ip addresses... i not found a real answer in this forum or over the web
only one answer in a ver difficult way...
my solution seems so simple but i notknow if correct due it is so intuitive but never reported here or on the web
can you tell me if correct
 
Back
Top