Go Back   The macosxhints Forums > OS X Help Requests > Networking



Reply
 
Thread Tools Rate Thread Display Modes
Old 01-21-2002, 11:04 PM   #1
sean
Prospect
 
Join Date: Jan 2002
Posts: 9
blocking port over LAN

so, say i want to block a certain port (e.g., 3245). to do this, i type, "sudo ipfw add 0 deny udp from any to any 3245" in the terminal. the problem is that i have to do this each time i start up. i have tried brickhouse or something like that and lost complete internet connection -- in other words, that wasn't a viable option for this user.

i tried blocking this port on my linksys router, but it doesn't seem to apply it from computer to computer in the LAN. is there such a thing as an applescript being placed in the login list of programs to start up automatically or will i have to type this in the terminal each time? any other potential solutions?
__________________
-sean
sean is offline   Reply With Quote
Old 01-22-2002, 05:22 AM   #2
cram
Prospect
 
Join Date: Jan 2002
Location: Paris, France
Posts: 2
Why not BrickHouse ?

You should give another try to BrickHouse (or another ipfw front-end). It does exactly what you want to do... and if you want to install only your rule, it's also possible to remove all the default rules.

By the way, there is no reason to lose all connectivity with those default rules : the "only" thing they do is prevent "from the outside" connection.
cram is offline   Reply With Quote
Old 01-22-2002, 02:44 PM   #3
Novajo
Triple-A Player
 
Join Date: Jan 2002
Location: Toronto, Canada
Posts: 185
ipfw blocking both incoming and outgoing connections

Regarding ipfw: it can block both incoming and outgoing connections if you want it to. When you set up a rule, you can apply it to incoming packets with "in"

/sbin/ipfw add allow ip from any to any in via en0

or outgoing packets with "out":

/sbin/ipfw add allow ip from any to any out via en0

A bit more details here.
Novajo is offline   Reply With Quote
Old 01-22-2002, 07:42 PM   #4
1701E
Prospect
 
Join Date: Jan 2002
Posts: 5
This website had a nice article on configuring ipfw to start on boot, and hence negate the issue of having to retype your block on the port every time. Perhaps you'll find it useful.

http://wopr.norad.org/articles/firewall/

I should note that the part that will interest you is about 4 clicks into the article on http://wopr.norad.org/articles/firewall/booting.html

If you havn't read this article I'd really recommend it.
__________________
-Joseph

Last edited by 1701E; 01-22-2002 at 07:44 PM.
1701E is offline   Reply With Quote
Old 01-23-2002, 08:35 PM   #5
sean
Prospect
 
Join Date: Jan 2002
Posts: 9
thanx guys...just what i needed.
__________________
-sean
sean is offline   Reply With Quote
Old 01-25-2002, 12:21 AM   #6
sean
Prospect
 
Join Date: Jan 2002
Posts: 9
hmmm. can someone look at my link and see if you see my problem? TIA.
Click here please
__________________
-sean
sean is offline   Reply With Quote
Old 01-02-2009, 01:38 PM   #7
diamondblast
Prospect
 
Join Date: Sep 2008
Posts: 5
thanks a lot i also didn't manage with blocking some ports;
this was a very usefull link
diamondblast is offline   Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting 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

Forum Jump


All times are GMT -5. The time now is 11:35 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Site design © Mac Publishing LLC; individuals retain copyright of their postings
but consent to the possible use of their material in other areas of Mac Publishing LLC.