From: Karl Fischer <karl.fischer@quantum.com>
To: eth <eth@finsiel.ro>
Cc: netfilter@lists.samba.org
Subject: Re: DNAT w ssh tunnel
Date: Fri, 21 Jun 2002 09:49:46 +0200 [thread overview]
Message-ID: <3D12DA9A.E2C585BC@atlp.de> (raw)
In-Reply-To: 3D12D59E.6020709@finsiel.ro
eth wrote:
>
> Hi listers.
>
> I try to make a simple tunnel for a jdbc connection with port forward from
> one machine to another via a firewall.
>
> |client| --Inet--> |firewall| --LAN--> |database|
>
> The client runs a ssh client with port forwarding to the firewall machine.
> On the fw I have the "simpleproxy" which is a tcp proxy that forwards all
> local sockets to a remote host. Yet I thought I should do a:
>
> iptables -t nat -A OUTPUT -d 194.226.254.1 -p tcp -m tcp --dport 1521 -j
> DNAT --to-destination 192.168.10.100:1521
>
> ... which should do the fw->database port forward trick; it doesn't. :-|
Hi,
you don't even need to use netfilter's port-forwarding and also no
simpleproxy. SSH does all the job on it's own and most secure too ...
on the client you use:
ssh -L 1521:192.168.10.100:1521 user@firewall
then your database frontend on the client should be able to connect to
the database using the localhost interface 127.0.0.1:1521 - that's it.
Regards
- Karl
prev parent reply other threads:[~2002-06-21 7:49 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-06-21 7:28 DNAT w ssh tunnel eth
2002-06-21 7:49 ` Karl Fischer [this message]
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=3D12DA9A.E2C585BC@atlp.de \
--to=karl.fischer@quantum.com \
--cc=eth@finsiel.ro \
--cc=netfilter@lists.samba.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.