Opened 9 years ago

Closed 9 years ago

#205 closed Bug / Defect (worksforme)

--show-valid-subnets does not work in 2.3-alpha1

Reported by: zmi Owned by:
Priority: major Milestone: beta 2.3
Component: Generic / unclassified Version: OpenVPN 2.2.2 (Community Ed)
Severity: Not set (select this one, unless your'e a OpenVPN developer) Keywords:
Cc:

Description

Seems this options doesn't work:

# openvpn --show-valid-subnets
Options error: Unrecognized option or missing parameter(s) in [CMD-LINE]:1: show-valid-subnets (2.3-alpha1)
Use --help for more information.

Change History (2)

comment:1 Changed 9 years ago by zmi

--show-valid-subnets also not working in today's git. 2.3_alpha1

comment:2 Changed 9 years ago by David Sommerseth

Resolution: worksforme
Status: newclosed

Works for me. Even though, I tested via WINE. This feature is only available on Windows.

C:\Program Files\OepnVPN\bin> openvpn --show-valid-subnets
On Windows, point-to-point IP support (i.e. --dev tun)
is emulated by the TAP-Windows driver. The major limitation
imposed by this approach is that the --ifconfig local and
remote endpoints must be part of the same 255.255.255.252
subnet. The following list shows examples of endpoint
pairs which satisfy this requirement. Only the final
component of the IP address pairs is at issue.

As an example, the following option would be correct:

--ifconfig 10.7.0.5 10.7.0.6 (on host A)
--ifconfig 10.7.0.6 10.7.0.5 (on host B)

because [5,6] is part of the below list.

[ 1, 2] [ 5, 6] [ 9, 10] [ 13, 14] [ 17, 18]
[ 21, 22] [ 25, 26] [ 29, 30] [ 33, 34] [ 37, 38]
[ 41, 42] [ 45, 46] [ 49, 50] [ 53, 54] [ 57, 58]
[ 61, 62] [ 65, 66] [ 69, 70] [ 73, 74] [ 77, 78]
[ 81, 82] [ 85, 86] [ 89, 90] [ 93, 94] [ 97, 98]
[101,102] [105,106] [109,110] [113,114] [117,118]
[121,122] [125,126] [129,130] [133,134] [137,138]
[141,142] [145,146] [149,150] [153,154] [157,158]
[161,162] [165,166] [169,170] [173,174] [177,178]
[181,182] [185,186] [189,190] [193,194] [197,198]
[201,202] [205,206] [209,210] [213,214] [217,218]
[221,222] [225,226] [229,230] [233,234] [237,238]
[241,242] [245,246] [249,250] [253,254]

Note: See TracTickets for help on using tickets.