Ask Different is a question and answer site for power users of Apple hardware and software. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am new to ipfw, my requirement is like that, once application launches,i need to read the certain application parameter and depending upon them, i should be able to allow some site and block others,

I am thinking of using ipfw as its i might need to run them in admin privilege,

the reason behind choose is its always giving me static ip ""

assuming , i want to allow and block all other site, this is what i have tried ,

sudo ipfw flush
sudo ipfw add allow ip from me to
sudo ipfw add allow tcp from me to 
sudo ipfw add deny tcp from me to any 
sudo ipfw add deny ip from me to any 

but its blocking site also,

Are these rules correct or any correction required ?

share|improve this question
Are you able to connect to directly? – patrix Dec 23 '11 at 12:38
if i do ping it connects,but if in the browser i type it doesn't work – Rohan Bhatia Dec 23 '11 at 12:49

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.