diff options
author | John Hughes <john@atlantech.com> | 2018-02-08 10:49:02 +0100 |
---|---|---|
committer | Andy Polyakov <appro@openssl.org> | 2018-02-19 22:58:37 +0100 |
commit | ebc0168384e9bbc29c02b85adb01036609769761 (patch) | |
tree | 814c7f6055f18083478168d89578f6e3900c0895 /doc/man1/s_client.pod | |
parent | b383aa2081467e8d49c3362d295da7bd5cb4e1d8 (diff) |
Add BIO_bind function to bind local address for a socket.
Add -bind option to s_client application to allow specification of
local address for connection.
Reviewed-by: Andy Polyakov <appro@openssl.org>
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/5272)
Diffstat (limited to 'doc/man1/s_client.pod')
-rw-r--r-- | doc/man1/s_client.pod | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/doc/man1/s_client.pod b/doc/man1/s_client.pod index 8d8eac76f4..6e47140f41 100644 --- a/doc/man1/s_client.pod +++ b/doc/man1/s_client.pod @@ -10,6 +10,7 @@ s_client - SSL/TLS client program B<openssl> B<s_client> [B<-help>] [B<-connect host:port>] +[B<-bind host:port>] [B<-proxy host:port>] [B<-unix path>] [B<-4>] @@ -147,6 +148,12 @@ select the host and port using the optional target positional argument instead. If neither this nor the target positonal argument are specified then an attempt is made to connect to the local host on port 4433. +=item B<-bind host:port>] + +This specifies the host address and or port to bind as the source for the +connection. For Unix-domain sockets the port is ignored and the host is +used as the source socket address. + =item B<-proxy host:port> When used with the B<-connect> flag, the program uses the host and port @@ -686,6 +693,9 @@ applications should B<not> do this as it makes them vulnerable to a MITM attack. This behaviour can be changed by with the B<-verify_return_error> option: any verify errors are then returned aborting the handshake. +The B<-bind> option may be useful if the server or a firewall requires +connections to come from some particular address and or port. + =head1 BUGS Because this program has a lot of options and also because some of the |