[solved (for now)] OpenVPN no LAN/Internet Ubuntu, Android okay



  • Hi guys,

    i'm an absolute beginner and I'm fiddling around with my VPN connection and having some issues.

    My setup is as followed:
    Internet -> FritzBox (exposed Host) -> pfSense

    I've used the OpenVPN client export feature and put the config into my Android cellphone. From the phone I can connect to local LAN and Internet without issues. Connection stays for hours.

    I've imported the config into my Linux (ubuntu) machine and I#m able to establish a connection to the OpenVPN server.
    BUT:

    • I'm not able to browse the internet
    • I'm not able to ping an host on LAN
    • If I ping a host on the internet (google.com) I get the correct IP address, but no response.
    • connection closes after a couple of minutes

    from the Linux log I've got the following:

    Nov 11 15:51:10 iPhone8 nm-openvpn[31690]: Initialization Sequence Completed
    Nov 11 15:51:10 iPhone8 nm-dispatcher: req:1 'vpn-up' [tun1]: new request (2 scripts)
    Nov 11 15:51:10 iPhone8 nm-dispatcher: req:1 'vpn-up' [tun1]: start running ordered scripts...
    Nov 11 15:51:19 iPhone8 nm-openvpn[31690]: write to TUN/TAP : Invalid argument (code=22)
    Nov 11 15:51:49 iPhone8 nm-openvpn[31690]: message repeated 3 times: [ write to TUN/TAP : Invalid argument (code=22)]
    Nov 11 15:51:59 iPhone8 nm-openvpn[31690]: write to TUN/TAP : Invalid argument (code=22)
    Nov 11 15:52:09 iPhone8 nm-openvpn[31690]: write to TUN/TAP : Invalid argument (code=22)
    Nov 11 15:52:19 iPhone8 nm-openvpn[31690]: write to TUN/TAP : Invalid argument (code=22)
    Nov 11 15:52:29 iPhone8 nm-openvpn[31690]: write to TUN/TAP : Invalid argument (code=22)
    Nov 11 15:52:39 iPhone8 nm-openvpn[31690]: write to TUN/TAP : Invalid argument (code=22)
    Nov 11 15:52:49 iPhone8 nm-openvpn[31690]: write to TUN/TAP : Invalid argument (code=22)
    Nov 11 15:52:59 iPhone8 nm-openvpn[31690]: write to TUN/TAP : Invalid argument (code=22)
    Nov 11 15:53:09 iPhone8 nm-openvpn[31690]: write to TUN/TAP : Invalid argument (code=22)
    Nov 11 15:54:09 iPhone8 nm-openvpn[31690]: [domainname] Inactivity timeout (--ping-restart), restarting
    

    Don't get confused about the iPhone8, it just the name of the machine.

    Does anyone has an idea, where I need to start digging further?

    What confuses me the most is an working cellphone and a not working Linux machine.

    Any help appreciated.

    Regards,
    Mark



  • Now, I'm even more confused.

    I've unchecked:

    Bildschirmfoto vom 2019-11-11 19-57-53.png

    Now, I can connect to local devices and the internet.

    I thought, if i disable these options, my "public" IP would be the one of my cellphone I'm using as a hotspot for testing purposes, but it's not the case. So I would guess, all traffic is still beeing passed through the VPN connection.

    No I have to fight my next issue:
    I can only reach some of my local devices, I guess it has to do with my (inproper) VLAN setup


Log in to reply