Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Aug 2006 11:42:59 -0400
From:      "SigmaX asdf" <fydernix@gmail.com>
To:        freebsd-stable@freebsd.org
Subject:   IPFW rules
Message-ID:  <c04d7e300608210842u33ec9e86gaa2d98deab69b145@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
I'm trying to setup IPFW to block all ports except those I specify.
For starters I'm just opening SSH.

# ipfw list
00050 divert 8668 ip4 from any to any via rl0
00100 allow ip from any to any via lo0
00200 deny ip from any to 127.0.0.0/8
00300 deny ip from 127.0.0.0/8 to any
00301 allow log tcp from any to any dst-port 22
00399 deny ip from any to any
65000 allow ip from any to any
65535 deny ip from any to any

Traffic is still blocked on port 22 -- I can't login via SSH.  What am
I doing wrong, and what rule should I be using to allow SSH in and
through?

SigmaX



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