Networking Forums

Networking Forums > Computer Networking > Linux Networking > port trick

Reply
 
 
oguz@ce.yildiz.edu.tr
Guest
Posts: n/a

 
      03-24-2006, 02:47 PM
Hi,
Basically I want to be able to connect to different programs from the
same network port. The differentiation may be with, e.g., username,
with url,... etc.

so assume I want to use port 22 with username joe to connect ssh, but
username jack should connect to ftp with the same port.

I guess there must be a programme that will listen on 22, collect the
info from incoming request, and connect incoming request to the
approppriate programme. There must be such a killer already isnt it?

Is already there such a program, any ideas? thx.

 
Reply With Quote
 
 
 
 
Douglas Mayne
Guest
Posts: n/a

 
      03-24-2006, 03:39 PM
On Fri, 24 Mar 2006 07:47:15 -0800, oguz wrote:

> Hi,
> Basically I want to be able to connect to different programs from the
> same network port. The differentiation may be with, e.g., username,
> with url,... etc.
>
> so assume I want to use port 22 with username joe to connect ssh, but
> username jack should connect to ftp with the same port.
>
> I guess there must be a programme that will listen on 22, collect the
> info from incoming request, and connect incoming request to the
> approppriate programme. There must be such a killer already isnt it?
>
> Is already there such a program, any ideas? thx.
>

That is non-standard. AFAIK, servers start listening on the port they
will service. The sever can use the standard port numbers (22 for ssh) or
they can use another (2222 for ssh).

In your case you are talking about the port moving around depending
upon who is at the door. Just one question: suppose joe wants to connect
while jack is connected. Which server will be active at that moment?

There is also a thing called port knocking. Maybe that is closer to
what you want. STFG.

--
Douglas Mayne

 
Reply With Quote
 
noEMA
Guest
Posts: n/a

 
      03-25-2006, 01:45 AM
On Fri, 24 Mar 2006 07:47:15 -0800, oguz wrote:

> Hi,
> Basically I want to be able to connect to different programs from the same
> network port. The differentiation may be with, e.g., username, with
> url,... etc.
>
> so assume I want to use port 22 with username joe to connect ssh, but
> username jack should connect to ftp with the same port.
>
> I guess there must be a programme that will listen on 22, collect the info
> from incoming request, and connect incoming request to the approppriate
> programme. There must be such a killer already isnt it?
>
> Is already there such a program, any ideas? thx.


The answer is no.
No such things exist because there is no relation between port number
and users.

If you are the client :

Client application use a source port number increasing with the number of
connections used by the client computer. And they do send their requests
toward a destination port being serviced by a deamon or service on a
server.
Obviously, you need to have standard service ports so clients can
connect to your services.

If you are the server :

Server software answer to the source port number of the client.
So if "joe" and "jack" but send packets toward the server with
the same source and same destination port, then how do you think
that the server will separate them ? And how will the client computer
receiving two packets for different users will separate them ?


So what you ask is not a good idea.

Two things.

You might use a port forwarding rule on a firewall to do such a thing.
But :
- trouble-shooting will be harder, and
- Security will not be really increased...

Forget that Idea...

 
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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
iptables trick to limit number of connections on a router Eric Tao Linux Networking 5 08-19-2010 08:45 PM
AOL's latest dirty trick? Meee Broadband 6 01-30-2008 08:16 AM
BEWARE trick question from SKY Support macky Broadband 16 11-05-2007 10:55 AM
Did You Know That With A Little DIY Trick And The Mobile Web You Can Save £££ A Year On SMS Text Messages. allahgodalmighty@yahoo.co.uk Broadband 0 10-31-2007 09:13 AM
so... what's the trick in getting wireless working on Server 2003?! pif Wireless Networks 1 10-13-2004 04:21 PM



1 2 3 4 5 6 7 8 9 10 11