Results 1 to 4 of 4

Thread: program to run a command with openvpn

  1. #1
    Join Date
    May 2019
    Beans
    16

    program to run a command with openvpn

    is there any program to run only one command with openvpn?
    i have an openvpn setup on my server and i want another machine to only connect to that vpn connection for running that command.
    does anybody know anything about that?

  2. #2
    Join Date
    Mar 2010
    Location
    Squidbilly-Land
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: program to run a command with openvpn

    setup the firewall to only allow openvpn connections from the 1, single, remote machine's static ip address.

    But really for something like that, I'd use ssh instead, which can force a specific command to be run based on which ssh-key is used for authentication.

    The right tool, for the right job.

  3. #3
    Join Date
    May 2019
    Beans
    16

    Re: program to run a command with openvpn

    i have my firewall configured for that openvpn ip but i dont want to tunnelwhole ubuntu machine(my desktop machine) with openvpn just one command and i cant use like a socks proxy because that wont be encrypted thats why i was looking for some openvpn tool
    Last edited by bardiamgtgc; December 17th, 2020 at 03:35 PM.

  4. #4
    Join Date
    Mar 2010
    Location
    Squidbilly-Land
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: program to run a command with openvpn

    ssh can provide an encrypted SOCKS proxy, but to get DNS encrypted, you'd also need DoH setup. Normally, DNS is UDP and UDP cannot be proxied via ssh.
    I use an ssh tunnel as a SOCKS proxy more than I use a VPN. I've posted my script for this in these forums a few times over the years.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •