03-27-2009 10:53 AM
Hi to all. Anyone knows how to create a sort of firewall with LabVIEW? I'd like to block access to a third party software of some of ports and manage and forward the message on my own. I need to built a sort of a gateway/firewall. I have a NMS (Network Management System) and I don't want that NMS to deal with SNMP devices directly but through my software.
Thank you in advance
Solved! Go to Solution.
03-27-2009 11:37 AM
03-31-2009 03:09 AM
Hi.
I want LabVIEW to act as a firewall because my NMS has some limitations (snmpV1 only) and I want to extend its features with LabVIEW. I need to pass all packets through LV before reaching my NMS and viceversa. LV will process the information before sending it.
Hmm winpcap, I heard this name when I installed wireshark! I'll check.
Thanks03-31-2009 03:32 AM
03-31-2009 01:12 PM
What you are basically looking to do is to have LabVIEW act as a proxy server. In essence you have to have LabVIEW listen constantly on a TCP/IP port, and to analyze the packets and determine whether they should be passed along. Your clients have to be configured to use a proxy server set to the IP address for the computer that's running the LabVIEW program and to the port that the LabVIEW program is listening on.
This is a complicated affair. I would suggest looking into just getting a third-party proxy server that you can easily configure to do what you want.
04-01-2009 02:34 AM
A proxy it is not a bad idea, but I don't want just to block or pass the packets. I want also to modify the information. For example: my NMS accepts SNMPv1 only so I'd like to transform SNMPv2 messages into v1. I don't think that third party proxy servers can handle this.
So I can build an application acting listenning on specific ports and set this application as a proxy server (on IE settings)...not a bad idea!
May the proxy server run on the same PC with my client?
04-01-2009 09:24 AM
Yes, the proxy server can be on the same machine.
If you go down this route then I would suggest considering doing this in another language. LabVIEW is great and all, but it's not suitable for all tasks. I think this would be one task in which you'd probably be better off programming in another language that is capable of dealing with raw packets.
04-08-2009 04:29 AM
04-08-2009 04:32 AM
04-08-2009 08:53 AM