Hi again Pippin,
I now re did my system on a Raspberry pi additionally using stunnel to try and fool DPI. I have the issue again that I cannot block the local LAN using the ccd as before.
The OpenVPN log shows that route is being always created to pass the traffic
Wed May 16 23:24:00 2018 PUSH: Received control message: 'PUSH_REPLY,dhcp-option DNS 91.239.100.100,dhcp-option DNS 208.67.222.222,block-outside-dns,route 10.8.0.1,topology net30,ping 10,ping-restart 120,route 192.168.178.0 255.255.255.0 net_gateway,ifconfig 10.8.0.10 10.8.0.9,peer-id 0,cipher AES-256-GCM'
Wed May 16 23:24:00 2018 OPTIONS IMPORT: timers and/or timeouts modified
Wed May 16 23:24:00 2018 OPTIONS IMPORT: --ifconfig/up options modified
Wed May 16 23:24:00 2018 OPTIONS IMPORT: route options modified
Wed May 16 23:24:00 2018 OPTIONS IMPORT: --ip-win32 and/or --dhcp-option options modified
Wed May 16 23:24:00 2018 OPTIONS IMPORT: peer-id set
Wed May 16 23:24:00 2018 OPTIONS IMPORT: adjusting link_mtu to 1627
Wed May 16 23:24:00 2018 OPTIONS IMPORT: data channel crypto options modified
Wed May 16 23:24:00 2018 Data Channel: using negotiated cipher 'AES-256-GCM'
Wed May 16 23:24:00 2018 Outgoing Data Channel: Cipher 'AES-256-GCM' initialized with 256 bit key
Wed May 16 23:24:00 2018 Incoming Data Channel: Cipher 'AES-256-GCM' initialized with 256 bit key
Wed May 16 23:24:00 2018 interactive service msg_channel=900
Wed May 16 23:24:00 2018 ROUTE_GATEWAY 192.168.178.1/255.255.255.0 I=16 HWADDR=18:60:24:16:e9:4c
Wed May 16 23:24:00 2018 open_tun
Wed May 16 23:24:00 2018 TAP-WIN32 device [Ethernet 6] opened: \\.\Global\{E384BAE4-A277-4669-B536-69F24842B824}.tap
Wed May 16 23:24:00 2018 TAP-Windows Driver Version 9.21
Wed May 16 23:24:00 2018 Notified TAP-Windows driver to set a DHCP IP/netmask of 10.8.0.10/255.255.255.252 on interface {E384BAE4-A277-4669-B536-69F24842B824} [DHCP-serv: 10.8.0.9, lease-time: 31536000]
Wed May 16 23:24:00 2018 Successful ARP Flush on interface [28] {E384BAE4-A277-4669-B536-69F24842B824}
Wed May 16 23:24:00 2018 do_ifconfig, tt->did_ifconfig_ipv6_setup=0
Wed May 16 23:24:00 2018 MANAGEMENT: >STATE:1526505840,ASSIGN_IP,,10.8.0.10,,,,
Wed May 16 23:24:00 2018 Blocking outside dns using service succeeded.
Wed May 16 23:24:05 2018 TEST ROUTES: 4/4 succeeded len=3 ret=1 a=0 u/d=up
Wed May 16 23:24:05 2018 C:\WINDOWS\system32\route.exe ADD 127.0.0.1 MASK 255.255.255.255 192.168.178.1
Wed May 16 23:24:05 2018 Route addition via service succeeded
Wed May 16 23:24:05 2018 C:\WINDOWS\system32\route.exe ADD 0.0.0.0 MASK 128.0.0.0 10.8.0.9
Wed May 16 23:24:05 2018 Route addition via service succeeded
Wed May 16 23:24:05 2018 C:\WINDOWS\system32\route.exe ADD 128.0.0.0 MASK 128.0.0.0 10.8.0.9
Wed May 16 23:24:05 2018 Route addition via service succeeded
Wed May 16 23:24:05 2018 MANAGEMENT: >STATE:1526505845,ADD_ROUTES,,,,,,
Wed May 16 23:24:05 2018 C:\WINDOWS\system32\route.exe ADD 77.56.146.244 MASK 255.255.255.255 192.168.178.1
Wed May 16 23:24:05 2018 Route addition via service succeeded
Wed May 16 23:24:05 2018 C:\WINDOWS\system32\route.exe ADD 10.8.0.1 MASK 255.255.255.255 10.8.0.9
Wed May 16 23:24:05 2018 Route addition via service succeeded
Wed May 16 23:24:05 2018 C:\WINDOWS\system32\route.exe ADD 192.168.178.0 MASK 255.255.255.0 192.168.178.1
Wed May 16 23:24:05 2018 Route addition via service succeeded
Wed May 16 23:24:05 2018 Initialization Sequence Completed
Wed May 16 23:24:05 2018 MANAGEMENT: >STATE:1526505845,CONNECTED,SUCCESS,10.8.0.10,127.0.0.1,1337,127.0.0.1,50388
My server conf is:
dev tun
proto tcp
port 1194
#push "route 192.168.178.0 255.255.255.0"
#push "route 10.8.0.0 255.255.255.0"
ca /etc/openvpn/easy-rsa/pki/ca.crt
cert /etc/openvpn/easy-rsa/pki/issued/server_YAPdB5A2CuDWglzS.crt
key /etc/openvpn/easy-rsa/pki/private/server_YAPdB5A2CuDWglzS.key
dh none
#topology subnet
server 10.8.0.0 255.255.255.0
client-config-dir /etc/openvpn/ccd
# Set your primary domain name server address for clients
push "dhcp-option DNS 91.239.100.100"
push "dhcp-option DNS 208.67.222.222"
# Prevent DNS leaks on Windows
push "block-outside-dns"
# Override the Client default gateway by using 0.0.0.0/1 and
# 128.0.0.0/1 rather than 0.0.0.0/0. This has the benefit of
# overriding but not wiping out the original default gateway.
#push "redirect-gateway def1"
#client-to-client
keepalive 10 120
remote-cert-tls client
tls-version-min 1.2
tls-crypt /etc/openvpn/easy-rsa/pki/ta.key
cipher AES-256-CBC
auth SHA256
compress lz4
user nobody
group nogroup
persist-key
persist-tun
crl-verify /etc/openvpn/crl.pem
status /var/log/openvpn-status.log 20
status-version 3
syslog
verb 3
#DuplicateCNs allow access control on a less-granular, per user basis.
#Remove # if you will manage access by user instead of device.
#duplicate-cn
# Generated for use by PiVPN.io
sndbuf 0
rcvbuf 0
and client conf
client
dev tun
proto tcp
remote 127.0.0.1 1337
route myserver.dyn.address 255.255.255.255 net_gateway
resolv-retry infinite
nobind
tun-mtu 1500
#tun-mtu-extra 32
mssfix 1450
sndbuf 0
rcvbuf 0
persist-key
persist-tun
redirect-gateway def1
auth-nocache
remote-cert-tls server
tls-version-min 1.2
verify-x509-name server_Abcd6768YWglzS name
cipher AES-256-CBC
auth SHA256
compress lz4
verb 3
Thanks
I can forward teh stunnel set up if of any use