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

ifconfig problem

OpenVPN
1
2
392
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 Jan 25, 2023, 12:46 AM

    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 Jan 25, 2023, 2:14 PM

      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
      1 out of 2
      • First post
        1/2
        Last post
      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.