Jump to content

Recommended Posts

Posted

hi,

 

I'm not that strong with macs but I have the following task I need to complete.

I want to stop our macs comunicating directly with our default gateway or upstream proxy.

Messing with the gateway itself is out of the question unfortunately.

 

Can anyone advide how to block any communuication with

172.16.1.254

using iptables or the mac version of iptables.

 

Thanks

Posted

Hi.

Go into terminal and type:

 

sudo ipfw list

 

This will show the current firewall settings. It will probably read:

 

65535 allow ip from any to any

 

Then type:

 

sudo ipfw deny ip from YOUR_IP to 172.16.1.254

 

That should do it. Type 'sudo ipfw list' again to check.

If it doesn't work, Type 'sudo allow ip from any to any' again to put it back.

  • Thanks 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...