• List connected OpenVPN Users like Status / Openvpn from a shell script

    3
    0 Votes
    3 Posts
    2k Views
    GertjanG
    @mleone87 said in List connected OpenVPN Users like Status / Openvpn from a shell script: Status / Open page You mean the Status / OpenVPN ? Or the OpenVPN widget ? The page Status / OpenVPN - which is a PHP script file, contains the answer. You will find on line 54 : ... $clients = openvpn_get_active_clients(); .... When you check that function, it's here /etc/inc/openvp,n.php, you will see that the GUI (php) is questioning the openvpn process by connecting to it's socket, and sending command a get a list with all the details. Check for yourself : Find the socket name of your OpenVPN server instance, it's here /var/etc/openvpn/. There will be a one or more files called serverx.sock where x is the OpenVPN server instance. Now, presume you have only one instance, so x is "1" telnet -u /var/etc/openvpn/server1.sock and type the command state On each line you have the details of a connected user. Pipe this rsult through a "wc -l" command to get the number of lines = number of connected users. Type quit to exit the connection. Use the OpenVPN manual to know how to talk to the OpenVPN process. Up to you to script it all out. You can use the Status / OpenVPN php file and OpenVPN widget php file as a guide line.
  • Port Forwarding over OpenVPN Issue

    1
    0 Votes
    1 Posts
    114 Views
    No one has replied
  • Echo Reply (ICMP) necessary for OpenVPN client to work?

    18
    0 Votes
    18 Posts
    2k Views
    W
    @Rico thanks mate! will try this.
  • in the source of rules not see the uservpn

    1
    0 Votes
    1 Posts
    138 Views
    No one has replied
  • OVPN instances not showing on Dashboard ?

    1
    0 Votes
    1 Posts
    132 Views
    No one has replied
  • How to distribute connections between two wan-ip interfaces

    32
    0 Votes
    32 Posts
    3k Views
    W
    @dotdash According to your answer, using HAProxy would not be the best option for my scenario, as stated, I would have to use TCP on HAProxy and submit myself to reduce the performance of my clients, and that is not what I want to apply.
  • [SOLVED][2.4.5]OpenVPN\Certificate Creation SSL Errors

    27
    0 Votes
    27 Posts
    858 Views
    johnpozJ
    The only problem with such a solution - is the actual root cause remains a mystery :(
  • OpenVPN client connecting from unusual port number

    14
    0 Votes
    14 Posts
    2k Views
    RicoR
    The easy way is check your Routers WAN IP and compare with a site like whatismyipaddress.com If the IP is different you are using CGN. With the Router WAN IP RFC1918 you don't need to check any further of course, then it is 1000% CGN. -Rico
  • Bypass geo blocking by ASN

    1
    0 Votes
    1 Posts
    368 Views
    No one has replied
  • VPN for specific SSID

    5
    0 Votes
    5 Posts
    862 Views
    T
    @johnpoz I went ahead and copied over the outbound nat rules I had setup for my earlier PIA interface (where I had setup IP address based VPN routing for my other subnet). I made the necessary changes related to the Interface (VLAN interface instead of PIA interface) and subnet change to 192.168.2.0 instead of 192.168.1.0. I am still not able to connect to the internet. Btw, I understand that an unmanaged switch is not the correct approach, but for now this is all I have handy. I will go down the path of using managed switches in the near future.
  • OpenVPN TAP Issues

    7
    0 Votes
    7 Posts
    705 Views
    C
    I'll give it a shot. I was actually playing around with using a TUN network this morning and figured out how I can assign the same NAT'ed subnet to the TUN OpenVPN network, so I MIGHT have gotten it to work without messing with TAP at all. Fingers crossed.
  • 0 Votes
    1 Posts
    134 Views
    No one has replied
  • openVPN issue : remote client partially loses internet connexion

    9
    0 Votes
    9 Posts
    721 Views
    T
    @Rico Well, thanks but no, it's not only the Google search box but also the search results that kept appearing. ...and btw, I just noticed that my Microsoft Teams client was still not working when vpn is on So, more research to do !
  • In one VPN out another

    14
    0 Votes
    14 Posts
    1k Views
    S
    @xman111 I believe what you are referring to Split Tunneling. This is a feature that not most VPNs offer but i believe PureVPN does. Theres a 7 day free tial on it for $0.99 if you wanna try
  • 0 Votes
    1 Posts
    265 Views
    No one has replied
  • OpenVPN Single site, many roadwarriors

    1
    0 Votes
    1 Posts
    152 Views
    No one has replied
  • OpenVPN and Google Authenticator reauthentication

    2
    0 Votes
    2 Posts
    376 Views
    J
    I think I might have figured it out. I tried setting "reneg-sec 0" in the custom settings. I'll know in an hour or so if it worked. There's aa note in the OpenVPN doc that if this isn't disabled by setting it to 0 it can cause 2 factor clients to constantly have to reauthorize. Fingers crossed...
  • Remote access to site-to-site lan issues

    7
    0 Votes
    7 Posts
    597 Views
    L
    @viragomann in the other post you mention at your parents box in the site2site settings, option "Remote Network/s": 10.0.8.0/24 (comma seperated from the other entries My Server 2 is an asus router with merlin firmware using OpenVPN. Would the equivalent of this "Remote Network/s" (since its not pfsense) be a custom config like push "route 10.87.88.0 255.255.255.0" (since that is what the network for remote access client1 is on?) Edit - nevermind. After a little more digging i added "route 10.87.88.0 255.255.0" to my config on server 2 and now when I'm in as a RA client on 10.87.88.x I can get to 10.55.55.0. Thanks!
  • Does OpenVPN favour IPv4?

    6
    0 Votes
    6 Posts
    581 Views
    jimpJ
    Might be something in the client that prioritizes RFC1918 addresses to prevent VPN leakage in cases like that. It's unfortunately common for people to accidentally mix DNS like that and unintentionally send private traffic across public networks via IPv6 when it was meant to stay private on IPv4.
  • OpenVPN no authenticated log generated

    31
    0 Votes
    31 Posts
    3k Views
    noplanN
    @Gertjan said in OpenVPN no authenticated log generated: --> Like exit 0 so the next piece to the puzzle ! send me an e-mail script for openVPN thanks for helpin me out with info
Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.