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

How to control the OpenVPN through the CLI?

Scheduled Pinned Locked Moved OpenVPN
2 Posts 2 Posters 334 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.
  • S
    senseivita
    last edited by Jan 17, 2021, 6:53 PM

    I'm trying to rotate the remote tunnel endpoint I use for this searx instance I deployed so it doesn't get (further) banned.

    I would just set up 7 simultaneous clients and policy route one by weekday but I'm pretty sure there's some L2/L3 link/loop or something at my provider's network because when I establish the second tunnel things just stall.

    In addition to user/passwd/TLSkey, my provider requires a certificate for the link but it can take anything--even the webConfigurator one--I assumed then it was only used differentiate a user's clients (they allow unlimited connections). I created a batch, cloned the connection profile and changed certs but it didn't quite work. To work around it I'd like to lump them all up in a gateway group and only bring one up at a time with with a cronjob.

    I think may have already banned my ISP's network because when I use searx over the local (dynamic IP) exit it returns no results. 😅 Rotating tunnels or at least restarting the one to keep changing it up is my only option now.

    Could you tell me the commands to stop, start and restart a client? From htop I got that it could be /usr/local/sbin/openvpn --config /var/etc/openvpn/client#/config.ovpn but if that was it I probably should have another process for this S2S tunnel I have which I can't find it in the [very long] list, or* things like if killing it would be enough to prevent it from respawning or avoiding all of them to come up at once at firewall boot--I'm on the 2.5 beta so I'm updating/rebooting almost daily.

    Thanks !

    –––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
    *:(found it)

    Missing something? Word endings, maybe? I included a free puzzle in this msg if you solv--okay, I'm lying. It's dyslexia, makes me do that, sorry! Just finish the word; they're rarely misspelled, just incomplete. Yeah-yeah-I know. Same thing.

    H 1 Reply Last reply Jan 17, 2021, 8:13 PM Reply Quote 0
    • H
      heper @senseivita
      last edited by Jan 17, 2021, 8:13 PM

      @skilledinept

      https://forum.netgate.com/topic/131539/how-to-restart-openvpn-in-a-script/5?_=1610913942448

      1 Reply Last reply Reply Quote 0
      2 out of 2
      • First post
        2/2
        Last post
      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
        This community forum collects and processes your personal information.
        consent.not_received