forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


FireWall source code DLL, can it be used with VDS?

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> Miscellaneous
View previous topic :: View next topic  
Author Message
marty
Professional Member
Professional Member


Joined: 10 May 2001
Posts: 789

PostPosted: Tue Apr 05, 2005 2:52 pm    Post subject: FireWall source code DLL, can it be used with VDS? Reply with quote

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 Wink

Thanks,
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Skit3000
Admin Team


Joined: 11 May 2002
Posts: 2166
Location: The Netherlands

PostPosted: Tue Apr 05, 2005 6:46 pm    Post subject: Reply with quote

As far as I can see, it is an ActiveX DLL, which you can't use in VDS right away. I think somebody needs to make a wrapper for it, or it should be recompiled as a normal DLL. Please correct me if I'm wrong here... Smile
_________________
[ Add autocomplete functionality to your VDS IDE windows! ]
Voor Nederlandse beginners met VDS: bekijk ook eens deze tutorial!
Back to top
View user's profile Send private message
ShinobiSoft
Professional Member
Professional Member


Joined: 06 Nov 2002
Posts: 790
Location: Knoxville, Tn

PostPosted: Tue Apr 05, 2005 10:41 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Tue Apr 05, 2005 11:58 pm    Post subject: Reply with quote

COOOOL!!!! Very Happy This sounds like it would be an AWESOME DLL!!

Personally I would love to see something like this for VDS. Thumbs Up

_________________
FreezingFire
VDSWORLD.com
Site Admin Team
Back to top
View user's profile Send private message Visit poster's website
marty
Professional Member
Professional Member


Joined: 10 May 2001
Posts: 789

PostPosted: Wed Apr 06, 2005 1:51 am    Post subject: Reply with quote

Cool..Thanks Bill! Smile
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
marty
Professional Member
Professional Member


Joined: 10 May 2001
Posts: 789

PostPosted: Wed Apr 06, 2005 1:56 am    Post subject: Reply with quote

na

Last edited by marty on Wed Apr 06, 2005 1:59 am; edited 1 time in total
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
marty
Professional Member
Professional Member


Joined: 10 May 2001
Posts: 789

PostPosted: Wed Apr 06, 2005 1:59 am    Post subject: Reply with quote

Forgot to post the description of this open source ActiveX Wink

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
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
vdsalchemist
Admin Team


Joined: 23 Oct 2001
Posts: 1448
Location: Florida, USA

PostPosted: Thu May 26, 2005 2:04 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Aslan
Valued Contributor
Valued Contributor


Joined: 31 May 2001
Posts: 589
Location: Memphis, TN USA

PostPosted: Thu May 26, 2005 2:30 am    Post subject: Reply with quote

Here's the website:
http://www.modemwall.com/tipfwhook.htm
Back to top
View user's profile Send private message Send e-mail
marty
Professional Member
Professional Member


Joined: 10 May 2001
Posts: 789

PostPosted: Thu May 26, 2005 11:56 am    Post subject: Reply with quote

First, I am really excited about this. The new Gadget is incredible! And cant wait for its official release. Wink

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 Wink
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Thu May 26, 2005 10:17 pm    Post subject: Reply with quote

I too am excited the new Gadget!!!! Very Happy

It would be really cool to build a firewall in VDS. Very Happy

_________________
FreezingFire
VDSWORLD.com
Site Admin Team
Back to top
View user's profile Send private message Visit poster's website
marty
Professional Member
Professional Member


Joined: 10 May 2001
Posts: 789

PostPosted: Fri May 27, 2005 12:43 am    Post subject: Reply with quote

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! Laughing

Just one thing Johnny:
Wave
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Fri May 27, 2005 10:05 pm    Post subject: Reply with quote

I have not tested the new version but I purchased the old one and am
looking forward to my upgrade to the new version Very Happy

_________________
FreezingFire
VDSWORLD.com
Site Admin Team
Back to top
View user's profile Send private message Visit poster's website
vdsalchemist
Admin Team


Joined: 23 Oct 2001
Posts: 1448
Location: Florida, USA

PostPosted: Sun May 29, 2005 4:55 pm    Post subject: Reply with quote

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 Wink 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
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> Miscellaneous All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group