Bug 169849

Summary: [libc] [patch] rsh/rlogin do not use the correct IP address
Product: Base System Reporter: Darern Reed <darrenr>
Component: kernAssignee: freebsd-bugs mailing list <bugs>
Status: Open ---    
Severity: Affects Only Me    
Priority: Normal    
Version: 9.0-STABLE   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description Darern Reed freebsd_committer 2012-07-14 10:30:03 UTC
The BSD r-commands, rsh, rlogin ,etc, do not use the same IP address
for the outgoing connection for stderr as the local server when running
ona a host with address aliases.

To explain this with an example...
Server A has IP addresses 1.2.3.4 and 1.3.4.5
Client B does "rsh 1.3.4.5 who"
Server A accepts the connection on port 514 for 1.3.4.5 and initiates a
connection back to Client B using IP address 1.2.3.4.

The outgoing connection should use the same IP address as was made for
the incoming TCP connection.

How-To-Repeat: 
use rsh from a client to a freebsd server with multiple addresses and
connect to an alias, noticing that the return connection does not
originate from the same source as the destination of the client.
Comment 1 Eitan Adler freebsd_committer freebsd_triage 2017-12-31 07:59:30 UTC
For bugs matching the following criteria:

Status: In Progress Changed: (is less than) 2014-06-01

Reset to default assignee and clear in-progress tags.

Mail being skipped