[Bug 1916] Wish: support multiple alternative hostnames for a given host alias (useful with NAT)
bugzilla-daemon at bugzilla.mindrot.org
bugzilla-daemon at bugzilla.mindrot.org
Fri Aug 12 10:25:57 EST 2011
https://bugzilla.mindrot.org/show_bug.cgi?id=1916
Darren Tucker <dtucker at zip.com.au> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |dtucker at zip.com.au
--- Comment #3 from Darren Tucker <dtucker at zip.com.au> 2011-08-12 10:25:57 EST ---
I've used a ProxyCommand to do this kind of thing, eg:
Host example1
ProxyCommand ~/bin/multiconnect %h %p
then have whatever logic you like in the shell script and use netcat or
similar to actually make the connection:
#!/bin/sh
if ifconfig eth0 | grep -q '192\.168\.0\.'
then
exec nc 192.168.0.1 %p
else
exec nc example1.no-ip.org %p
fi
--
Configure bugmail: https://bugzilla.mindrot.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
You are watching someone on the CC list of the bug.
More information about the openssh-bugs
mailing list