Re: remote/reverse port forward,

This is a discussion on Re: remote/reverse port forward, within the OpenSSH Development forums, part of the Networking and Network Related category; On Tue, Feb 26, 2008 at 07:41:18PM -0500, bulk88 wrote: > Note: most but not all of this ...


Go Back   Usenet Forums > Networking and Network Related > OpenSSH Development

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-27-2008
William Ahern
 
Posts: n/a
Default Re: remote/reverse port forward,

On Tue, Feb 26, 2008 at 07:41:18PM -0500, bulk88 wrote:
> Note: most but not all of this message is about OpenSSH
>
> When I do a remote forward (port on server listens for incoming
> traffic, traffic gets forwarded to port that is listening on client),
> the source IPs of all the incoming connections in the server app on
> the client machine are 127.0.0.1/localhost. Using "-v", I can see that
> sshd passes the IP addresses of what computers connected to the sshd's
> port that forwards to the client. The client does not use/set the
> originating information when connect.

<snip>
> clientloop.c to forward the originating IP I think. I am not an expert
> at programing or C or posix OSes so my implementation theories and
> analysis might be faulty.


So, you're worried about a user who has a shell (or at least a local account
w/ forwarding privileges) accessing services as a local user, but not so
much about letting such users spoof other arbitrary IP addresses?

More over, in order to use raw sockets, or use any of the others tricks
(which may or may not be available), the process must have root privileges.
But, in OpenSSH these forwards are done from a process with the UID of the
user.

OpenSSH does support TUN/TAP (emulated network device). But this isn't
something you normally allow arbitrary users to manipulate. And, in any
event, it requires root permissions.

On other other hand, on OpenBSD you can define packet filter rules based on
the UID of the connecting process. PF has been ported to various systems,
but I'm not sure if this ability works elsewhere.

_______________________________________________
openssh-unix-dev mailing list
openssh-unix-dev@mindrot.org
https://lists.mindrot.org/mailman/li...enssh-unix-dev
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 09:56 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0