SSH dnat
Hello everyone,
I'm trying to dnat SSH throught the firewall to an internal machine.
I use following Rule
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 2323 -j DNAT --to-destination internal_IP:2323
eth0 is connected to internet
The problem is that the connection is allrght it just seems that I don't get an answer from the ssh server. (I'm getting a connection timeout, ot a connection refused)
To be sure I don't filter anything, so all trafic is accepted
Can someone help me?
thx
Ronny
are you sure that your server is listening on port 2323?
The rule as i use it is:
iptables -t nat -A PREROUTING -p tcp --dport 2000 -i eth2 -j DNAT --to 10.10.10.1:22
the server is listening on port 22 of 10.10.10.1
reachable from externel on port 2000
grtn jeroen
----- Original Message -----
From: Ambor
To: [email protected]
Sent: Sunday, December 01, 2002 6:52 AM
Subject: SSH dnat
Hello everyone,
I'm trying to dnat SSH throught the firewall to an internal machine.
I use following Rule
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 2323 -j DNAT --to-destination internal_IP:2323
eth0 is connected to internet
The problem is that the connection is allrght it just seems that I don't get an answer from the ssh server. (I'm getting a connection timeout, ot a connection refused)
To be sure I don't filter anything, so all trafic is accepted
Can someone help me?
thx
Ronny
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.422 / Virus Database: 237 - Release Date: 20-11-2002
On Sun, 1 Dec 2002 15:52:02 +0100,
"Ambor" <[email protected]> wrote in message
<000801c29949$359d2a70$02a8a8c0@hades>:
Quoted 8 lines
Hello everyone,
I'm trying to dnat SSH throught the firewall to an internal machine.
I use following Ruleiptables -t nat -A PREROUTING -i eth0 -p tcp --dport 2323 -j DNAT --to-destination internal_IP:2323
Quoted 7 lines
eth0 is connected to internet
The problem is that the connection is allrght it just seems that I don't get an answer from the ssh server.(I'm getting a connection timeout, ot a connection refused)
To be sure I don't filter anything, so all trafic is accepted
..you and your internet ssh customers have ssh on port 2323 and not 22?
Signature · 4 lines
..med vennlig hilsen = with Kind Regards from Arnt... ;-) ...with a number of polar bear hunters in his ancestry... Scenarios always come in sets of three: best case, worst case, and just in case.
NAT + PSD
In reply to Jeroen van Leeuwenhi all
i install a new iptables version 1.27a to use a psd suport. but my network stop a Nat service ...
when a go back a 1.26 version , the NAT work ok !
any people has a problems that iptables do not do a NAT with PSD ??? thanks a lot
Alexandre
begin:vcard
n:da Silva Augusto;Alexandre
x-mozilla-html:FALSE
org:Secretaria de Estado dos Negocios da Fazenda;DTI - Departamento de Tecnologia da Informacao adr:;;;;;;
version:2.1
email;internet:[email protected]
title:Administrador de Sistemas Unix
x-mozilla-cpt:;3424
fn:Alexandre da Silva Augusto
end:vcard