Linux - Server This forum is for the discussion of Linux Software used in a server related context. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
04-09-2011, 01:57 PM
|
#1
|
Member
Registered: Aug 2007
Location: Fort Collins, Colorado
Distribution: Gentoo
Posts: 64
Rep:
|
Two servers on one port (not as crazy as it sounds)
I would like port 80 to have a small daemon running on it that detects HTTP traffic and sends a small redirect response, and any other traffic begins streaming data from my VPN daemon. I was wondering if this has already been made, or any kind of technology for detecting types of traffic and allowing you to run multiple types of servers on the same port.
|
|
|
04-09-2011, 03:04 PM
|
#2
|
LQ Guru
Registered: Apr 2005
Location: /dev/null
Posts: 5,818
|
Hello,
Can I ask why you would want to have two services operating on one port? There are 65,536 ports available to the OS, and you want to stick two services on one port...... Makes no sense to me.
Cheers,
Josh
Last edited by corp769; 04-09-2011 at 03:09 PM.
Reason: Typo....
|
|
|
04-09-2011, 03:08 PM
|
#3
|
Senior Member
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873
|
I agree with corp769, The "ports" were created to identify which service should be accessed by a connect request.
The only purpose that I can see for the original question is to work around a corporate firewall. That isn't the sort of thing that we should be involved with here.
|
|
1 members found this post helpful.
|
04-11-2011, 02:24 PM
|
#4
|
Member
Registered: Aug 2007
Location: Fort Collins, Colorado
Distribution: Gentoo
Posts: 64
Original Poster
Rep:
|
I didn't realize that questions were subject to stipulation.
I found a solution using l7-filter for iptables.
Last edited by kinetic; 04-11-2011 at 02:41 PM.
|
|
|
04-11-2011, 05:54 PM
|
#5
|
LQ Guru
Registered: Apr 2005
Location: /dev/null
Posts: 5,818
|
Quote:
Originally Posted by kinetic
I didn't realize that questions were subject to stipulation.
I found a solution using l7-filter for iptables.
|
Oh ok. Would you mind sharing the solution with us? And since you found a solution, could you mark your thread as solved? Thanks!
Josh
|
|
|
All times are GMT -5. The time now is 10:32 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|