[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: SSH & iptables



On Sun, May 24, 2009 at 11:12:04PM +0200, Pawel Cholewinski wrote:
> Hello
> I want to filter traffic on SSH server. I want to ACCEPT only SSH trafic  
> on SSH server computer. Packet SSH which receive and send should be  
> ACCEPT. Other traffic should be DROP. Which protocol I must use. I know  
> that port nr 22 is used default.
> So, what I must type to do this?


thats simple

iptables -A INPUT -p tcp --dport 22 -j ACCEPT
iptables -A INPUT -j DROP

but that will not work how you expect (don't implement it remotely )


>
> Thanks
> pch0317
>
>
>
>

-- 
"My views are one that speaks to freedom."

	- George W. Bush
01/29/2004
Washington, DC

Attachment: signature.asc
Description: Digital signature


Reply to: