Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
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.
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.
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?
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.