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

    Redirect traffic from internal ip to external ip directly to server

    NAT
    1
    1
    1.6k
    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.
    • M
      mreptile
      last edited by

      Dear Community

      Normally I use Nat Reflection to be able to connect from the internal network to the external ip. This way it is redirected to the server.
      But now I have a special problem.

      When I log in over openvpn I want to be able to use the external ip to connect to the internal server but
      the server should not be reachable from the outside, when not connected to vpn.
      For a normal lan client I would just say in Nat: Source: 192.168.1.0/24 Destination WAN –-> Redirect Internal Server IP
      But the VPN Client keeps its external IP as source. Therfore this is not possible.
      Is it possible to somehow redirect traffic to an internal ip that comes from an openvpn client to the wan adress?? Probably Outbound Nat.

      If yes I would need step by step instructions as I have never worked with virtual ips and outbound nat before.

      Or easy: If someone from the VPN Client tries to reach the external ip, he shoud automatically be forwarded to the internal server ip.
      Is someone able to sort this thing out?

      Greetings

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