Re: port forwarding with binding to specific IP on remote host
- From: Darren Tucker <dtucker@xxxxxxxxxxxxxxxx>
- Date: 24 Aug 2006 12:00:26 GMT
On 2006-08-14, Todd H. <comphelp@xxxxxxxxx> wrote:
Stefan Palme <kleiner@xxxxxxxxxxxxxxx> writes:
But I want it to see 10.0.0.21 as source IP.
Then you'll need to specify in your OS's routing tables that you want
traffic destined for .100 to go out eth0:1
Is it possible to solve this with pure ssh-magic, or do I have to
create iptables rules or special routing table entries for this?
I'm willing to be wrong about this, but don't think ssh has ability to
reach this far down into the tcp/ip stack to do what you want here
without some help from routing tables.
ssh or sshd could use the bind(2) system call to bind the local address
of the outgoing connection of the port forward to a given address ("ssh
-b" in OpenSSH does that for the ssh connection itself but there's no
equivalent for forwarded connections).
In general, I don't think there's provision in the ssh2 protocol to
specify the source address that the remote end should use for an outbound
forwarded connection.
--
Darren Tucker (dtucker at zip.com.au)
GPG key 8FF4FA69 / D9A3 86E9 7EEE AF4B B2D4 37C9 C982 80C7 8FF4 FA69
Good judgement comes with experience. Unfortunately, the experience
usually comes from bad judgement.
.
- References:
- port forwarding with binding to specific IP on remote host
- From: Stefan Palme
- Re: port forwarding with binding to specific IP on remote host
- From: Todd H.
- port forwarding with binding to specific IP on remote host
- Prev by Date: Re: scp in non-interactive sessions problem?
- Next by Date: How to log in as root w/o password?
- Previous by thread: Re: port forwarding with binding to specific IP on remote host
- Next by thread: Re: port forwarding with binding to specific IP on remote host
- Index(es):
Relevant Pages
|
|