Re: IPTables configuration for SSH
- From: Kalyan Manchikanti <kalyan.manchikanti@xxxxxxxxx>
- Date: 29 May 2007 18:24:26 -0700
On May 29, 7:00 am, David <david.goody...@xxxxxxxxx> wrote:
Hi all,
Im trying to pass through SSH through a firewall using IPTables. I
have got the passthrough working, however SSH does not still work.
I think it may be the following rule that is messing it up, could
anyone confirm this please:
Only allow connections inbound that are already established or related
through. All outbound are.
At the moment i can connect to the machine from inside the firewall so
i know ssh is running correct
I know port forwarding to a http server works, but to the ssh server
the connection times out?
Any ideas? Maybe people could send me the rules they use, for passing
SSH through to an internal machine?
Thanks in advance for your help and patience reading this
David
What does your "iptables -L" show?
How about flushing them once and trying,
iptables -A INPUT -p tcp --dport 22 -m state --state
ESTABLISHED,RELATED -j ACCEPT
iptables -A INPUT -p udp --dport 22 -m state --state
ESTABLISHED,RELATED -j ACCEPT
.
- References:
- IPTables configuration for SSH
- From: David
- IPTables configuration for SSH
- Prev by Date: Re: Linux TCP - unexpected retransmissions
- Next by Date: Re: Getting "ICMP Host redirect from gateway" response
- Previous by thread: IPTables configuration for SSH
- Next by thread: Getting "ICMP Host redirect from gateway" response
- Index(es):
Relevant Pages
|