Welcome to the Comodo Forum
Welcome,
Guest
. Please
login
or
register
.
March 20, 2010, 11:50:27 AM
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
373209
Posts
41406
Topics
94100
Members
Latest Member:
johnwayne
more news...
Search:
Advanced search
|
Tag Cloud
Welcome to the Comodo Forum
Archived Boards
Discontinued Products
Comodo Firewall
Help for v2
Script to Backup CPF v2.4 firewall settings
« previous
next »
Pages:
1
...
5
6
[
7
]
8
9
...
11
Author
Topic: Script to Backup CPF v2.4 firewall settings (Read 97805 times)
Rotty
Global Moderator
Comodo's Hero
Offline
Posts: 899
http://www.venganza.org/ - Noodly Appendage
Re: Script to Backup CPF firewall settings
«
Reply #90 on:
February 02, 2007, 07:33:11 AM »
Mmm, an if statement. I love if statements (-: . Yes, that is a good idea.
Logged
The opinions expressed in my posts are my own.
They do NOT necessarily represent or reflect the views of my employer.
MortenMacFly
Newbie
Offline
Posts: 22
Re: Script to Backup CPF firewall settings
«
Reply #91 on:
February 02, 2007, 02:26:02 PM »
Quote from: panic on February 02, 2007, 05:27:29 AM
Nice mods to the script. One small suggested change (shown below in red),
Sure... go ahead. What I have changed is basically "all". The first thing was that the target path was for english OS'es only and "cluttered" over the whole script (not offending). So I used a variable to be setup at the beginning for easy modification of the backup target. All the rest is basically "code optimisation" (if you want to call it like that) by removing duplicate statements. So if you ask me for the lines I have changed, I'll answer "all". Do whatever you want to do with it... You can attach it to the first post as "v3" or something I don't really mind.
Quote from: Rotty on February 02, 2007, 07:33:11 AM
Mmm, an if statement. I love if statements (-: . Yes, that is a good idea.
In fact - I hate, if scripts don't error-check what could go wrong and terminate early and/or give you an error message you don't understand because it's from a tool you use.... ;-)
With regards, Morten.
Ps.: If you talk about Open Source - yes, I'm pretty active in the one or other OS projects... ;-)
Logged
Rotty
Global Moderator
Comodo's Hero
Offline
Posts: 899
http://www.venganza.org/ - Noodly Appendage
Re: Script to Backup CPF firewall settings
«
Reply #92 on:
February 02, 2007, 07:39:07 PM »
Before i was out of high-school i would have had time to really optimize the program... Personally if i was going to optimize it or make it professional i would have written it in anything that can be used to create a GUI.
Thank you for your contribution.
Just out of interest, what programming languages do you know?
Personally have done some programming in Delphi, VB6, Java, JavaScript, HTML and a very small amount of Unix scripting, Objective-C and now Windows scripting.
«
Last Edit: February 02, 2007, 07:42:49 PM by Rotty
»
Logged
The opinions expressed in my posts are my own.
They do NOT necessarily represent or reflect the views of my employer.
hilmi
Comodo Family Member
Offline
Posts: 98
Re: Script to Backup CPF firewall settings
«
Reply #93 on:
February 04, 2007, 07:12:19 PM »
Hey Rotty and Ewen,
First time I had the courage to use your great script (I could not try before in case i mock up stg)
version 1.5 and it worked. Thanks guys for great job, it saves a lot of time.
Hilmi
Logged
XP Pro SP2, cable modem, Nod32, SpyWall, COMODO
KajaK
Newbie
Offline
Posts: 8
Re: Script to Backup CPF firewall settings
«
Reply #94 on:
February 07, 2007, 06:21:19 AM »
Is there any way how to export/import just one specific rule?
Great work with that script gentlemans!
Logged
Rotty
Global Moderator
Comodo's Hero
Offline
Posts: 899
http://www.venganza.org/ - Noodly Appendage
Re: Script to Backup CPF firewall settings
«
Reply #95 on:
February 08, 2007, 02:15:29 AM »
If someone sends me a backed up .reg file (Please open the reg file with a text editor and make sure there is no personal info not that there should be, but just to make sure) i can find where everything is stored and create one for what you want it to do... (Assuming COMODO stored the entries in a logical fashion
)
Logged
The opinions expressed in my posts are my own.
They do NOT necessarily represent or reflect the views of my employer.
panic
Global Moderator
Comodo's Hero
Offline
Posts: 8105
substance constant, depth variable
Re: Script to Backup CPF firewall settings
«
Reply #96 on:
February 08, 2007, 05:28:09 AM »
Hey rotty,
If you have a look in the registry of your own PC, you'll see that the CFP NM rules are stored based on the numerical order that they appear in the CFP GUI. Bummer!
This is the main reason why I can provide pre-packaged rules for games as REG files, as AM rules follow the same logic. This uniqueness is why we need "named" rules, providing the rules are stored in the registry by name, rather than by number.
cheers,
ewen :-)
Logged
As your mums would say, "If you can't play nice with all the other kiddies, go home".
All users are asked to please read and abide by the
Comodo Forum Policy
.
If you don't like it, don't use the forum.
Rotty
Global Moderator
Comodo's Hero
Offline
Posts: 899
http://www.venganza.org/ - Noodly Appendage
Re: Script to Backup CPF firewall settings
«
Reply #97 on:
February 08, 2007, 05:34:53 AM »
Psst, i don't have COMODO Firewall installed in any PC i have access to.
Don't tell anyway !! LOL
That will change, just we had major comp problems and since i don't own a computer and use my parents, they are happy just having computers that work for now without anything going wrong (This seems like a blessing considering the problem we had at the time).
{Don't worry anyone using the script, the script gets some testing before releasing versions
}
Thanks for that info panic, i did not know that.
«
Last Edit: February 08, 2007, 05:44:07 AM by Rotty
»
Logged
The opinions expressed in my posts are my own.
They do NOT necessarily represent or reflect the views of my employer.
panic
Global Moderator
Comodo's Hero
Offline
Posts: 8105
substance constant, depth variable
Re: Script to Backup CPF firewall settings
«
Reply #98 on:
February 08, 2007, 06:22:56 AM »
Quote from: panic on February 08, 2007, 05:28:09 AM
Hey rotty,
If you have a look in the registry of your own PC, you'll see that the CFP NM rules are stored based on the numerical order that they appear in the CFP GUI. Bummer!
This is the main reason why I can't provide pre-packaged rules for games as REG files, as AM rules follow the same logic. This missing uniqueness is why we need "named" rules, providing the rules are stored in the registry by name, rather than by number.
cheers,
ewen :-)
Logged
As your mums would say, "If you can't play nice with all the other kiddies, go home".
All users are asked to please read and abide by the
Comodo Forum Policy
.
If you don't like it, don't use the forum.
Rotty
Global Moderator
Comodo's Hero
Offline
Posts: 899
http://www.venganza.org/ - Noodly Appendage
Re: Script to Backup CPF firewall settings
«
Reply #99 on:
February 08, 2007, 09:29:02 PM »
Yes, we need named rules in registry, where do we vote to have this implemented?
Logged
The opinions expressed in my posts are my own.
They do NOT necessarily represent or reflect the views of my employer.
benjamminzIS
Newbie
Offline
Posts: 5
Re: Script to Backup CPF firewall settings
«
Reply #100 on:
February 10, 2007, 01:54:14 PM »
Code:
[at]echo off
cls
set BACKUP_ROOT=%USERPROFILE%\Desktop\CPFBackup
echo ********************************************************
echo The settings are backed up to %BACKUP_ROOT%\CPFRUles.REG
echo Merge the "CPFrules.reg" file back, to restore settings
echo.
echo.
echo Please ensure that you have disabled CFP's registry protection
echo and set the firewall to "Allow All" before continuing.
echo ********************************************************
echo To start press enter. To quit press the "x" button on this window
pause >nul:
if not exist "%BACKUP_ROOT%" goto DoInit
if not exist "%BACKUP_ROOT%\Prior" goto DoInit
goto DoBackup
rem -----
:DoBackup
rem -----
echo Clearing oldest and storing previous backup... please wait.
if exist "%BACKUP_ROOT%\Prior\CPFRUles.REG" move /Y "%BACKUP_ROOT%\CPFRUles.REG %BACKUP_ROOT%\Prior\CPFRUles.REG" >nul:
goto DoSaveReg
rem ---
:DoInit
rem ---
echo Creating backup folders (initialising)... please wait.
if not exist "%BACKUP_ROOT%" md "%BACKUP_ROOT%"
if not exist "%BACKUP_ROOT%\Prior" md "%BACKUP_ROOT%\Prior"
rem ------
:DoSaveReg
rem ------
echo Archiving current rule set... please wait.
REGEDIT /E "%BACKUP_ROOT%\CPFRUles.REG" "HKEY_LOCAL_MACHINE\SYSTEM\Software\Comodo\Personal Firewall"
echo DONE!
echo Press any key to end
pause >nul:
copy paste this if you happen to use a "Documents and Settings" folder that isn't named such. (ie: mine is "C:\Profilez"
«
Last Edit: February 10, 2007, 02:19:32 PM by benjamminzIS
»
Logged
benjamminzIS
Newbie
Offline
Posts: 5
Re: Script to Backup CPF firewall settings
«
Reply #101 on:
February 10, 2007, 01:57:24 PM »
just noticed you will also need to replace "[at]" with the shift+2 symbol at the very top of the script. nice "feature" this site has, not checking to see if there are letters/numbers before and after to the symbol before replacing it with "[at]"
Logged
panic
Global Moderator
Comodo's Hero
Offline
Posts: 8105
substance constant, depth variable
Re: Script to Backup CPF firewall settings
«
Reply #102 on:
February 10, 2007, 04:19:22 PM »
Quote from: benjamminzIS on February 10, 2007, 01:57:24 PM
just noticed you will also need to replace "[at]" with the shift+2 symbol at the very top of the script. nice "feature" this site has, not checking to see if there are letters/numbers before and after to the symbol before replacing it with "[at]"
Ummm .......
It actually IS a feature.
The nutbags that spew forth all the spam you're getting - where do you think they get the lists of emaill addresses from? One place they get them is public forums like this one. They have specific apps that do what is known as "harvesting". The app automatically runs through forums, typically looking for the [at] symbol and grabbing the details either side of it. Voila, the email address innocently entered in a forum somewhere is now added to the spammers list.
Unfortunately the code that automatically replaces the symbol with "[at]" can't discriminate whether you have used "[at]" in an address or in another context - it just converts them all. Small price to pay to stop harvesting.
The need to replace "[at]" with the correct SHIFT-2 symbol was mentioned in this thread. Possible you missed this?
Hope this helps,
Ewen :-)
Logged
As your mums would say, "If you can't play nice with all the other kiddies, go home".
All users are asked to please read and abide by the
Comodo Forum Policy
.
If you don't like it, don't use the forum.
benjamminzIS
Newbie
Offline
Posts: 5
Re: Script to Backup CPF firewall settings
«
Reply #103 on:
February 10, 2007, 08:23:37 PM »
stop harvesting? haha... they just edit their scripts a little. Maybe slightly slower for them... but anyways... that's not what I was meaning specifically, I meant more that this script doesn't check for a valid email format before replacing the symbol... that was all, I know full well the reason why it replaces it... it's all moot point and was merely just a silly rant... at any rate I appreciate the script very much and have already used it! just wish there was a way to install comodo silent/unattended, that would make it PERFECT!
Logged
panic
Global Moderator
Comodo's Hero
Offline
Posts: 8105
substance constant, depth variable
Re: Script to Backup CPF firewall settings
«
Reply #104 on:
February 10, 2007, 08:31:49 PM »
Quote from: benjamminzIS on February 10, 2007, 08:23:37 PM
stop harvesting? haha... they just edit their scripts a little. Maybe slightly slower for them... but anyways... that's not what I was meaning specifically, I meant more that this script doesn't check for a valid email format before replacing the symbol... that was all, I know full well the reason why it replaces it... it's all moot point and was merely just a silly rant... at any rate I appreciate the script very much and have already used it! just wish there was a way to install comodo silent/unattended, that would make it PERFECT!
Even better would be a Comodo client stub on each PC on a LAN that could receive updates and config changes from a centralised "server". One noisy - everyone else silent. Stay tuned ....
Logged
As your mums would say, "If you can't play nice with all the other kiddies, go home".
All users are asked to please read and abide by the
Comodo Forum Policy
.
If you don't like it, don't use the forum.
Tags:
Pages:
1
...
5
6
[
7
]
8
9
...
11
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General Category
-----------------------------
=> Melih's Corner - CEO Talk/Discussions/Blog
=> Comodo.TV - Our Internet Video Channel
===> Comodo.TV - News and Announcements
===> Comodo.TV - Program Lineup
===> Audience Feedback and Suggestions
=> Which Product do you want Comodo to develop next?
=> How Can I Help Comodo? (Please We Need You!)
===> Report Comodo Forum / Web Site Issues
===> Please Tell Us Your Views and Vote Here!
===> Help Spread the Word - Banners and Logos
=> General Discussion (off topic) Anything and everything...
===> Member Confessions :-)
===> Funny Photos :-)
===> Cool Stuff
-----------------------------
Desktop Security Products & Services
-----------------------------
=> Comodo Internet Security - CIS
===> News / Announcements / Feedback - CIS
=====> Wishlist - CIS
===> AV False Positive/Negative Detection Reporting
===> Help - CIS
=====> Guides - CIS
=====> AntiVirus Help - CIS
=======> AntiVirus FAQ - CIS
=====> Firewall Help - CIS
=======> Firewall FAQ - CIS
=====> Defense+ / Sandbox Help - CIS
=======> Defense+ / Sandbox FAQ - CIS
=====> Install / Setup / Configuration Help - CIS
=======> Install / Setup / Configuration FAQ - CIS
===> Bug Report - CIS
=> Comodo Backup - CB
===> News / Announcements / Feedback - CB
===> Comodo Online Backup - COB
===> Help - CB
=====> FAQ - CB
=> Comodo Time Machine - CTM
===> News / Announcements / Feedback - CTM
===> Help - CTM
=====> FAQ - CTM
===> Bug Reports - CTM
=> Comodo Dragon - CD
===> News / Announcements / Feedback - CD
=====> Wishlist - CD
===> Help - CD
=====> FAQ - CD
===> Bug Reports - CD
=> Comodo Disk Encryption - CDE
===> News / Announcements / Feedback - CDE
=====> Wishlist - CDE
===> Help - CDE
=====> FAQ - CDE
===> Bug Reports - CDE
===> Beta Corner - CDE
=> Comodo Secure Email - CSE
===> News / Announcements / Feedback - CSE
===> Help - CSE
=====> FAQ - CSE
===> Bug Reports - CSE
=> Comodo EasyVPN - CEVPN
===> News / Announcements / Feedback - CEVPN
===> Help - CEVPN
=====> FAQ - CEVPN
===> Bug reports - CEVPN
=> Comodo AntiSpam - CAS
=> Comodo TrustConnect - CTC
=> HopSurf - CHS
=> Comodo Instant Malware Analysis Online - CIMA
=> Verification Engine - CVE
-----------------------------
Desktop Utilities & Services
-----------------------------
=> Comodo System Cleaner - File/Registry/Privacy Cleaner - CSC
===> News / Announcements / Feedback - CSC
===> Help - CSC
=====> FAQ - CSC
=> Comodo Cloud Scanner - CCS
===> News / Announcements / Feedback - CCS
===> FAQ - CCS
=> Live PC Support
-----------------------------
Business / Enterprise Security Products & Services
-----------------------------
=> Digital Certificates
===> Code Signing Certificate
===> Content Verification Certificate
===> Email Certificate
===> SSL Certificate
=> PCI DSS Compliance
=> Comodo Endpoint Security Manager
=> Two Factor Authentication for Web Applications
=> Trustlogo
=> Hacker Guardian
-----------------------------
Learn about Computer Security and Interact with Security Experts
-----------------------------
=> General Security Questions and Comments
=> Virus/Malware Removal Assistance
=> Leak Testing/Attacks/Vulnerability Research
=> Digital Certificates, Encryption and Digital Signing
=> Other Security Products
-----------------------------
International Comodo Forums
-----------------------------
=> International Comodo Forums
===> 汉语语言, 漢語語言 / Chinese Simplified, Traditional
===> Česky / Czech
===> Dansk / Danish
===> Nederlands / Dutch
===> Suomi / Finnish
===> Francais / French
===> Deutsch / German
===> ελληνικά / Greek
===> Magyar / Hungarian
===> Italiano / Italian
===> Nihongo / Japanese
===> Norsk / Norwegian
===> Polski / Polish
===> Português/Portuguese
===> Română / Romanian
===> По-русски / Russian
===> Slovenský / Slovak
===> Slovenščina / Slovenian
===> Espanol / Spanish
===> Svenska / Swedish
===> Turkce / Turkish
===> Українська / Ukrainian
===> Việt / Vietnamese
-----------------------------
Other
-----------------------------
=> Forum Policy Violation Board
-----------------------------
Archived Boards
-----------------------------
=> Discontinued Products
===> Comodo Anti-Viruspyware (CAVS)
=====> Help for Comodo AntiVirus
=====> FAQ for Comodo Anti-ViruSpyware
=====> Feedback/Comments/Announcements/News about CAVS
===> Comodo BOClean Anti-Malware
=====> Announcements
=====> Comodo BOClean Anti-Malware FAQ
===> Comodo Diskshield
===> Comodo Firewall
=====> Feedback/Comments/Announcements/News
=====> Help for v3
=====> Help for v2
=====> Frequently Asked Questions (FAQ) for Comodo firewall
=====> Comodo Firewall Translations
=====> Bug Reports
===> i-Vault
===> Launch Pad (Discontinued)
===> Comodo Meet (Web Conferencing Product) (Discontinued)
===> Comodo Memory Firewall(Buffer Overflow Protection)
=====> Comodo Memory Firewall Beta Corner
=====> Help
=====> Frequently Asked Questions (Comodo Memory Firewall)
=====> Feedback/Comments/Announcements/News
===> Safesurf
===> Trusttoolbar (Discontinued)
===> Trustfax (online faxing) (discontinued)
===> Trustix Enterprise Firewall
===> User Anywhere (Remote Access product) (Discontinued)
===> UserTrust - First Independent Website Rating - Empowering our users!
===> Comodo Vulnerability Analyzer - CVA
===> ZTL
Page created in 2.058 seconds with 21 queries.
Powered by SMF 1.1.11
|
SMF © 2006, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks
Design by
7dana.com