| View previous topic :: View next topic |
| Author |
Message |
marty Professional Member


Joined: 10 May 2001 Posts: 789
|
Posted: Tue Apr 05, 2005 2:52 pm Post subject: FireWall source code DLL, can it be used with VDS? |
|
|
Hi,
I found the source code of a DLL made with Bordland C++, that gives the possibility to use in an application to build a firewall.
But unfortunatly I dont know C++ at all, and wondering if someone could look at it and see if we could use it with VDS. Maybe a DSU could be written of maybe the DLL could be converted to a VDS extension..
I tried with no luck.
Here is the link for the source, read the install.txt first.
http://www.extremesenses.com/vds/firewall.zip
That would be really cool to make a small firewall with VDS
Thanks, |
|
| Back to top |
|
 |
Skit3000 Admin Team

Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
|
| Back to top |
|
 |
ShinobiSoft Professional Member


Joined: 06 Nov 2002 Posts: 790 Location: Knoxville, Tn
|
Posted: Tue Apr 05, 2005 10:41 pm Post subject: |
|
|
Hi Marty,
I've downloaded the source code you posted. Let me look at it. Even if it is
an ActiveX dll as Skit suggests, it's still possible to compile it as a standard
dll. I have MS VC++ and Borland C++, so compiling it shouldn't be a
problem. _________________ Bill Weckel
ShinobiSoft Software
"The way is known to all, but not all know it." |
|
| Back to top |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Tue Apr 05, 2005 11:58 pm Post subject: |
|
|
COOOOL!!!! This sounds like it would be an AWESOME DLL!!
Personally I would love to see something like this for VDS.  _________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
| Back to top |
|
 |
marty Professional Member


Joined: 10 May 2001 Posts: 789
|
Posted: Wed Apr 06, 2005 1:51 am Post subject: |
|
|
Cool..Thanks Bill!  |
|
| Back to top |
|
 |
marty Professional Member


Joined: 10 May 2001 Posts: 789
|
Posted: Wed Apr 06, 2005 1:56 am Post subject: |
|
|
na
Last edited by marty on Wed Apr 06, 2005 1:59 am; edited 1 time in total |
|
| Back to top |
|
 |
marty Professional Member


Joined: 10 May 2001 Posts: 789
|
Posted: Wed Apr 06, 2005 1:59 am Post subject: |
|
|
Forgot to post the description of this open source ActiveX
| Quote: | # Firewall Hook ActiveX is our another free and open source ATL/COM component based on "Windows Firewall-Hook Driver" technology. The component is composed of two parts: the Firewall Kernel and the ATL/COM Component.The ATL/COM Component is a wrapper .dll file for developers to easily configure and manage firewall's operation through any ActiveX enabled development environment. The firewall engine is a windows kernel driver which registers a callback function to windows firewall hook driver accessible through "\device\IP". The firewall: captures TCP/IP traffic from all of the network interfaces, including dial-up RAS/PPP adapters,
# supports static packet filtering for TCP/UDP/ICMP/IP protocols, filters packets according to direction of the network traffic i.e inbound/outbound traffic is analyzed seperately,
# has a very flexible rules language which, for example, supports full blockage according to TCP flags. |
and also another open source project from the same author:
http://www.torry.net/vcl/internet/other/ipfwlite.zip
IP Firewall Lite ATL v.1.4
IP Firewall Lite is a free and open source ATL/COM component based on "Windows Filter-Hook Driver" technology. The component is composed of two parts:
the Firewall Kernel and the ATL/COM Component.The ATL/COM Component is a wrapper .dll file for developers to easily configure and manage firewall's operation through any ActiveX enabled development environment. The firewall engine is a windows kernel driver which registers a callback function to windows filter hook driver.
# The firewall: captures TCP/IP traffic from all of the network interfaces, including dial-up RAS/PPP adapters,
# supports static packet filtering for TCP/UDP/ICMP/IP protocols,
# has a very flexible rules language which, for example, supports full blockage according to TCP flags. |
|
| Back to top |
|
 |
vdsalchemist Admin Team

