Hey everyone, I’m having some trouble with OpenVPN. I am very new to the software, this being my first time using it, so pardon any ignorance that may seem like it should be common sense. Here’s my neofetch and ip route, I’ll also add my server and client config files in the comments below.
ego@ubuntu:~$ neofetch
ego@ubuntu
----------
OS: Ubuntu 22.04.3 LTS x86_64
Host: Z690 Extreme
Kernel: 5.15.0-89-generic
Uptime: 11 hours
Packages: 1284 (dpkg), 10 (snap)
Shell: bash 5.1.16
Resolution: 1920x1080
DE: LXQt 0.17.1
WM: Xfwm4
WM Theme: Default-hdpi
Theme: Adwaita-dark [GTK2/3]
Icons: Papirus [GTK2/3]
Terminal: qterminal
Terminal Font: Monospace 11
CPU: 12th Gen Intel i3-12100 (8) @ 4.300GHz
GPU: Intel Device 4692
Memory: 2149MiB / 127651MiB
ego@ubuntu:~$ ip route
default via 192.168.0.1 dev enp3s0
192.168.0.0/24 dev enp3s0 proto kernel scope link src 192.168.0.2
192.168.1.0/24 dev tun0 proto kernel scope link src 192.168.1.1
My phone is currently successfully connnected to the VPN server and is assigned an address in the .1.0/24 subnet, but I can’t reach my router or AdGuardHome admin panel web servers at their local IP addresses. SMB/SSH are working over the VPN connection just fine, and I can ping my Ubuntu server (which hosts AdGuardHome and OpenVPN) @ .0.2 but not my router @ .0.1
Success accessing certain things is clearly very inconsistent and I’m not sure what the problem is. I managed to get this all set up by referring to OpenVPNs website as well as utilizing ChatGPT to process and personalize the instructions for my needs, so I’m sure there are plenty of things that aren’t configured entirely accurately, I’m just not sure where to look. Any help is greatly appreciated.

  • nathankrebsOPB
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago

    Yes

    ego@ubuntu:~$ sysctl net.ipv4.ip_forward

    net.ipv4.ip_forward = 1

    ego@ubuntu:~$ sudo ufw status

    [sudo] password for ego:

    Status: active

    To Action From

    -- ------ ----

    32400 ALLOW Anywhere

    32400/tcp ALLOW Anywhere

    53 ALLOW Anywhere

    1194/udp ALLOW Anywhere

    137/udp ALLOW Anywhere

    138/udp ALLOW Anywhere

    139/tcp ALLOW Anywhere

    445/tcp ALLOW Anywhere

    OpenSSH ALLOW Anywhere

    3389 ALLOW Anywhere

    32400 (v6) ALLOW Anywhere (v6)

    32400/tcp (v6) ALLOW Anywhere (v6)

    53 (v6) ALLOW Anywhere (v6)

    1194/udp (v6) ALLOW Anywhere (v6)

    137/udp (v6) ALLOW Anywhere (v6)

    138/udp (v6) ALLOW Anywhere (v6)

    139/tcp (v6) ALLOW Anywhere (v6)

    445/tcp (v6) ALLOW Anywhere (v6)

    OpenSSH (v6) ALLOW Anywhere (v6)

    3389 (v6) ALLOW Anywhere (v6)