Re: blocking port 22 with ipfw
From: dD (daisy_ysiad@hotmail.com)Date: 01/09/02
- Next message: Joe Beasley: "Re: blocking port 22 with ipfw"
- Previous message: Theresa Tucker: "blocking port 22 with ipfw"
- In reply to: Theresa Tucker: "blocking port 22 with ipfw"
- Next in thread: Joe Beasley: "Re: blocking port 22 with ipfw"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: dD <daisy_ysiad@hotmail.com> Date: Wed, 09 Jan 2002 16:14:27 GMT
"Theresa Tucker" <tatucker@tc.umn.edu> wrote in
news:uRZ_7.32$za2.8660@news7.onvoy.net:
> I am trying to block port 22, sshd, to everyone but a select few on a
> unix server.
>
> This is the command line I am using but it doesn't work
>
> ipfw add 100 deny log all from any to 22
ipfw add 100 deny log tcp from any to any 22
or like
ipfw add 100 deny log tcp from any to UR_IP_HERE 22
> ipfw add 200 allow all from xxx.xxx.xxx.0/24 to 22
ipfw add 200 allow tcp from xxx.xxx.xxx.0/24 to any/UR_IP_HERE 22
i think, been awhile since i've used ipfw
and i think u need to put them the other way around, allow first, then the
deny
- Next message: Joe Beasley: "Re: blocking port 22 with ipfw"
- Previous message: Theresa Tucker: "blocking port 22 with ipfw"
- In reply to: Theresa Tucker: "blocking port 22 with ipfw"
- Next in thread: Joe Beasley: "Re: blocking port 22 with ipfw"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|