Simulating Firewalls in OMNeT++

371 views
Skip to first unread message

sajal...@gmail.com

unread,
Jun 29, 2015, 4:01:42 AM6/29/15
to omn...@googlegroups.com
Hi,

I would like to know how to simulate firewalls in OMNeT++. Any help/leads in this regard will be highly appreciated.

Thanks,

Rudolf Hornig

unread,
Jul 1, 2015, 4:44:27 AM7/1/15
to omn...@googlegroups.com, sajal...@gmail.com
I don't know any existing firewall module, but a pointer:

As firewalls usually implemented using the iptables feature in Linux, the same mechanism exists in INET (i.e. there are hooks in the IPv4 module where you can instruct the IP layer to drop packets  on specific conditions.)


Take a look how different routing algorithms use the feature (e.g. GPSR routing): https://github.com/inet-framework/inet/blob/master/src/inet/routing/gpsr/GPSR.cc
Sajal

Shaikha Al-Khuder

unread,
Feb 8, 2016, 7:40:33 AM2/8/16
to OMNeT++ Users, sajal...@gmail.com, Alfonso Ariza Quintana, Levente Mészáros
I have a major problem that's affecting my simulation results:
I'm using "bloom filters" to know if this a duplicate packet or not. I added them to UDPBasicApp. Basically this how they should be working:
if (BloomArray.contains(msg))
     drop(msg);
else
   BloomArray.Add(msg);
   //process msg normally

My question:
How can I do this? It should be trivial but I cannot get it done.
Attached is my UDPBasicApp.cc & UDPBasicApp.h
UDPBasicApp.cc
UDPBasicApp.h
Reply all
Reply to author
Forward
0 new messages