Sign up ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

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.