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

    OpenVN not routing server IP

    Scheduled Pinned Locked Moved OpenVPN
    2 Posts 2 Posters 415 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.
    • D
      DasK
      last edited by DasK

      Hello,

      I have an OpenVPN server configured IP: 10.23.1.0/24

      I have enabled the option to redirect all the traffic through the tunnel
      0_1536667775956_e1feee00-f34c-4390-9b49-a8b3dd8cd25e-image.png
      All the traffic is correctly redirected through the tunnel except the server itself.

      Let's imagine my server public IP is "1.3.3.7" (so the IP of my VPN server).

      Example:
      I connect my computer to the VPN tunnel and I make a traceroute on 8.8.8.8:
      0_1536668077063_919dd4b3-03cf-4bea-b852-c7072ebe36a6-image.png
      As you can see the traffic correctly pass into the tunnel.

      But now if I make a traceroute on my server "1.3.3.7":
      0_1536668377626_721eaae2-5297-461e-b7b8-3687338816fb-image.png

      In this case, the traffic didn't pass into the VPN tunnel.

      I need to redirect this traffic because I have some VPN client who has an extra firewall who only allow the communication to my VPN server on the VPN PORT but I also have a website on this server so the client can't connect to the website.

      I don't know if I need to edit the configuration of pfSense, server VPN or the client itself.

      I hope you'll be able to help me.

      Thanks

      1 Reply Last reply Reply Quote 0
      • V
        viragomann
        last edited by

        You cannot route the servers public IP through the tunnel. That would mean the vpn tunnel would be routed through the tunnel itself. How should that work?

        Access the web server by its internal IP. Also you can setup a split DNS and provide it to the vpn clients. So the client get the internal IP when they try to access the web server.

        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.