LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-12-2005, 05:36 PM   #1
Quantum0726
Member
 
Registered: Dec 2003
Location: Milwaukee, WI
Distribution: Gentoo
Posts: 39

Rep: Reputation: 15
Two daemons running on the same port


Hi,
I have apache running with ssl on port 443. I also need to run ssh on port 443 (so I can connect to it through a https proxy--the only way of sending and receiving traffic at my work). I've found I can only run one at the same time. When I try starting apache I get the following error:

(98)Address already in use: make_sock: could not bind address 0.0.0.0:443
no listening sockets available, shutting down
Unable to open logs

I guess this is to be expected, but I'm hoping that someone knows a way to get around this, i.e. open two sockets, or even some iptables forwarding trick. Any ideas?

Thanks much!
 
Old 08-12-2005, 05:37 PM   #2
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
Nope. Only one application can be in use on one port/IP pair. Otherwise, who would know what you're talking about?
 
Old 08-12-2005, 08:38 PM   #3
carl.waldbieser
Member
 
Registered: Jun 2005
Location: Pennsylvania
Distribution: Kubuntu
Posts: 197

Rep: Reputation: 32
Yeah, it would be like you and I both had the same street address, and someone tried to send me a postcard. Who would get it?
 
Old 08-15-2005, 08:56 PM   #4
Quantum0726
Member
 
Registered: Dec 2003
Location: Milwaukee, WI
Distribution: Gentoo
Posts: 39

Original Poster
Rep: Reputation: 15
Oh, well, I guess I'll have to choose to either run the ssh server or the https page for my website. Since the proxy only accepts traffic from port 443, I can't use another port. If I change the port with a link on my page, I get an error from the proxy saying that it only accepts 443. If I try to proxy-tunnel to port 22 for ssh I get the same message in the console. If anyone has any ideas around this let me know, otherwise I'll just have to ssh tunnel the new web page port to test it while I'm behind that proxy.

Thanks for the info though!

P.S. about the postcard metaphor, I was thinking that I could configure iptables to sort the traffic by header type, like having the same address but different names on the postcard. Same IP, same port, but different packet "type" and have iptables forward it to another port that ssh or apache could listen on. However, I have a feeling that this would be needlessly complex and possibly beyond iptables capabilities.

Last edited by Quantum0726; 08-15-2005 at 08:59 PM.
 
Old 08-15-2005, 10:39 PM   #5
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
It only accepts connections for a destination 443 port? You could run the SSH server on 443, and tunnel your https connections through it to another port on your server.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to get a listing of running daemons / processes greengrocer Linux - Newbie 6 08-28-2005 03:36 PM
command to see daemons running? kpachopoulos Linux - Newbie 3 09-13-2004 06:17 AM
Two Printer Daemons Running angelaramesys Linux - Software 0 07-15-2004 07:44 AM
smb/nmb daemons not running skippuff54 Linux - Networking 25 07-13-2004 10:26 AM
Daemons running on unknown ports robadawb Linux - Networking 2 11-12-2003 02:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:04 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration