Linux Netfilter discussions
 help / color / mirror / Atom feed
From: "Jeroen van Leeuwen" <omzig@hetnet.nl>
To: Ambor <ambor@alternity.net>, netfilter@lists.netfilter.org
Subject: Re: SSH dnat
Date: Sun, 1 Dec 2002 10:44:18 -0800	[thread overview]
Message-ID: <000c01c29969$a8617410$0a0a0a0a@windblows> (raw)
In-Reply-To: 000801c29949$359d2a70$02a8a8c0@hades

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

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: netfilter@lists.netfilter.org 
  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

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

  reply	other threads:[~2002-12-01 18:44 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-12-01 14:52 SSH dnat Ambor
2002-12-01 18:44 ` Jeroen van Leeuwen [this message]
2002-12-03 14:19   ` NAT + PSD Alexandre
2002-12-01 19:16 ` SSH dnat Arnt Karlsen
  -- strict thread matches above, loose matches on Subject: below --
2002-12-01 19:06 hard__ware
2002-12-03 20:48 Andrew Magnus

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='000c01c29969$a8617410$0a0a0a0a@windblows' \
    --to=omzig@hetnet.nl \
    --cc=ambor@alternity.net \
    --cc=netfilter@lists.netfilter.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox