FreeBSD and VPN Issue

Discussion in 'Linux' started by HORIZONTAL THINKER, Aug 29, 2015.

  1. HORIZONTAL THINKER

    HORIZONTAL THINKER MDL Member

    Jun 13, 2012
    155
    22
    10
    #1 HORIZONTAL THINKER, Aug 29, 2015
    Last edited by a moderator: Apr 20, 2017
    Hi all,

    I'm currently getting to grips with using FreeBSD after many years using M$. I'm running into an issue atm when using a VPN.
    Basically what's happening is, the wireless or wired connection drops for a milli-second randomly hence disconnecting me from the VPN.
    If i then:

    Code:
    sudo service openvpn stop
    I get a constant, uninterrupted connection?

    I've also tried:

    Code:
    sudo service netif restart
    But all this does is re-start the service but the problem persists.

    Any input would be very welcome :biggrin:
     
  2. Skaendo

    Skaendo MDL Addicted

    Sep 23, 2014
    888
    521
    30
    #2 Skaendo, Aug 29, 2015
    Last edited by a moderator: Apr 20, 2017

    Did you install OpenVPN from /usr/ports/security/openvpn?

    If you did and didn't manually configure that might be the problem.

    I would suggest that you remove OpenVPN and reinstall it like this:

    Code:
    # cd /usr/ports/security/openvpn
    # make config
    
    make sure that the PW_SAVE option is set, then continue the install:

    Code:
    # make install clean
    
    And your config file (/usr/local/etc/openvpn/) should look similar to this:
    (This may not include the PW_SAVE settings)

    Code:
    client
    dev tun
    proto udp
    
    # The hostname/IP and port of the server.
    remote my.vpnserver.org 1194
    
    resolv-retry infinite
    ;nobind
    
    # Downgrade privileges after initialization (non-Windows only)
    user openvpn
    group openvpn
    
    # Try to preserve some state across restarts.
    ;persist-key
    persist-tun
    ;mute-replay-warnings
    
    # SSL/TLS parms.
    ca /usr/local/etc/openvpn/ca.crt
    cert /usr/local/etc/openvpn/lake.crt
    key /usr/local/etc/openvpn/private/lake.key
    
    ;ns-cert-type server
    
    # If a tls-auth key is used on the server
    # then every client must also have the key.
    tls-auth /usr/local/etc/openvpn/private/ta.key 1
    
    # Select a cryptographic cipher.
    # If the cipher option is used on the server
    # then you must also specify it here.
    cipher AES-256-CBC
    
    # Enable compression on the VPN link.
    comp-lzo
    
    # Set log file verbosity.
    verb 3
    
    # Silence repeating messages
    ;mute 20
    
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. HORIZONTAL THINKER

    HORIZONTAL THINKER MDL Member

    Jun 13, 2012
    155
    22
    10
    Many thanks.

    I'll re-do it all again lol and hopefully it'll run smoothly. My brain is on fire with all of this but in a good way :biggrin:
     
  4. Skaendo

    Skaendo MDL Addicted

    Sep 23, 2014
    888
    521
    30

    FreeBSD is one of the more advanced distros IMO. It takes getting used to. It is more manual configure intense than most of the Linux distros out there, but it's pretty comparable to Slackware.

    I have been playing with it more here recently, but the one thing that I am unimpressed by is the slow software releases.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. HORIZONTAL THINKER

    HORIZONTAL THINKER MDL Member

    Jun 13, 2012
    155
    22
    10
    Yeah i agree with your whole post. I kinda' jumped in at the deep end knowing FreeBSD would be a challenge.
    I've used Debian. Mint. Ubuntu etc and all had they're good and bad points.Zorin i loved :biggrin: because i'm lazy at times.

    FreeBSD is a big challenge for me atm lol
     
  6. HORIZONTAL THINKER

    HORIZONTAL THINKER MDL Member

    Jun 13, 2012
    155
    22
    10
    Using Ubuntu atm and now working on trying to secure my connection and getting Ad-Block to work properly lol
     
  7. Skaendo

    Skaendo MDL Addicted

    Sep 23, 2014
    888
    521
    30
    #7 Skaendo, Aug 31, 2015
    Last edited: Aug 31, 2015
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...