Networking Forums

Networking Forums > Computer Networking > Linux Networking > Two Services Listening

Reply
Thread Tools Display Modes

Two Services Listening

 
 
Buck Turgidson
Guest
Posts: n/a

 
      03-07-2005, 01:25 PM
I posted a question on Friday, and was unable to check news and mail this
weekend. I got a lot of good responses, but I wasn't able to clarify
things.

My question was whether, I can have several services (protocols)
listenening on port 22. Is there anyway to have another service, e.g. http,
listening on the same port, and some sort of director that decides whether
traffic is http or ssh, and forward it to the right service? I have a router
in my home network.

I access my linux box at home from work over 22, which is the only open port
that is common between my ISP and employer. I am well aware of
port-forwarding and use it extensively, and have even gotten ftp to work
with some fiddling.

However, I want to call Harry across town and give him a URL on port 22 to
try, without having ssh, tunnelling, nor an account on my machine.

I hope I clarified my question somewhat.

Someone mentioned setting up a proxy and another mentioned l7 filtering. Do
those still apply? I'll have to do some research on those, since they're a
little above my head at this point.



 
Reply With Quote
 
 
 
 
Tauno Voipio
Guest
Posts: n/a

 
      03-07-2005, 04:48 PM
Buck Turgidson wrote:
> I posted a question on Friday, and was unable to check news and mail this
> weekend. I got a lot of good responses, but I wasn't able to clarify
> things.
>
> My question was whether, I can have several services (protocols)
> listenening on port 22. Is there anyway to have another service, e.g. http,
> listening on the same port, and some sort of director that decides whether
> traffic is http or ssh, and forward it to the right service? I have a router
> in my home network.
>
> I access my linux box at home from work over 22, which is the only open port
> that is common between my ISP and employer. I am well aware of
> port-forwarding and use it extensively, and have even gotten ftp to work
> with some fiddling.
>
> However, I want to call Harry across town and give him a URL on port 22 to
> try, without having ssh, tunnelling, nor an account on my machine.
>
> I hope I clarified my question somewhat.
>
> Someone mentioned setting up a proxy and another mentioned l7 filtering. Do
> those still apply? I'll have to do some research on those, since they're a
> little above my head at this point.



The idea with TCP and UDP ports is to provide two sets of
mailboxes at the destination host. The port numbers are used
to distinguish the service requested, so without some trickery
it's not possible to have several services on one port. You
need to super-multiplex the services on the single port
data stream.

The method to super-multiplex a network segment on a single
port connection is called tunneling. (For the nitpickers: yes,
I know that there are other carriers for tunnels, too).

One possible tunnel tool is OpenVPN which is able to tunnel
an IP subnet or even an Ethernet local net over a single port
connection. However, it needs the tunneling code at both ends
of the connection.

I hope that this clarifies more than messes up.

--

Tauno Voipio
tauno voipio (at) iki fi


 
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
Services listening on all ports? tshad Windows Networking 10 01-22-2007 10:26 PM
Listening ports =?Utf-8?B?U2NvdHRS?= Windows Networking 0 04-20-2005 07:46 PM
Two Services Listening on Same Port Buck Turgidson Linux Networking 1 03-07-2005 02:37 PM
Two Services Listening on Same Port Buck Turgidson Linux Networking 13 03-06-2005 01:23 PM
Some services are not listening on external network crabouif Linux Networking 2 09-08-2003 06:00 PM



1 2 3 4 5 6 7 8 9 10 11