[ILUG] Security
Kenn Humborg
kenn at avalon.wombat.ie
Sun Jun 27 22:25:43 IST 1999
On Sun, Jun 27, 1999 at 01:14:15AM +0100, Ruairi Newman wrote:
>
> Just a quick security question for you all.
>
> What do you think would be the best method, in terms of both
> administration time as well as security and stability, to lock down
> individual tcp ports? i.e. The ports opened by the KPilot daemon,
> which I have had running since 2 hours after Kate mentioned it on the
> list on Friday (btw, thanks Kate, I'd been looking for something like
> that).
Ipfwadm is your friend. Man ipfw and ipfwadm
# ipfwadm -I -f # flush input rules
# ipfwadm -I -p accept # default input rule is to accept
# ipfwadm -I -a reject -P tcp -S 0.0.0.0/0 -D my.ip.3.4 6666
The last rule blocks packets from anywhere (0.0.0.0/0) to
port 6666 on your machine. If you use 'reject' an ICMP 'host
administratively unreachable' is sent back. If you use 'deny'
no ICMP response is sent.
Kenn
More information about the ILUG
mailing list