#20729: proto 'none' overwriting tun interfaces
--------------------------+--------------------------------
  Reporter:  openwrt@…    |      Owner:  developers
      Type:  defect       |     Status:  new
  Priority:  normal       |  Milestone:
 Component:  base system  |    Version:  Chaos Calmer 15.05
Resolution:               |   Keywords:
--------------------------+--------------------------------

Comment (by risa2000):

 I went ahead and changed my `/etc/config/network` to:
 {{{
 config interface        vpn
         option ifname   tun0
         option proto    static
         option auto     0
 }}}
 but I see the same behavior as described above. No IP address assigned on
 `tun0` interface:
 {{{
 root@risa-wrt:~# ip addr
 5: tun0: <POINTOPOINT,MULTICAST,NOARP> mtu 1500 qdisc fq_codel state DOWN
 group default qlen 100
     link/none
 }}}
 even though `openvpn` believes it did a correct job:
 {{{
 root@risa-wrt:~# cat /tmp/openvpn.log
 Sun Dec 13 11:10:35 2015 us=479025 OpenVPN 2.3.7 mips-openwrt-linux-gnu
 [SSL (PolarSSL)] [LZO] [EPOLL] [MH] [IPv6]
 Sun Dec 13 11:10:35 2015 us=479271 library versions: PolarSSL 1.3.15, LZO
 2.08
 Sun Dec 13 11:10:35 2015 us=480290 Diffie-Hellman initialized with 1024
 bit key
 Sun Dec 13 11:10:35 2015 us=689545 WARNING: file '/etc/openvpn/risa-
 wrt.key' is group or others accessible
 Sun Dec 13 11:10:35 2015 us=691493 crypto_adjust_frame_parameters:
 Adjusting frame parameters for crypto by 40 bytes
 Sun Dec 13 11:10:35 2015 us=691798 TLS-Auth MTU parms [ L:1541 D:138 EF:38
 EB:0 ET:0 EL:3 ]
 Sun Dec 13 11:10:35 2015 us=692076 Socket Buffers: R=[163840->131072]
 S=[163840->131072]
 Sun Dec 13 11:10:35 2015 us=721492 TUN/TAP device tun0 opened
 Sun Dec 13 11:10:35 2015 us=721803 TUN/TAP TX queue length set to 100
 Sun Dec 13 11:10:35 2015 us=722078 do_ifconfig, tt->ipv6=0,
 tt->did_ifconfig_ipv6_setup=0
 Sun Dec 13 11:10:35 2015 us=722420 /sbin/ip link set dev tun0 up mtu 1500
 Sun Dec 13 11:10:35 2015 us=730891 /sbin/ip addr add dev tun0 local
 192.168.100.1 peer 192.168.100.2
 Sun Dec 13 11:10:35 2015 us=749310 /sbin/ip route add 192.168.4.0/24 via
 192.168.100.2
 Sun Dec 13 11:10:35 2015 us=759795 /sbin/ip route add 192.168.100.0/24 via
 192.168.100.2
 Sun Dec 13 11:10:35 2015 us=778875 Data Channel MTU parms [ L:1541 D:1450
 EF:41 EB:12 ET:0 EL:3 ]
 Sun Dec 13 11:10:35 2015 us=779184 UDPv4 link local (bound): [undef]
 Sun Dec 13 11:10:35 2015 us=779417 UDPv4 link remote: [undef]
 Sun Dec 13 11:10:35 2015 us=779656 MULTI: multi_init called, r=256 v=256
 Sun Dec 13 11:10:35 2015 us=780002 IFCONFIG POOL: base=192.168.100.4
 size=62, ipv6=0
 Sun Dec 13 11:10:35 2015 us=780262 IFCONFIG POOL LIST
 Sun Dec 13 11:10:35 2015 us=780734 Initialization Sequence Completed
 Sun Dec 13 11:10:45 2015 us=785311  event_wait returned 0
 Sun Dec 13 11:10:46 2015 us=281405  event_wait returned 1
 }}}
 The only difference compared to the original configuration with `proto
 none` is the state of `tun0` interface after the boot (it is `DOWN`).

 I am on r47874.

--
Ticket URL: <https://dev.openwrt.org/ticket/20729#comment:8>
OpenWrt <http://openwrt.org>
Opensource Wireless Router Technology
_______________________________________________
openwrt-tickets mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-tickets

Reply via email to