Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 31 Jan 2001 21:43:43 -0600
From:      Tim DeBoer <deboert@cornhusker.net>
To:        questions@FreeBSD.ORG
Subject:   Newbie fun with natd/ipfw
Message-ID:  <4.3.2.7.2.20010131212130.00a8a6c0@mail.cornhusker.net>
In-Reply-To: <bulk.73226.20010131090404@hub.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi Everyone,
I'm trying to get natd/ipfw to work properly.
I did a custom kernel with the following options (Yes, it's using the new 
kernel)
options         IPFIREWALL              # ipfw-firewall support
options         IPFIREWALL_VERBOSE      # optional
options         IPFIREWALL_FORWARD      # optional
options         IPFIREWALL_VERBOSE_LIMIT=100    # limit verbosity
options         IPDIVERT                # divert sockets (for natd)

When I try to block all telnet traffic to this interface, I get...
# ipfw add deny tcp from any to 192.168.0.1 23
ipfw: getsockopt(IP_FW_ADD): Protocol not available

IP_FW_ADD????
I haven't seen that option anywhere in the docs, or am I not reading this 
correctly?

Anyway, if I follow some advice from the archives; previous questions 
related to this...
# kldload ipfw
kldload: can't load ipfw: Operation not permitted

If I try to see my current rule set (none, I know)
# ipfw show
ipfw: getsockopt(IP_FW_GET): Protocol not available
Again, I haven't seen that option anywhere in the docs, am I still not 
reading this correctly?

Can anyone point me in the right direction here?

Thanks!

Tim DeBoer
http://www.snarfy.com

It is by caffeine alone I set my mind in motion.
It is by the beans of Java that thoughts acquire speed, the hands acquire 
shaking,
the shaking becomes a warning.
It is by caffeine alone I set my mind in motion.



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?4.3.2.7.2.20010131212130.00a8a6c0>