How is an application 'like' a firewall, but not a firewall ? If you have no idea how to write this, then you should go to the jobs board and pay someone to do it. Or buy something htat does what you need. A forum reply is the wrong place for someone to be expected to tell you everything there is to know about how to do a project. you can search this forum for firewall, I think it gets asked a lot ( despite how many firewalls are on the market ), perhaps someone knows a link to some code and posted it.
I guess you were too
lazy[
^] to bother searching this site before posting here ?