Browse code

Delete old sample-windows file and obsolete Windows sample handling

This file is apparently over 20 years old and
was never updated besides fixing some obvious
syntax errors with new versions.

So let's just get rid of it. AFAICT the Windows
installer does not use it. Only the
{server,client}.ovpn. And even there, it just uses
the files directly from the build directory and
does not depend on us renaming them (which is
obvious since we do not use the Makefile at all
in the Windows build, only CMake).

Github: Closes OpenVPN/openvpn#758
Change-Id: I15c730c9eb3f1338019577e7c665c0ca5b1edcd4
Signed-off-by: Frank Lichtenheld <frank@lichtenheld.com>
Message-Id: <20250602153900.29646-1-gert@greenie.muc.de>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg31850.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>

Frank Lichtenheld authored on 2025/06/03 00:38:54
Showing 2 changed files
... ...
@@ -18,20 +18,5 @@ DISTCLEANFILES = \
18 18
 EXTRA_DIST = \
19 19
 	sample-plugins \
20 20
 	sample-config-files \
21
-	sample-windows \
22 21
 	sample-keys \
23 22
 	sample-scripts
24
-
25
-if WIN32
26
-sample_DATA = \
27
-	client.ovpn \
28
-	server.ovpn \
29
-	sample-windows/sample.ovpn
30
-
31
-client.ovpn: sample-config-files/client.conf
32
-	-rm -f client.ovpn
33
-	cp "$(srcdir)/sample-config-files/client.conf" client.ovpn
34
-server.ovpn: sample-config-files/server.conf
35
-	-rm -f server.ovpn
36
-	cp "$(srcdir)/sample-config-files/server.conf" server.ovpn
37
-endif
38 23
deleted file mode 100755
... ...
@@ -1,102 +0,0 @@
1
-# Edit this file, and save to a .ovpn extension
2
-# so that OpenVPN will activate it when run
3
-# as a service.
4
-
5
-# Change 'myremote' to be your remote host,
6
-# or comment out to enter a listening
7
-# server mode.
8
-remote myremote
9
-
10
-# Uncomment this line to use a different
11
-# port number than the default of 1194.
12
-; port 1194
13
-
14
-# Choose one of three protocols supported by
15
-# OpenVPN.  If left commented out, defaults
16
-# to udp.
17
-; proto [tcp-server | tcp-client | udp]
18
-
19
-# You must specify one of two possible network
20
-# protocols, 'dev tap' or 'dev tun' to be used
21
-# on both sides of the connection.  'tap' creates
22
-# a VPN using the ethernet protocol while 'tun'
23
-# uses the IP protocol.  You must use 'tap'
24
-# if you are ethernet bridging or want to route
25
-# broadcasts.  'tun' is somewhat more efficient
26
-# but requires configuration of client software
27
-# to not depend on broadcasts.  Some platforms
28
-# such as Solaris, OpenBSD, and Mac OS X only
29
-# support 'tun' interfaces, so if you are
30
-# connecting to such a platform, you must also
31
-# use a 'tun' interface on the Windows side.
32
-
33
-# Enable 'dev tap' or 'dev tun' but not both!
34
-dev tap
35
-
36
-# This is a 'dev tap' ifconfig that creates
37
-# a virtual ethernet subnet.
38
-# 10.3.0.1 is the local VPN IP address
39
-# and 255.255.255.0 is the VPN subnet.
40
-# Only define this option for 'dev tap'.
41
-ifconfig 10.3.0.1 255.255.255.0
42
-
43
-# This is a 'dev tun' ifconfig that creates
44
-# a point-to-point IP link.
45
-# 10.3.0.1 is the local VPN IP address and
46
-# 10.3.0.2 is the remote VPN IP address. 
47
-# Only define this option for 'dev tun'.
48
-# Make sure to include the "tun-mtu" option
49
-# on the remote machine, but swap the order
50
-# of the ifconfig addresses.
51
-;tun-mtu 1500
52
-;ifconfig 10.3.0.1 10.3.0.2
53
-
54
-# If you have fragmentation issues or misconfigured
55
-# routers in the path which block Path MTU discovery,
56
-# lower the TCP MSS and internally fragment non-TCP
57
-# protocols.
58
-;fragment 1300
59
-;mssfix
60
-
61
-# If you have set up more than one TAP-Win32 adapter
62
-# on your system, you must refer to it by name.
63
-;dev-node my-tap
64
-
65
-# You can generate a static OpenVPN key
66
-# by selecting the Generate Key option
67
-# in the start menu.
68
-#
69
-# You can also generate key.txt manually
70
-# with the following command:
71
-#   openvpn --genkey secret key.txt
72
-#
73
-# key must match on both ends of the connection,
74
-# so you should generate it on one machine and
75
-# copy it to the other over a secure medium.
76
-# Place key.txt in the same directory as this
77
-# config file.
78
-secret key.txt
79
-
80
-# Uncomment this section for a more reliable
81
-# detection when a system loses its connection.
82
-# For example, dial-ups or laptops that travel
83
-# to other locations.
84
-#
85
-# If this section is enabled and "myremote"
86
-# above is a dynamic DNS name (i.e. dyndns.org),
87
-# OpenVPN will dynamically "follow" the IP
88
-# address of "myremote" if it changes.
89
-; ping-restart 60
90
-; ping-timer-rem
91
-; persist-tun
92
-; resolv-retry 86400
93
-
94
-# keep-alive ping
95
-ping 10
96
-
97
-# enable LZO compression
98
-comp-lzo
99
-
100
-# moderate verbosity
101
-verb 4
102
-mute 10