Can't push local subnet

Collapse
This topic has been answered.
X
X
 
  • Time
  • Show
Clear All
new posts
  • CocodaMonkey
    Junior Member
    • Nov 2024
    • 3

    Can't push local subnet

    I have my OpenVPN server setup and I can connect to it. However I'm trying to make it so I can also access the local subnet and I'm getting nowhere. I know I have to add the route to the router for things to work for other devices on the network but for testing purposes I'm just trying to access to the local IP of the server which should rule out any misconfigurations of the router. My server and client connection file are below.

    I can currently connect without issue and ping the server at 10.83.0.1. However the local IP of the server is 192.168.85.135 and I'm pushing that route in the server config file but I cannot ping that IP when connecting. Should that not work?

    Server Config
    Code:
    port 1194
    proto udp
    dev tun
    ca ca.crt
    cert Server.crt
    key Server.key  # This file should be kept secret
    dh dh2048.pem
    topology subnet
    server 10.83.0.0 255.255.255.0
    ifconfig-pool-persist ipp.txt
    push "route 192.168.85.0 255.255.255.0"
    keepalive 10 120
    persist-key
    persist-tun
    status openvpn-status.log
    verb 3
    explicit-exit-notify 1
    Client Config
    Code:
    client
    dev tun
    proto udp
    remote 1.1.1.1 1194 #Real IP removed
    resolv-retry infinite
    nobind
    persist-key
    persist-tun
    <ca>
    -----BEGIN CERTIFICATE-----
    Cert removed
    -----END CERTIFICATE-----
    </ca>
    <cert>
    -----BEGIN CERTIFICATE-----
    Cert Removed
    -----END CERTIFICATE-----
    </cert>
    <key>
    -----BEGIN PRIVATE KEY-----
    Private Key Removed
    -----END PRIVATE KEY-----
    </key>
    remote-cert-tls server
    verb 3​
  • Answer selected by Pippin at 2024-11-18, 04:16 AM.
    CocodaMonkey
    Junior Member
    • Nov 2024
    • 3

    Please mark this solved. I tried to edit the title to say solved but I couldn't.

    For anyone else who might have this problem my config as posted is perfect. I forgot to enable IP Forwarding on the server. Once I turned that on everything was working as expected.

    Comment

    • CocodaMonkey
      Junior Member
      • Nov 2024
      • 3

      #2
      Please mark this solved. I tried to edit the title to say solved but I couldn't.

      For anyone else who might have this problem my config as posted is perfect. I forgot to enable IP Forwarding on the server. Once I turned that on everything was working as expected.

      Comment

      Working...
      😀
      😂
      🥰
      😘
      🤢
      😎
      😞
      😡
      👍
      👎