OVPN on OpenWrt repeater

Post your client configuration excluding the private data.

here it is...

client
dev tun
proto tcp
sndbuf 0
rcvbuf 0
remote /SSHPLUS? 1195
http-proxy-option CUSTOM-HEADER Host netflix.com
http-proxy [ip] [port]
resolv-retry 5
nobind
persist-key
persist-tun
remote-cert-tls server
cipher AES-256-CBC
comp-lzo yes
setenv opt block-outside-dns
key-direction 1
verb 3

auth-user-pass /etc/openvpn/PLUSCHANNEL.auth
keepalive 10 120
float
<ca>
-----BEGIN CERTIFICATE-----
XXXXXXX==
-----END CERTIFICATE-----
</ca>
<cert>
Certificate:
    Data:
        Version: 3 (0x2)
        Serial Number: 3 (0x3)
        Signature Algorithm: sha256WithRSAEncryption
        Issuer: CN=ChangeMe
        Validity
            Not Before: Aug 23 09:23:35 2020 GMT
            Not After : Aug 21 09:23:35 2030 GMT
        Subject: CN=PLUSEEUK
        Subject Public Key Info:
            Public Key Algorithm: rsaEncryption
                RSA Public-Key: (2048 bit)
                Modulus:
                    XXXXXXXXXXXX
XXXXXXXXXXXXXXX
XXXXXXXXXXXX
                Exponent: 65537 (0x10001)
        X509v3 extensions:
            X509v3 Basic Constraints: 
                CA:FALSE
            X509v3 Subject Key Identifier: 
                XXXXXXX
            X509v3 Authority Key Identifier: 
                XXXXXX
                DirName:/CN=ChangeMe
                serial:XXXXX

            X509v3 Extended Key Usage: 
                TLS Web Client Authentication
            X509v3 Key Usage: 
                Digital Signature
    Signature Algorithm: sha256WithRSAEncryption
         XXXXXXX
-----BEGIN CERTIFICATE-----
XXXXXXX
-----END CERTIFICATE-----
</cert>
<key>
-----BEGIN PRIVATE KEY-----
XXXXX
-----END PRIVATE KEY-----
</key>
<tls-auth>
#
# 2048 bit OpenVPN static key
#
-----BEGIN OpenVPN Static key V1-----
XXXXXX
-----END OpenVPN Static key V1-----
</tls-auth>


1 Like

The client config looks normal, so try to connect to another server, or contact the VPN provider support.

1 Like

ok any idea about why this one is laso having the same issue (config file just downloaded form NORDVPN)

client
dev tun
proto udp
remote 172.98.86.91 1194
resolv-retry infinite
remote-random
nobind
tun-mtu 1500
tun-mtu-extra 32
mssfix 1450
persist-key
persist-tun
ping 15
ping-restart 0
ping-timer-rem
reneg-sec 0
comp-lzo no

remote-cert-tls server

