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

    Forward IP in TUN mode

    Scheduled Pinned Locked Moved OpenVPN
    3 Posts 2 Posters 772 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.
    • F
      flunkyball
      last edited by

      Hi everyone,

      OpenVPN is running currently for road worriors in TUN mode with PFSense flawless.
      Within the corporate network traffic should be routed differently if someone is connected via VPN.

      At the moment all traffic within the corporate network from the VPN seems to come from the IP address of the OpenVPN server and not from the virtual IP address of the connected clients.
      Therefore it is not possible to distinguish between local traffic and traffic comming from the VPN clients.

      How to set up IP forwarding in TUN mode with pfsense ?

      Cheers!

      K 1 Reply Last reply Reply Quote 0
      • K
        Konstanti @flunkyball
        last edited by Konstanti

        @flunkyball
        Hi
        OUTBOUND NAT on the local interface enabled for OPENVPN clients ?
        If yes , disable it . Then the IP address will not change

        Specially connected through Openvpn to the network (got the address 192.168.20.2, server address 192.168.20.1)
        Verified
        Virtual ip does not change

        0_1547810995959_bc0502c5-245f-4ef4-bdb3-7fd7dbad7d59-image.png

        1 Reply Last reply Reply Quote 1
        • F
          flunkyball
          last edited by

          @Konstanti
          Thx for the help.
          Indeed outbound NAT was enabled. After changing that everything works as exspected.

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