Openwrt tun0 issues

When I restart the network I get the following error. Any idea what the issue is?

25: tun0: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UNKNOWN qlen 100
    link/[65534] 
    inet 10.35.16.5/22 brd 10.35.19.255 scope global tun0
       valid_lft forever preferred_lft forever
    inet6 fe80::4e0d:d9f:f00a:5aa0/64 scope link 
       valid_lft forever preferred_lft forever

Where is the error exactly?
Post also the
uci show network; uci show openvpn or whatever the config of this tunnel is.

Hi, first of all thank you for looking into this.

sudo uci show network
network.loopback=interface
network.loopback.ifname='lo'
network.loopback.proto='static'
network.loopback.ipaddr='127.0.0.1'
network.loopback.netmask='255.0.0.0'
network.globals=globals
network.globals.ula_prefix='dac5:42c1:c2d2::/48'
network.lan=interface
network.lan.type='bridge'
network.lan.ifname='eth0.1'
network.lan.proto='static'
network.lan.netmask='255.255.255.0'
network.lan.ip6assign='60'
network.lan.ipaddr='192.168.42.1'
network.lan.dns='10.0.254.102' '198.245.51.147'
network.wan=interface
network.wan.ifname='eth1.2'
network.wan.proto='dhcp'
network.wan.peerdns='0'
network.wan.dns='10.0.254.102' '198.245.51.147' '10.0.254.102' '198.245.51.147'
network.wan6=interface
network.wan6.ifname='eth1.2'
network.wan6.proto='dhcpv6'
network.wan6.reqprefix='auto'
network.wan6.reqaddress='try'
network.wan6.auto='0'
network.wan6.dns='10.0.254.102' '198.245.51.147'
network.@switch[0]=switch
network.@switch[0].name='switch0'
network.@switch[0].reset='1'
network.@switch[0].enable_vlan='1'
network.@switch_vlan[0]=switch_vlan
network.@switch_vlan[0].device='switch0'
network.@switch_vlan[0].vlan='1'
network.@switch_vlan[0].ports='0 1 2 3 5t'
network.@switch_vlan[1]=switch_vlan
network.@switch_vlan[1].device='switch0'
network.@switch_vlan[1].vlan='2'
network.@switch_vlan[1].ports='4 6t'
network.openpntun=interface
network.openpntun.proto='none'
network.openpntun.ifname='tun0'
network.pixelserv=interface
network.pixelserv.ifname='@lan'
network.pixelserv.proto='static'
network.pixelserv.netmask='255.255.255.0'
network.pixelserv.delegate='0'
network.pixelserv.ipaddr='192.168.42.254'

sudo uci show openvpn

openvpn.custom_config=openvpn
openvpn.custom_config.config='/etc/openvpn/my-vpn.conf'
openvpn.sample_server=openvpn
openvpn.sample_server.port='1194'
openvpn.sample_server.proto='udp'
openvpn.sample_server.dev='tun'
openvpn.sample_server.ca='/etc/openvpn/ca.crt'
openvpn.sample_server.cert='/etc/openvpn/server.crt'
openvpn.sample_server.key='/etc/openvpn/server.key'
openvpn.sample_server.dh='/etc/openvpn/dh1024.pem'
openvpn.sample_server.server='10.8.0.0 255.255.255.0'
openvpn.sample_server.ifconfig_pool_persist='/tmp/ipp.txt'
openvpn.sample_server.keepalive='10 120'
openvpn.sample_server.compress='lzo'
openvpn.sample_server.persist_key='1'
openvpn.sample_server.persist_tun='1'
openvpn.sample_server.user='nobody'
openvpn.sample_server.status='/tmp/openvpn-status.log'
openvpn.sample_server.verb='3'
openvpn.sample_client=openvpn
openvpn.sample_client.client='1'
openvpn.sample_client.dev='tun'
openvpn.sample_client.proto='udp'
openvpn.sample_client.remote='my_server_1 1194'
openvpn.sample_client.resolv_retry='infinite'
openvpn.sample_client.nobind='1'
openvpn.sample_client.persist_key='1'
openvpn.sample_client.persist_tun='1'
openvpn.sample_client.user='nobody'
openvpn.sample_client.ca='/etc/openvpn/ca.crt'
openvpn.sample_client.cert='/etc/openvpn/client.crt'
openvpn.sample_client.key='/etc/openvpn/client.key'
openvpn.sample_client.compress='lzo'
openvpn.sample_client.verb='3'
openvpn.ivpn=openvpn
openvpn.ivpn.config='/etc/openvpn/Singapore.ovpn'
openvpn.ivpn.enabled='1'

What I also see is that my VPN uses port 2049 actually and not the 1194

Thank you.

You need to post also the Singapore.ovpn file.
cat /etc/openvpn/Singapore.ovpn

client
dev tun
proto udp
remote sg.gw.ivpn.net 2049
auth-user-pass /etc/root/pass

resolv-retry infinite
nobind
persist-tun
persist-key
persist-remote-ip

cipher AES-256-CBC
tls-cipher TLS-DHE-RSA-WITH-AES-256-CBC-SHA:TLS-DHE-DSS-WITH-AES-256-CBC-SHA:TLS-RSA-WITH-AES-256-CBC-SHA
remote-cert-tls server
verify-x509-name sg name-prefix
key-direction 1
comp-lzo no
verb 3

;ca ca.crt

-----BEGIN CERTIFICATE-----

Here is the certificate provided by the VPN service.

-----END CERTIFICATE-----


-----BEGIN OpenVPN Static key V1-----

Here is the key provided by the VPN service.

-----END OpenVPN Static key V1-----

I think it is obvious:

What is with it?
The port needs to be changed to 1194?

I think this file is automatically generated by your VPN provider, so the port is correct. It doesn't have to be 1194.
I still don't understand what the problem is here.

1 Like