auth-user-pass /etc/openvpn/NORDVPN_US.auth
verb 3
pull
fast-io
cipher AES-256-CBC
auth SHA512
<ca>
-----BEGIN CERTIFICATE-----
MIIFCjCCAvKgAwIBAgIBATANBgkqhkiG9w0BAQ0FADA5MQswCQYDVQQGEwJQQTEQ
MA4GA1UEChMHTm9yZFZQTjEYMBYGA1UEAxMPTm9yZFZQTiBSb290IENBMB4XDTE2
MDEwMTAwMDAwMFoXDTM1MTIzMTIzNTk1OVowOTELMAkGA1UEBhMCUEExEDAOBgNV
BAoTB05vcmRWUE4xGDAWBgNVBAMTD05vcmRWUE4gUm9vdCBDQTCCAiIwDQYJKoZI
hvcNAQEBBQADggIPADCCAgoCggIBAMkr/BYhyo0F2upsIMXwC6QvkZps3NN2/eQF
kfQIS1gql0aejsKsEnmY0Kaon8uZCTXPsRH1gQNgg5D2gixdd1mJUvV3dE3y9FJr
XMoDkXdCGBodvKJyU6lcfEVF6/UxHcbBguZK9UtRHS9eJYm3rpL/5huQMCppX7kU
eQ8dpCwd3iKITqwd1ZudDqsWaU0vqzC2H55IyaZ/5/TnCk31Q1UP6BksbbuRcwOV
skEDsm6YoWDnn/IIzGOYnFJRzQH5jTz3j1QBvRIuQuBuvUkfhx1FEwhwZigrcxXu
MP+QgM54kezgziJUaZcOM2zF3lvrwMvXDMfNeIoJABv9ljw969xQ8czQCU5lMVmA
37ltv5Ec9U5hZuwk/9QO1Z+d/r6Jx0mlurS8gnCAKJgwa3kyZw6e4FZ8mYL4vpRR
hPdvRTWCMJkeB4yBHyhxUmTRgJHm6YR3D6hcFAc9cQcTEl/I60tMdz33G6m0O42s
Qt/+AR3YCY/RusWVBJB/qNS94EtNtj8iaebCQW1jHAhvGmFILVR9lzD0EzWKHkvy
WEjmUVRgCDd6Ne3eFRNS73gdv/C3l5boYySeu4exkEYVxVRn8DhCxs0MnkMHWFK6
MyzXCCn+JnWFDYPfDKHvpff/kLDobtPBf+Lbch5wQy9quY27xaj0XwLyjOltpiST
LWae/Q4vAgMBAAGjHTAbMAwGA1UdEwQFMAMBAf8wCwYDVR0PBAQDAgEGMA0GCSqG
SIb3DQEBDQUAA4ICAQC9fUL2sZPxIN2mD32VeNySTgZlCEdVmlq471o/bDMP4B8g
nQesFRtXY2ZCjs50Jm73B2LViL9qlREmI6vE5IC8IsRBJSV4ce1WYxyXro5rmVg/
k6a10rlsbK/eg//GHoJxDdXDOokLUSnxt7gk3QKpX6eCdh67p0PuWm/7WUJQxH2S
DxsT9vB/iZriTIEe/ILoOQF0Aqp7AgNCcLcLAmbxXQkXYCCSB35Vp06u+eTWjG0/
pyS5V14stGtw+fA0DJp5ZJV4eqJ5LqxMlYvEZ/qKTEdoCeaXv2QEmN6dVqjDoTAo
k0t5u4YRXzEVCfXAC3ocplNdtCA72wjFJcSbfif4BSC8bDACTXtnPC7nD0VndZLp
+RiNLeiENhk0oTC+UVdSc+n2nJOzkCK0vYu0Ads4JGIB7g8IB3z2t9ICmsWrgnhd
NdcOe15BincrGA8avQ1cWXsfIKEjbrnEuEk9b5jel6NfHtPKoHc9mDpRdNPISeVa
wDBM1mJChneHt59Nh8Gah74+TM1jBsw4fhJPvoc7Atcg740JErb904mZfkIEmojC
VPhBHVQ9LHBAdM8qFI2kRK0IynOmAZhexlP/aT/kpEsEPyaZQlnBn3An1CRz8h0S
PApL8PytggYKeQmRhl499+6jLxcZ2IegLfqq41dzIjwHwTMplg+1pKIOVojpWA==
-----END CERTIFICATE-----
</ca>
key-direction 1
<tls-auth>
#
# 2048 bit OpenVPN static key
#
-----BEGIN OpenVPN Static key V1-----
e685bdaf659a25a200e2b9e39e51ff03
0fc72cf1ce07232bd8b2be5e6c670143
f51e937e670eee09d4f2ea5a6e4e6996
5db852c275351b86fc4ca892d78ae002
d6f70d029bd79c4d1c26cf14e9588033
cf639f8a74809f29f72b9d58f9b8f5fe
fc7938eade40e9fed6cb92184abb2cc1
0eb1a296df243b251df0643d53724cdb
5a92a1d6cb817804c4a9319b57d53be5
80815bcfcb2df55018cc83fc43bc7ff8
2d51f9b88364776ee9d12fc85cc7ea5b
9741c4f598c485316db066d52db4540e
212e1518a9bd4828219e24b20d88f598
a196c9de96012090e333519ae18d3509
9427e7b372d348d352dc4c85e18cd4b9
3f8a56ddb2e64eb67adfc9b337157ff4
-----END OpenVPN Static key V1-----
</tls-auth>

Try to establish the VPN connection and check the log.

here it is.. (btw now it is get connected but after getting connected no INTERNET to clients)

