Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    ifconfig problem

    Scheduled Pinned Locked Moved OpenVPN
    2 Posts 1 Posters 396 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Z
      zapatistal
      last edited by

      I have a working VPN client connection and would like to add a second one. But I am having connection problem with it.
      I was able to narrow down the problem to the following : (comparison between the 1st vpn client connection and this new vpn client connection I am trying to setup)

      1st vpn client connection issues the following command with no problems : /sbin/ifconfig ovpnc1 10.4.172.110 10.4.172.1 mtu 1500 netmask 255.255.255.0 up

      whereas the 2nd vpn connection issues the following command : sbin/ifconfig tun 172.27.224.12 172.27.224.1 mtu 1500 netmask 255.255.240.0 up

      so instead of 'tun', it should be 'ovpnc2' that should be mentioned I suppose.

      How can I get this working? Because of this the connection is resetting in a loop.

      1 Reply Last reply Reply Quote 0
      • Z
        zapatistal
        last edited by

        Well, it seems I figured it out :

        the config file had the

        dev tun
        dev-type tun

        commands that were causing the problem. I deleted them and the problem is solved.

        I used to think it was good practice to dump whatever is written in the ovpn file downloaded from the server, but it seems not.

        1 Reply Last reply Reply Quote 1
        • First post
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.