Yealink Forums
T4xG no OpenVPN IP when using TAP - Printable Version

+- Yealink Forums (http://forum.yealink.com/forum)
+-- Forum: IP Phone Series (/forumdisplay.php?fid=4)
+--- Forum: T4x Series (/forumdisplay.php?fid=31)
+--- Thread: T4xG no OpenVPN IP when using TAP (/showthread.php?tid=22121)



T4xG no OpenVPN IP when using TAP - Output101 - 09-01-2016 02:25 AM

I have a T48G and I have setup an OpenVPN server using TAP. My device will connect (I see a white VPN symbol) however I do not see a TAP adapter (thus no IP) in my device log. When I use TUN, I am able to see an adapter with IP. Note: I tested with a Windows box and will confirm my server has been setup properly.

My WAN IP is 192.168.0.133 and I'm connecting to 192.168.0.190 (test environment for those who notice both are a 'local' addresses). I expect a 10.x.x.x address on my remote network.

Why is my phone not getting an IP (or why do I not see an IP)?

Here is part of my log:
Code:
Aug 31 18:00:03 openvpn[748]: [pfsense] Peer Connection Initiated with 192.168.0.133:1194
Aug 31 18:00:05 openvpn[748]: TUN/TAP device tap0 opened
Aug 31 18:00:05 openvpn[748]: NOTE: unable to redirect default gateway -- VPN gateway parameter (--route-gateway or --ifconfig) is missing
Aug 31 18:00:05 openvpn[748]: Initialization Sequence Completed
Aug 31 18:00:05 openvpn[748]: Link success --init.c, 1138----
eth0      Link encap:Ethernet  HWaddr 00:15:65:9C:68:6C  
          inet addr:192.168.0.102  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: fe80::215:65ff:fe9c:686c/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:5355 errors:0 dropped:0 overruns:0 frame:0
          TX packets:283 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1024
          RX bytes:1061157 (1.0 MiB)  TX bytes:149980 (146.4 KiB)
          Interrupt:8

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

  PID USER       VSZ STAT COMMAND
    1 root      2064 S    init                
    2 root         0 SW<  [kthreadd]
    3 root         0 SW<  [ksoftirqd/0]



RE: T4xG no OpenVPN IP when using TAP - Output101 - 09-01-2016 04:10 AM

Even if I don't force all traffic to go through the gateway, the tap0 device says it is open but never appears.

Code:
Aug 31 20:20:38 openvpn[747]: IMPORTANT: OpenVPN's default port number is now 1194, based on an official port number assignment by IANA.  OpenVPN 2.0-beta16 and earlier used 5000 as the default port.
Aug 31 20:20:38 openvpn[747]: NOTE: OpenVPN 2.1 requires '--script-security 2' or higher to call user-defined scripts or executables
Aug 31 20:20:38 openvpn[747]: Re-using SSL/TLS context
Aug 31 20:20:38 openvpn[747]: LZO compression initialized
Aug 31 20:20:38 openvpn[747]: UDPv4 link local (bound): [undef]:1194
Aug 31 20:20:38 openvpn[747]: UDPv4 link remote: 192.168.0.133:1194
Aug 31 20:20:40 openvpn[747]: [pfsense] Peer Connection Initiated with 192.168.0.133:1194
Aug 31 20:20:41 ATP [522]: ATP <3+error > Call fail
Aug 31 20:20:42 openvpn[747]: TUN/TAP device tap0 opened
Aug 31 20:20:42 openvpn[747]: Initialization Sequence Completed
Aug 31 20:20:42 openvpn[747]: Link success --init.c, 1138----
...
Code:
Aug 31 20:21:11 ATP [522]: ATP <3+error > http to file failed, code = -3, msg = Connect Failed, retry = 3
eth0      Link encap:Ethernet  HWaddr 00:15:65:9C:68:6C  
          inet addr:192.168.0.102  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: fe80::215:65ff:fe9c:686c/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1903 errors:0 dropped:0 overruns:0 frame:0
          TX packets:201 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1024
          RX bytes:340629 (332.6 KiB)  TX bytes:85871 (83.8 KiB)
          Interrupt:8

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

  PID USER       VSZ STAT COMMAND
    1 root      2064 S    init



RE: T4xG no OpenVPN IP when using TAP - gordon0193 - 04-11-2020 08:16 PM

This still seems to be an issue as I'm on FW 28.83.0.120 and my T46G never created a TAP adapter in the log files. Change it to a TUN connection and it works and can be seen in the log files.

Thanks,