Sun Oct 11 17:19:56 2020 daemon.info dnsmasq-dhcp[9402]: DHCPREQUEST(br-lan) 192.168.2.193 a0:b4:a5:3f:e8:83
Sun Oct 11 17:19:56 2020 daemon.info dnsmasq-dhcp[9402]: DHCPACK(br-lan) 192.168.2.193 a0:b4:a5:3f:e8:83 android-acb2bc4fc651e360
Sun Oct 11 17:20:01 2020 daemon.notice openvpn(NORDVPN_US)[11498]: OpenVPN 2.4.7 mips-openwrt-linux-gnu [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [MH/PKTINFO] [AEAD]
Sun Oct 11 17:20:01 2020 daemon.notice openvpn(NORDVPN_US)[11498]: library versions: OpenSSL 1.1.1h  22 Sep 2020, LZO 2.10
Sun Oct 11 17:20:01 2020 daemon.warn openvpn(NORDVPN_US)[11498]: WARNING: --ping should normally be used with --ping-restart or --ping-exit
Sun Oct 11 17:20:01 2020 daemon.notice openvpn(NORDVPN_US)[11498]: Outgoing Control Channel Authentication: Using 512 bit message hash 'SHA512' for HMAC authentication
Sun Oct 11 17:20:01 2020 daemon.notice openvpn(NORDVPN_US)[11498]: Incoming Control Channel Authentication: Using 512 bit message hash 'SHA512' for HMAC authentication
Sun Oct 11 17:20:01 2020 daemon.notice openvpn(NORDVPN_US)[11498]: TCP/UDP: Preserving recently used remote address: [AF_INET]172.98.86.91:1194
Sun Oct 11 17:20:01 2020 daemon.notice openvpn(NORDVPN_US)[11498]: Socket Buffers: R=[163840->163840] S=[163840->163840]
Sun Oct 11 17:20:01 2020 daemon.notice openvpn(NORDVPN_US)[11498]: UDP link local: (not bound)
Sun Oct 11 17:20:01 2020 daemon.notice openvpn(NORDVPN_US)[11498]: UDP link remote: [AF_INET]172.98.86.91:1194
Sun Oct 11 17:20:01 2020 daemon.notice openvpn(NORDVPN_US)[11498]: TLS: Initial packet from [AF_INET]172.98.86.91:1194, sid=00bbb901 227d1598
Sun Oct 11 17:20:01 2020 daemon.warn openvpn(NORDVPN_US)[11498]: WARNING: this configuration may cache passwords in memory -- use the auth-nocache option to prevent this
Sun Oct 11 17:20:02 2020 daemon.notice openvpn(NORDVPN_US)[11498]: VERIFY OK: depth=1, C=PA, O=NordVPN, CN=NordVPN CA5
Sun Oct 11 17:20:02 2020 daemon.notice openvpn(NORDVPN_US)[11498]: VERIFY KU OK
Sun Oct 11 17:20:02 2020 daemon.notice openvpn(NORDVPN_US)[11498]: Validating certificate extended key usage
Sun Oct 11 17:20:02 2020 daemon.notice openvpn(NORDVPN_US)[11498]: ++ Certificate has EKU (str) TLS Web Server Authentication, expects TLS Web Server Authentication
Sun Oct 11 17:20:02 2020 daemon.notice openvpn(NORDVPN_US)[11498]: VERIFY EKU OK
Sun Oct 11 17:20:02 2020 daemon.notice openvpn(NORDVPN_US)[11498]: VERIFY OK: depth=0, CN=us6366.nordvpn.com
Sun Oct 11 17:20:03 2020 daemon.notice openvpn(NORDVPN_US)[11498]: Control Channel: TLSv1.2, cipher TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384, 4096 bit RSA
Sun Oct 11 17:20:03 2020 daemon.notice openvpn(NORDVPN_US)[11498]: [us6366.nordvpn.com] Peer Connection Initiated with [AF_INET]172.98.86.91:1194
Sun Oct 11 17:20:04 2020 daemon.notice openvpn(NORDVPN_US)[11498]: SENT CONTROL [us6366.nordvpn.com]: 'PUSH_REQUEST' (status=1)
Sun Oct 11 17:20:04 2020 daemon.notice openvpn(NORDVPN_US)[11498]: PUSH: Received control message: 'PUSH_REPLY,redirect-gateway def1,dhcp-option DNS 103.86.96.100,dhcp-option DNS 103.86.99.100,sndbuf 524288,rcvbuf 524288,explicit-exit-notify,comp-lzo no,route-gateway 10.8.0.1,topology subnet,ping 60,ping-restart 180,ifconfig 10.8.0.10 255.255.255.0,peer-id 7,cipher AES-256-GCM'
Sun Oct 11 17:20:04 2020 daemon.notice openvpn(NORDVPN_US)[11498]: OPTIONS IMPORT: timers and/or timeouts modified
Sun Oct 11 17:20:04 2020 daemon.notice openvpn(NORDVPN_US)[11498]: OPTIONS IMPORT: explicit notify parm(s) modified
Sun Oct 11 17:20:04 2020 daemon.notice openvpn(NORDVPN_US)[11498]: OPTIONS IMPORT: compression parms modified
Sun Oct 11 17:20:04 2020 daemon.notice openvpn(NORDVPN_US)[11498]: OPTIONS IMPORT: --sndbuf/--rcvbuf options modified
Sun Oct 11 17:20:04 2020 daemon.notice openvpn(NORDVPN_US)[11498]: Socket Buffers: R=[163840->327680] S=[163840->327680]
Sun Oct 11 17:20:04 2020 daemon.notice openvpn(NORDVPN_US)[11498]: OPTIONS IMPORT: --ifconfig/up options modified
Sun Oct 11 17:20:04 2020 daemon.notice openvpn(NORDVPN_US)[11498]: OPTIONS IMPORT: route options modified
Sun Oct 11 17:20:04 2020 daemon.notice openvpn(NORDVPN_US)[11498]: OPTIONS IMPORT: route-related options modified
Sun Oct 11 17:20:04 2020 daemon.notice openvpn(NORDVPN_US)[11498]: OPTIONS IMPORT: --ip-win32 and/or --dhcp-option options modified
Sun Oct 11 17:20:04 2020 daemon.notice openvpn(NORDVPN_US)[11498]: OPTIONS IMPORT: peer-id set
Sun Oct 11 17:20:04 2020 daemon.notice openvpn(NORDVPN_US)[11498]: OPTIONS IMPORT: adjusting link_mtu to 1657
Sun Oct 11 17:20:04 2020 daemon.notice openvpn(NORDVPN_US)[11498]: OPTIONS IMPORT: data channel crypto options modified
Sun Oct 11 17:20:04 2020 daemon.notice openvpn(NORDVPN_US)[11498]: Data Channel: using negotiated cipher 'AES-256-GCM'
Sun Oct 11 17:20:04 2020 daemon.notice openvpn(NORDVPN_US)[11498]: Outgoing Data Channel: Cipher 'AES-256-GCM' initialized with 256 bit key
Sun Oct 11 17:20:04 2020 daemon.notice openvpn(NORDVPN_US)[11498]: Incoming Data Channel: Cipher 'AES-256-GCM' initialized with 256 bit key
Sun Oct 11 17:20:04 2020 daemon.notice openvpn(NORDVPN_US)[11498]: TUN/TAP device tun0 opened
Sun Oct 11 17:20:04 2020 daemon.notice openvpn(NORDVPN_US)[11498]: TUN/TAP TX queue length set to 100
Sun Oct 11 17:20:04 2020 daemon.notice openvpn(NORDVPN_US)[11498]: /sbin/ifconfig tun0 10.8.0.10 netmask 255.255.255.0 mtu 1500 broadcast 10.8.0.255
Sun Oct 11 17:20:04 2020 daemon.notice openvpn(NORDVPN_US)[11498]: /sbin/route add -net 172.98.86.91 netmask 255.255.255.255 gw 192.168.1.1
Sun Oct 11 17:20:04 2020 daemon.notice openvpn(NORDVPN_US)[11498]: /sbin/route add -net 0.0.0.0 netmask 128.0.0.0 gw 10.8.0.1
Sun Oct 11 17:20:04 2020 daemon.notice openvpn(NORDVPN_US)[11498]: /sbin/route add -net 128.0.0.0 netmask 128.0.0.0 gw 10.8.0.1
Sun Oct 11 17:20:04 2020 daemon.notice openvpn(NORDVPN_US)[11498]: Initialization Sequence Completed
1 Like

Post updated runtime configuration:

ip address show; ip route show table all; ip rule show; \
iptables-save; head -n -0 /etc/resolv.* /tmp/resolv.*

hi i just did this

ip address show; ip route show table all; ip rule show; \
iptables-save; head -n -0 /etc/resolv.* /tmp/resolv.*

now it seems to be working... tks
now i'm getting an IP from US for clients.. but my NETFLIX stop working...

should i mark this is "SOLVED" and start a fresh thread on that

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.