Skip to content

Commit 1fff522

Browse files
committed
Scan policy explained wrt IPv4/v6 addresses
1 parent a05e697 commit 1fff522

3 files changed

Lines changed: 20 additions & 2 deletions

File tree

doc/testssl.1

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,15 @@ testing each of 370 preconfigured ciphers
9292
client simulation
9393
.IP "10)" 4
9494
rating
95+
.PP
96+
If a target FQDN has multiple IPv4 and/or multiple IPv6 addresses, it
97+
scans all IPs with the specified options or using the default run -
98+
unless specified otherwise, see \f[V]--ip\f[R], \f[V]-4\f[R] and
99+
\f[V]-6\f[R].
100+
IPv6 connectivity is automagically checked.
101+
If there\[cq]s noch such thing you will see a banner \f[I]Testing all
102+
\f[BI]IPv4\f[I] addresses\f[R] and all IPv6 addresses will appear in
103+
round brackets.
95104
.SS OPTIONS AND PARAMETERS
96105
.PP
97106
Options are either short or long options.

doc/testssl.1.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,14 @@ <h2 id="general">GENERAL</h2>
9999
<li><p>client simulation</p></li>
100100
<li><p>rating</p></li>
101101
</ol>
102+
<p>If a target FQDN has multiple IPv4 and/or multiple IPv6
103+
addresses, it scans all IPs with the specified options or using
104+
the default run - unless specified otherwise, see
105+
<code>--ip</code>, <code>-4</code> and <code>-6</code>. IPv6
106+
connectivity is automagically checked. If there’s noch such
107+
thing you will see a banner <em>Testing all
108+
<strong>IPv4</strong> addresses</em> and all IPv6 addresses will
109+
appear in round brackets.</p>
102110
<h2 id="options-and-parameters">OPTIONS AND PARAMETERS</h2>
103111
<p>Options are either short or long options. Any long or short
104112
option requiring a value can be called with or without an equal

doc/testssl.1.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ linked OpenSSL binaries for major operating systems are supplied in `./bin/`.
3636

3737
`testssl.sh URI` as the default invocation does the so-called default run which does a number of checks and puts out the results colorized (ANSI and termcap) on the screen. It does every check listed below except `-E` which are (order of appearance):
3838

39-
0) displays a banner (see below), does a DNS lookup also for further IP addresses and does for the returned IP address a reverse lookup. Last but not least a service check is being done.
39+
0) displays a banner (see below), does a DNS lookup also for further IP addresses and does for the returned IP address a reverse lookup. Last but not least a service check is being done.
4040

4141
1) SSL/TLS protocol check
4242

@@ -58,6 +58,7 @@ linked OpenSSL binaries for major operating systems are supplied in `./bin/`.
5858

5959
10) rating
6060

61+
If a target FQDN has multiple IPv4 and/or multiple IPv6 addresses, it scans all IPs with the specified options or using the default run - unless specified otherwise, see `--ip`, `-4` and `-6`. IPv6 connectivity is automagically checked. If there's noch such thing you will see a banner *Testing all **IPv4** addresses* and all IPv6 addresses will appear in round brackets.
6162

6263

6364
## OPTIONS AND PARAMETERS
@@ -124,7 +125,7 @@ The same can be achieved by setting the environment variable `WARNINGS`.
124125

125126
`--mx <domain|host>` tests all MX records (STARTTLS on port 25) from high to low priority, one after the other.
126127

127-
`--ip <ip>` tests either the supplied IPv4 or IPv6 address instead of resolving host(s) in `<URI>`. IPv6 addresses need to be supplied in square brackets. `--ip=one` means: just test the first A record DNS returns (useful for multiple IPs). If `-6` and `--ip=one` was supplied an AAAA record will be picked if available. The ``--ip`` option might be also useful if you want to resolve the supplied hostname to a different IP, similar as if you would edit `/etc/hosts` or `/c/Windows/System32/drivers/etc/hosts`. `--ip=proxy` tries a DNS resolution via proxy. `--ip=proxy` plus `--nodns=min` is useful for situations with no local DNS as there'll be no DNS timeouts when trying to resolve CAA, TXT and MX records.
128+
`--ip <ip>` tests either the supplied IPv4 or IPv6 address instead of resolving host(s) in `<URI>`. IPv6 addresses need to be supplied in square brackets. `--ip=one` means: just test the first A record DNS returns (useful for multiple IPs). If `-6` and `--ip=one` was supplied an AAAA record will be picked if available. The `--ip` option might be also useful if you want to resolve the supplied hostname to a different IP, similar as if you would edit `/etc/hosts` or `/c/Windows/System32/drivers/etc/hosts`. `--ip=proxy` tries a DNS resolution via proxy. `--ip=proxy` plus `--nodns=min` is useful for situations with no local DNS as there'll be no DNS timeouts when trying to resolve CAA, TXT and MX records.
128129

129130
`--proxy <host>:<port>` does ANY check via the specified proxy. `--proxy=auto` inherits the proxy setting from the environment. Any hostname supplied will be resolved to the first A record, if it does not exist the AAAA record is used. IPv4 and IPv6 addresses can be passed too, the latter *also* with square bracket notation. Please note that you need a newer OpenSSL or LibreSSL version for IPv6 proxy functionality. In addition if you want lookups via proxy you can specify `DNS_VIA_PROXY=true`. OCSP revocation checking (`-S --phone-out`) is not supported by OpenSSL via proxy. As supplying a proxy is an indicator for port 80 and 443 outgoing being blocked in your network an OCSP revocation check won't be performed. However if `IGN_OCSP_PROXY=true` has been supplied it will be tried directly. Authentication to the proxy is not supported, also no HTTPS or SOCKS proxy.
130131

0 commit comments

Comments
 (0)