Joined: 23 Oct 2001 Posts: 1448 Location: Florida, USA
|
Posted: Thu May 26, 2005 2:04 am Post subject: |
|
|
Marty,
I got this ActiveX control and driver working with Gadget but it's OnLog event only shows that the connection was dropped. It's not showing the source IP? Is it supposed to show the source IP? Do you have the documentation for it's rules language? _________________ Home of
Give VDS a new purpose!
 |
|
| Back to top |
|
 |
Aslan Valued Contributor


Joined: 31 May 2001 Posts: 589 Location: Memphis, TN USA
|
|
| Back to top |
|
 |
marty Professional Member


Joined: 10 May 2001 Posts: 789
|
Posted: Thu May 26, 2005 11:56 am Post subject: |
|
|
First, I am really excited about this. The new Gadget is incredible! And cant wait for its official release.
I looked at the C++ code, (cant really understand it of course) but I found this for the event OnLog:
| Code: | class CProxy_ITIPFirewallEvents : public IConnectionPointImpl<T, &DIID__ITIPFirewallEvents, CComDynamicUnkArray>
{
//Warning this class may be recreated by the wizard.
public:
HRESULT Fire_OnLog(BSTR bstrMessage)
{
CComVariant varResult;
T* pT = static_cast<T*>(this);
int nConnectionIndex;
CComVariant* pvars = new CComVariant[1];
int nConnections = m_vec.GetSize();
for (nConnectionIndex = 0; nConnectionIndex < nConnections; nConnectionIndex++)
{
pT->Lock();
CComPtr<IUnknown> sp = m_vec.GetAt(nConnectionIndex);
pT->Unlock();
IDispatch* pDispatch = reinterpret_cast<IDispatch*>(sp.p);
if (pDispatch != NULL)
{
VariantClear(&varResult);
pvars[0].vt = VT_BSTR;
pvars[0].bstrVal = bstrMessage;
DISPPARAMS disp = { pvars, NULL, 1, 0 };
pDispatch->Invoke(0x1, IID_NULL, LOCALE_USER_DEFAULT, DISPATCH_METHOD, &disp, &varResult, NULL, NULL);
}
}
delete[] pvars;
return varResult.scode; |
But there isnt much doc unfortunatly for this ActiveX.
Hope this helps.
My guess its that this event logs ips or something.. but dont know for sure
And many thanks !
We need to discuss something also on IM about Gadget  |
|
| Back to top |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Thu May 26, 2005 10:17 pm Post subject: |
|
|
I too am excited the new Gadget!!!!
It would be really cool to build a firewall in VDS.  _________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
| Back to top |
|
 |
marty Professional Member


Joined: 10 May 2001 Posts: 789
|
Posted: Fri May 27, 2005 12:43 am Post subject: |
|
|
FF, dont know if I am going to get slap on the fingers, but the new Gadget is sooooo powerfull. Dragonsphere did an excellent work on this. It will be THE extension to buy! Beleive me!
The world of possibilities are so cool! Ok.. I am getting over excited here!
Just one thing Johnny:
 |
|
| Back to top |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Fri May 27, 2005 10:05 pm Post subject: |
|
|
I have not tested the new version but I purchased the old one and am
looking forward to my upgrade to the new version  _________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
| Back to top |
|
 |
vdsalchemist Admin Team

Joined: 23 Oct 2001 Posts: 1448 Location: Florida, USA
|
Posted: Sun May 29, 2005 4:55 pm Post subject: |
|
|
FF,
Beta testing will be starting soon. You will be getting an email with details and information about beta testing.
For all of those people that purchased the old version of Gadget you will be getting an email from me about beta testing the new version before I release it officially.
Marty, No your not going to get your fingers slapped now that I am so close to finishing. If this was over 6 months ago you may have gotten lashes but since the developement of the DLL has officially ended and I am writting demos, documentation, bug fixes, and developing the new web site it's ok if you comment here and there.
To get back to the subject. I have made a work around in Gadget to handle the OnLog event properly. I have posted a bug report here http://www.vdsworld.com/forum/viewtopic.php?p=27104#27104 about this issue. _________________ Home of
Give VDS a new purpose!
 |
|
| Back to top |
|
 |
|