Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 14 Apr 1998 13:14:57 -0700
From:      Julian Elischer <julian@whistle.com>
To:        spork <spork@cncn.com>
Cc:        fbsdqs <freebsd-questions@FreeBSD.ORG>
Subject:   Re: IPFW
Message-ID:  <3533C3C1.41C67EA6@whistle.com>
References:  <Pine.BSF.3.96.980414160653.570A-100000@pigstuy>

next in thread | previous in thread | raw e-mail | index | archive | help
Spike Gronim wrote:
> 
> Hello.
> 
>         Just for practice I am configuring a fire wall on my computer. I
> don't need one, but I want to get the experience under my belt. I have a
> shell script I wish to execute to set up the rules to my firewall.
> it reads:
> 
> #!/bin/sh
> 
> ipfw add deny tcp from localhost to panix.com
> ipfw add deny tcp from panix.com to localhost
> ipfw add allow ip from any to any

add line numbers after the word 'add'
you are not telling the system where to insert the rules.

> 
>  I have shell access on panix.com and can therefore attempt to test my
> firewall from their machinces. ipfw ignores the first two commands, so my
> firewall ends up looking like this:
> 
> 00000 allow ip from any to any
> 65534 deny ip from any to any
> 
> What is wrong with my first two rules? Thank you.
> 
>         -Spike Gronim
>          spork@cncn.com
> 
>                 "Hacker, n: One who hacks real good"
>                         --Computer Contradictionary
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-questions" in the body of the message

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3533C3C1.41C67EA6>