[TriLUG] telnet from non-default ip
Aaron Schrab
aaron at schrab.com
Fri Oct 31 17:24:25 EDT 2008
At 17:08 -0400 31 Oct 2008, jason tower <jtower at cerient.net> wrote:
>server "mikey" with two public ip addresses 1.2.3.4 (eth0) and 1.2.3.5 (eth0:0).
> to troubleshoot something i need to telnet from mikey to some remote ip, but i
>want the source ip to be 1.2.3.5 instead of the default 1.2.3.4. the telnet
>client does not appear to support any such mechanism, and i can't turn
>off 1.2.3.4 as it is a production box. how can this be accomplished?
The telnet clients (in both the telnet and telnet-ssl packages) on
Debian and Ubuntu systems support specifying the source IP with the -b
option.
Also, netcat (also known as nc) allows this to be specified with the -s
option.
More information about the TriLUG
mailing list