L2 Bridge Openvpn ubuntu



  • Dear All i am facing an issue on client side i am unable to up the openvpn on client side and the error is write UDP: Network is unreachable (code=101)] kindly helpme out regaring this issue the complete logs are mention below:

    root@ubuntu:~# sudo systemctl status openvpn@server.service
    ● openvpn@server.service - OpenVPN connection to server
    Loaded: loaded (/lib/systemd/system/openvpn@.service; disabled; vendor preset: enabled)
    Active: active (running) since Sat 2019-07-06 18:13:49 PKT; 31min ago
    Docs: man:openvpn(8)
    https://community.openvpn.net/openvpn/wiki/Openvpn24ManPage
    https://community.openvpn.net/openvpn/wiki/HOWTO
    Main PID: 1482 (openvpn)
    Status: "Pre-connection initialization successful"
    Tasks: 1 (limit: 2269)
    CGroup: /system.slice/system-openvpn.slice/openvpn@server.service
    └─1482 /usr/sbin/openvpn --daemon ovpn-server --status /run/openvpn/server.status 10 --cd /etc/openvpn --script-security 2 --config /etc/openvpn/server.conf

    Jul 06 18:39:19 ubuntu ovpn-server[1482]: SIGUSR1[soft,network-unreachable] received, process restarting
    Jul 06 18:39:19 ubuntu ovpn-server[1482]: Restart pause, 300 second(s)
    Jul 06 18:44:19 ubuntu ovpn-server[1482]: TCP/UDP: Preserving recently used remote address: [AF_INET]192.168.5.1:1195
    Jul 06 18:44:19 ubuntu ovpn-server[1482]: Socket Buffers: R=[212992->212992] S=[212992->212992]
    Jul 06 18:44:19 ubuntu ovpn-server[1482]: UDP link local: (not bound)
    Jul 06 18:44:19 ubuntu ovpn-server[1482]: UDP link remote: [AF_INET]192.168.5.1:1195
    Jul 06 18:44:19 ubuntu ovpn-server[1482]: write UDP: Network is unreachable (code=101)
    Jul 06 18:44:19 ubuntu ovpn-server[1482]: Network unreachable, restarting
    Jul 06 18:44:19 ubuntu ovpn-server[1482]: SIGUSR1[soft,network-unreachable] received, process restarting
    Jul 06 18:44:19 ubuntu ovpn-server[1482]: Restart pause, 300 second(s)


  • LAYER 8

    the default port for openvpn is 1194 are you sure that 1195 is correct ? did you check if the port is open and reachable ? does this have anythig to do with pfsense?
    Network unreachable
    the error is pretty explanatory
    if you think there is a problem with pfsense check the firewall logs


Log in to reply