Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

A question for Rllibby, maybe some delphi experts can answer

Posted on 2010-11-12
6
Medium Priority
?
953 Views
Last Modified: 2012-05-10
About your firewall code(S), that blocks ip address, web address

The way I test on windows XP?, it's fine.
I test on Windows 7, it's not good.

q1:
iS there a WAY to use the firewall code in windows 7?

q2:
And 1 thing I've see in the code, after blocking a few ip address or web address?, it can't unblock.  (the firewall code(s) that you have distributed has no unblock procedure, isn't it?)


Thanks
0
Comment
Question by:systan
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
6 Comments
 
LVL 26

Expert Comment

by:Russell Libby
ID: 34127890
Sorry, not really sure what code you are referring to. There is no code distribution on my site for anything "firewall" related, though I have posted code here regarding IP usage/blocking. If you are referring to code here on EE, please post a link to it. Also keep in mind that anything I wrote in Delphi was done years ago, and before Win7. If its not working now, then I would suggest adding error checking into the code to determine exactly what API calls are failing.

Russell

 
 
0
 
LVL 14

Author Comment

by:systan
ID: 34128124
hi

Does this code don't do unblock? it only blocks? y/n?
http://www.experts-exchange.com/Programming/Languages/Pascal/Delphi/Q_20829690.html#10343841


And also it can't be used in windows 7?
But is there a possible way to use that code for windows 7?
Would you share some steps if it is possible.


Thanks
0
 
LVL 26

Expert Comment

by:Russell Libby
ID: 34128353
1.) The code as written does not handle unblocking. As stated in the original Q, I provided source to add IP filters, but recommended that it be wrapped in a class to allow unblocking, additional functionality, etc. The outbound handle(s) can be obtained in a call to PfAddFiltersToInterface, and then later passed to PfRemoveFilterHandles to remove them.

2.) No, it can't be used in Vista/Win7. This API is deprecated (notice I wrote this 6 1/2 years ago) and is now replaced with the Windows Filtering Platform API:

http://msdn.microsoft.com/en-us/library/Aa364943
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
LVL 14

Author Comment

by:systan
ID: 34129499
rllibby?
What are the possible c headers that I WILL convert to Delphi using windows 7 Filtering Platform APi?, just like unit [fltdefs] in windows xp/2003.
0
 
LVL 26

Accepted Solution

by:
Russell Libby earned 500 total points
ID: 34129578

fwpmu.h
fwpmtypes.h


0
 
LVL 14

Author Closing Comment

by:systan
ID: 34130419
Thanks llibby
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
Suggested Courses

604 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question