Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Mac OS X > Firewall terminal command needed

Firewall terminal command needed
Thread Tools
Senior User
Join Date: Aug 2003
Status: Offline
Reply With Quote
Dec 31, 2003, 11:40 PM
 
In using Apple’s Firewall, does anyone know the precise terminal command to allow to and from access from a specific ip address? Thanks!
     
Grizzled Veteran
Join Date: Feb 2003
Status: Offline
Reply With Quote
Jan 1, 2004, 04:09 AM
 
It is ipfw.
     
Mac Elite
Join Date: May 2001
Location: Earth
Status: Offline
Reply With Quote
Jan 1, 2004, 09:12 AM
 
sudo ipfw add allow ip from x.x.x.x to any
sudo ipfw add allow ip from any to x.x.x.x

where x.x.x.x is an ip address.
     
kevs  (op)
Senior User
Join Date: Aug 2003
Status: Offline
Reply With Quote
Jan 1, 2004, 12:03 PM
 
Thanks Pat!

Is there an official place I can see that command listed. Someone else said it was:

udo /sbin/ipfw add 3000 allow tcp from 1.2.3.4 20-21 to any via any in
sudo /sbin/ipfw add 3010 allow tcp from 1.2.3.4 1024-65535 to any via any in


I'd really like to see this command listed somewhere definitively.

Further, I have a firewall on to make sure no one gets into my computer -- whatever that means... If I were to check the "allow ftp access" and leave that on permanently to allow, would I be comprising my computer in any way? The guy at my ftp host does not think I would.

Lastly, it seems the Apple FW goes off once in awhile, says, "firewall unavailable, there is a firewall alreay installed on your machine", do you know what causes that?
     
Mac Elite
Join Date: Feb 2001
Location: Sitting in front of computer
Status: Offline
Reply With Quote
Jan 1, 2004, 01:10 PM
 
just check the ipfw man page, that'll have it listed definitively.

'man ipfw'


revs
I free'd my mind... now it won't come back.
     
kevs  (op)
Senior User
Join Date: Aug 2003
Status: Offline
Reply With Quote
Jan 1, 2004, 01:47 PM
 
thanks!
Is there a url for that? I've never heard of it yet.
     
Mac Elite
Join Date: Dec 2002
Location: Bay Area of San Jose
Status: Offline
Reply With Quote
Jan 1, 2004, 04:09 PM
 
Originally posted by kevs:
thanks!
Is there a url for that? I've never heard of it yet.
In the terminal type ipfw man
     
Mac Elite
Join Date: Apr 2002
Location: Illinois
Status: Offline
Reply With Quote
Jan 1, 2004, 07:31 PM
 
Originally posted by Dex13:
In the terminal type ipfw man
Other way around me-thinks

Open up the Application "Terminal" In the Utilities folder in Applications

wait for it to finish starting up, then type
Code:
man ipfw
There will be a technical manual on how to use the ipfw firewall.
     
kevs  (op)
Senior User
Join Date: Aug 2003
Status: Offline
Reply With Quote
Jan 1, 2004, 09:45 PM
 
thanks King bob:
not eveyone know what man means. I thoght he was saying man, like bro. It's a manual.

Unfortunately, not much or easy, but I don't speak Greek or latin either.

Let me try this question again:

In just opening the firewall port to ftp, and leaving it open all the time, would you be comprimising your security?
     
Professional Poster
Join Date: Mar 2000
Location: New York, NY, USA
Status: Offline
Reply With Quote
Jan 2, 2004, 12:19 AM
 
Originally posted by kevs:
thanks King bob:
not eveyone know what man means. I thoght he was saying man, like bro. It's a manual.

Unfortunately, not much or easy, but I don't speak Greek or latin either.

Let me try this question again:

In just opening the firewall port to ftp, and leaving it open all the time, would you be comprimising your security?
Depends if that port is tied to a service which can be exploited. Opening ports 21 and 22, for instance, and having FTP running on your machine, could lead to an exploit of some sort.
     
Forum Regular
Join Date: Aug 2001
Status: Offline
Reply With Quote
Jan 2, 2004, 02:00 AM
 
Originally posted by kevs:
Lastly, it seems the Apple FW goes off once in awhile, says, "firewall unavailable, there is a firewall alreay installed on your machine", do you know what causes that? [/B]
this only happens when you've manually entered some ipfw settings in the terminal or if some other app has.


-justin
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 10:43 AM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2