DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: IDEA: script or a little app to update ipsec policies from a text file  (Read 13,408 times)

quantumrider

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 18
Hi,

I really need this one =)

A script or a little app to update ipsec policies from a text file. Here is a sample text file:

128.254.124.60|128.254.124.60|128.254.124.60|128.254.124.60

and so on, a single line with different ip addresses separated by some character.

basically the idea is to create an ipsec rule with the ip address and date of creation as name, blocking all ports and all protocols to and from the ip.

then the rule would be deleted at next run if 7 days elapsed, for example.

I do have some commandline text that creates the rules and removes them, I'm just confused by it =)

also I work with asp on iis, so the asp generates the list, there is no component that I know off that would allow me to edit the ipsec rules from asp.

let me know what you think, or if you know alternative, please.

thanks,
ark

Original address: https://www.donationcoder.com/forum/index.php?topic=659.0