ipfw

Read divert sockets in java?

If I was to create a ipfw divert rule to forward all FTP traffic to a specific socket, is it possible to use Java to connect to the socekt and read the packet information? If so, how would i go about reading/writing to the scoket? ...

Block Application access to network via a Cocoa API (LittleSnitch APIs)?

I am using OS X 10.5 and I am looking for a way to detect if an application attempts to access the Internet. At this point I would like to block the application if it matches a set of rules that I will define. There is the ipfw Unix command that I realise can be used to block access to certain ports, but that affects ALL applications. I...

How to add trusted sites to the Application Layer Filter (socket-filter firewall) on Mac OS X using command-line?

Hello, I am trying to add trusted sites to Mac OS X's firewall via command-line. I understand that previously, we were able to use ipfw to configure the firewall on a packet level by using port numbers or IPs. In Leopard (10.5) and on, there is a new feature to add a trusted application to a list. This can be accomplished using the U...

ipfw resetting after reboot

I added a rule in my ipfw a time ago and now I want to delete it. So i go: sudo ipfw flush And all user rules gets deleted. But everytime i restart the machine the rule is back again! I tried looking for some ipfw config file, but has not find anything. When I added the rule the first time i user WaterRoof (frontend for ipfw), could tha...