Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Hello Monks,
A restrictive firewall at work forces me to run the ssh server on my home box on port 443. Unfortunately I would really prefer to be running my https server on that port instead.
I was thinking that I might write a perl listener that accepts connections on port 443. If something resembling an http request ("GET / ...") is received from the client within the first couple of seconds after a connection, then it would open a socket to localhost:444 (where the real https server would be running) and basically proxy between the two.
However, if nothing is received from the client in the first couple of seconds, then open a connection to localhost:22 and again act as a proxy. The ssh server would then send its own banner to the client.
The questions at hand are:
Thank you kindly Monks.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Perling my way through an oppressive firewall
by Corion (Patriarch) on Apr 04, 2008 at 06:05 UTC | |
by Anonymous Monk on Apr 04, 2008 at 08:31 UTC | |
|
Re: Perling my way through an oppressive firewall
by Sinistral (Monsignor) on Apr 04, 2008 at 15:05 UTC | |
|
Re: Perling my way through an oppressive firewall
by marto (Cardinal) on Apr 04, 2008 at 15:27 UTC | |
|
Re: Perling my way through an oppressive firewall
by Anonymous Monk on Apr 05, 2008 at 17:26 UTC | |
by Anonymous Monk on Apr 06, 2008 at 03:04 UTC |