Linux Netfilter discussions
 help / color / mirror / Atom feed
* ssh
@ 2002-06-24 12:23 Daniel Sercaianu
  2002-06-24 13:31 ` ssh Antony Stone
  0 siblings, 1 reply; 14+ messages in thread
From: Daniel Sercaianu @ 2002-06-24 12:23 UTC (permalink / raw)
  To: netfilter

[-- Attachment #1: Type: text/plain, Size: 138 bytes --]


Hello,

How can I drop ssh packets for destination hosts to which destination port is unknown and different from 22/tc?.


Daniel

[-- Attachment #2: Type: text/html, Size: 734 bytes --]

^ permalink raw reply	[flat|nested] 14+ messages in thread
* ssh
@ 2003-01-14 19:59 Simpson, Doug
  0 siblings, 0 replies; 14+ messages in thread
From: Simpson, Doug @ 2003-01-14 19:59 UTC (permalink / raw)
  To: 'netfilter@lists.netfilter.org'

I have acomputer I want to ssh to from the internet.  What is the IPTABLES
command to open this port?
Thanks,
Doug


^ permalink raw reply	[flat|nested] 14+ messages in thread
* RE: ssh
@ 2003-01-14 21:28 Simpson, Doug
  2003-01-15 12:09 ` ssh Zander
  2003-01-15 18:44 ` ssh MAB
  0 siblings, 2 replies; 14+ messages in thread
From: Simpson, Doug @ 2003-01-14 21:28 UTC (permalink / raw)
  To: 'netfilter@lists.netfilter.org'

whoops - forgot this is a dual homed computer and I am opening the eth0 to
the outside world for ssh.
I did find this - 
iptables -A INPUT -p tcp --syn --destination-port 22 -j ACCEPT
iptables -A INPUT -p tcp --syn -j DROP
this confuses me because of the "DROP" and the "--syn"
Thanks,
Doug

-----Original Message-----
From: Simpson, Doug 
Sent: Tuesday, January 14, 2003 1:59 PM
To: 'netfilter@lists.netfilter.org'
Subject: ssh


I have acomputer I want to ssh to from the internet.  What is the IPTABLES
command to open this port?
Thanks,
Doug


^ permalink raw reply	[flat|nested] 14+ messages in thread
* ssh
@ 2004-07-14 14:15 IT Clown
  2004-07-14 14:25 ` ssh Koyama Mituru
  0 siblings, 1 reply; 14+ messages in thread
From: IT Clown @ 2004-07-14 14:15 UTC (permalink / raw)
  To: netfilter

Hi All

How do i allow ssh in from the internet, thanks?

Regards
_____________________________________________________________________
For super low premiums ,click here http://www.dialdirect.co.za/quote


^ permalink raw reply	[flat|nested] 14+ messages in thread
* RE: ssh
@ 2004-07-14 15:26 Piszcz, Justin Michael
  2004-07-14 15:42 ` ssh Antony Stone
  2004-07-14 15:57 ` ssh Koyama Mituru
  0 siblings, 2 replies; 14+ messages in thread
From: Piszcz, Justin Michael @ 2004-07-14 15:26 UTC (permalink / raw)
  To: Koyama Mituru, netfilter

Should all incoming ports that relate to a service such as SSH, FTP use
-m state --state NEW? 

I have never used this with iptables; but I remember using it with
ipfilter.

What are the security implications (if any) of not using -m state
--state NEW?



-----Original Message-----
From: netfilter-admin@lists.netfilter.org
[mailto:netfilter-admin@lists.netfilter.org] On Behalf Of Koyama Mituru
Sent: Wednesday, July 14, 2004 10:26 AM
To: netfilter@lists.netfilter.org
Subject: Re: ssh

From: "IT Clown" <iptables@mailbox.co.za>
Subject: ssh
Date: Wed, 14 Jul 2004 16:15:22 +0200

> How do i allow ssh in from the internet, thanks?

iptables -A INPUT -p tcp --dport 22 -m state --state NEW -j ACCEPT

-- 
Koyama Mituru    netfilter@gvelo.ddnn.jp



^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2004-07-14 16:07 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-06-24 12:23 ssh Daniel Sercaianu
2002-06-24 13:31 ` ssh Antony Stone
2002-06-24 13:47   ` ssh Maciej Soltysiak
2002-06-24 13:56     ` ssh Ramin Alidousti
  -- strict thread matches above, loose matches on Subject: below --
2003-01-14 19:59 ssh Simpson, Doug
2003-01-14 21:28 ssh Simpson, Doug
2003-01-15 12:09 ` ssh Zander
2003-01-15 18:44 ` ssh MAB
2004-07-14 14:15 ssh IT Clown
2004-07-14 14:25 ` ssh Koyama Mituru
2004-07-14 15:26 ssh Piszcz, Justin Michael
2004-07-14 15:42 ` ssh Antony Stone
2004-07-14 15:57 ` ssh Koyama Mituru
2004-07-14 16:07   ` ssh Antony Stone

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox