10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi,
i would like to enable all operations/connections to use a proxy server in a redhat server ,
witch file should i config to get this for all conections ....
Thanks (0 Replies)
Discussion started by: prpkrk
0 Replies
2. UNIX for Dummies Questions & Answers
I wrote scipts that automated file downloads from sFTP server. Not long ago a proxy server was introduce into the network, and my script failed.
How do you specify proxy server in dos/UNIX scripts?
:confused:
Hirsi (2 Replies)
Discussion started by: hdirir
2 Replies
3. IP Networking
Hi,
I am involved in a project on Debian. One of my requirement is to route an IP packet in my application to a proxy server and receive the reply from the proxy server as an IP packet. My application handles data at the IP frame level. My application creates an IP packet(with all the necessary... (0 Replies)
Discussion started by: Rajesh_BK
0 Replies
4. UNIX for Advanced & Expert Users
Hi I am posting this in this area because I couldn't find a better place.
I am trying to make exact copies of my disk that I use in an old DEC3000.
I loaded the one disk then used dd
dd if=/dev/rrz0c of=/dev/rrz1c
I started this a 6pm last night here in Wales.
It is now 2pm the next day,... (4 Replies)
Discussion started by: mndavies
4 Replies
5. UNIX for Dummies Questions & Answers
Hi,
I need to know if it is possible to install a Digital Unix 4.0 in a vmware. Is this possible at all?
thank you
trstn (1 Reply)
Discussion started by: trstn
1 Replies
6. UNIX for Dummies Questions & Answers
Hi All,
I am trying to set up a modem (using SLIP) on a Digital (well it used to be) AlphaStation running Digital Unix V7E. I assume that I have to put an entry into /remote but can anyone suggest the contents and formatting. Apologies for being so naive but I'm an ex VMS person.
Thanks and... (1 Reply)
Discussion started by: Roslynlea
1 Replies
7. UNIX for Dummies Questions & Answers
Hi All
Im currntly working on a digital unix machine and must know what is the amount of MB\GB instaled ( i do not have physical access to the machine).
can anyone help me here?
10x!!!!!!!!!!!!!!! (1 Reply)
Discussion started by: dindan100
1 Replies
8. UNIX for Dummies Questions & Answers
I'm trying to get a Unix server on the internet (mostly for DNS requests) but this server is on a network behind a Proxy server. How can I configure my unix server that he will pass the proxy server for internet requests? (2 Replies)
Discussion started by: RSlegers
2 Replies
9. IP Networking
I'm trying to set up an IP address on a Digital Unix box. I would like to know the commands in order to do so.
thanks (5 Replies)
Discussion started by: lavelyj
5 Replies
10. UNIX for Dummies Questions & Answers
Hi guyes ,,,,
One particular server (Operating system is Digital Unix OSFI) only responds to http requestes by Internet Explorer, and display empty page when the same page is hit through Netscape Navigator :)
any help ?
good luck (2 Replies)
Discussion started by: t_zone
2 Replies
SSLH(1p) User Contributed Perl Documentation SSLH(1p)
NAME
sslh - Switch incoming connection between SSH and SSL/HTTPS servers
SYNOPSIS
sslh [ -v ] [ -p [host:]port ] [ -t timeout ]
[ --ssh [host:]port ] [ --ssl [host:]port ]
DESCRIPTION
sslh is a simple script that lets you switch an incoming connection on a single port between distinct SSH and SSL/HTTPS servers.
sslh listens for connections on a port and is able to redirect them either to an HTTPS web server or a SSH server.
This lets one setup both a HTTPS web server and a SSH server and access them through the same host+port.
OPTIONS
The program follows the usual GNU command line syntax, with long options starting with two dashes.
-p, --port [host:]port
The port the proxy will listen to. If no port is given, 443 is used by default. If no host is given, "localhost" is used by default.
-s, --ssh [host:]port
The SSH server which the SSH connections must be forwarded to. If omitted, the default is localhost:22.
-l, --ssl, --https [host:]port
The HTTPS server which the HTTPS connections must be forwarded to. If omitted, the default is localhost:443.
-t, --timeout delay
Timeout in seconds before a silent incoming connection is considered as a SSH connection. The number can be fractional.
The default is 2seconds.
-v, --verbose
Verbose output. This option can be used several times for more verbose output.
EXAMPLE OF USE
Is this tool actually useful? Yes.
For example one can use it to access both a SSH server and a secure web server via a corporate proxy that only accepts to relay connections
to port 443. Creating a tunnel that passes SSH connection through a CONNECT-enabled web proxy is easy with connect-tunnel (also included in
the "Net::Proxy" distribution).
The proxy will let both SSH and HTTPS connections out (since they all point to port 443), and the home server will connect those incoming
connections to the appropriate server. This only requires to run the HTTPS server on a non standard port (not 443).
TECHNICAL NOTE
How can this proxy find out what kind of protocol is using a TCP connection to port 443, without being connected (yet) to the server? We
actually rely on a slight difference between the SSL and SSH protocols (found thanks to ethereal):
SSH Once the TCP connection is established, the server speaks first, presenting itself by saying something like:
SSH-2.0-OpenSSH_3.6.1p2 Debian 1:3.6.1p2-1
SSL With SSL, it's always the client that speaks first.
This means that sslh can be used with any pair of protocols/services that share this property (the client speaks first for one and the
server speaks first for the other).
AUTHORS
Original idea and C version
Frederic Ple "<sslh@wattoo.org>".
Perl versions
Philippe 'BooK' Bruhat "<book@cpan.org>".
SCRIPT HISTORY
Version 0.01 of the script was a quick hack designed in 2003 as a proof of concept.
Version 0.02 (and higher) are based on "Net::Proxy", and included with the "Net::Proxy" distribution. Version 0.02 didn't work, though.
Version 0.03 correctly initialised the "in" connector.
Version 0.04 lets the proxy listen on any address (instead of "localhost", which is still the default). Thanks to Dieter Voegtli for
spotting this.
SEE ALSO
Net::Proxy, Net::Proxy::Connector::dual.
COPYRIGHT
Copyright 2003-2006, Philippe Bruhat. All rights reserved.
LICENSE
This module is free software; you can redistribute it or modify it under the same terms as Perl itself.
perl v5.10.1 2009-10-18 SSLH(1p)