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

    Possible to pass source IP over tun0 to clients behind pfSense

    OpenVPN
    3
    4
    675
    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.
    • P
      pf123user
      last edited by

      Have a few servers and my ISP blocks all the good ports. Looking to forward source IPs from eth0 to tun0 on OpenVPN server, over vpn to machines behind pfSense firewall. OpenVPN server is Linux OS running community OpenVPN. PfSense connects as client and has a dedicated subnet for the VPN connection. Thanks in advance for any help.

      1 Reply Last reply Reply Quote 0
      • jimpJ
        jimp Rebel Alliance Developer Netgate
        last edited by

        Yes, you can. You have to assign the interface and get the rules set right (search around – that's been discussed and explained many many times here), but it can forward traffic across like that.

        I have a block of addresses routed to my house that way. Aside from the lower MTU and higher latency from running over a VPN, it works OK.

        Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

        Need help fast? Netgate Global Support!

        Do not Chat/PM for help!

        1 Reply Last reply Reply Quote 0
        • P
          pf123user
          last edited by

          @jimp:

          Yes, you can. You have to assign the interface and get the rules set right (search around – that's been discussed and explained many many times here), but it can forward traffic across like that.

          I have a block of addresses routed to my house that way. Aside from the lower MTU and higher latency from running over a VPN, it works OK.

          Awesome thanks! I will search. Don't like doing anything I don't understand but also have been searching a bunch before I asked here. I assume I'm not the only one trying to get a static ip via cheap vps over vpn. Seems everything I find is settings for outbound only or outbound privacy only. Might sound dumb but what should I be searching for?

          Thanks again. I figured it would be fairly straightforward once I know what to point where and how to structure the rules.

          1 Reply Last reply Reply Quote 0
          • J
            jimlad
            last edited by

            are you trying to do this?  https://forum.pfsense.org/index.php?topic=128718.0

            But Server/Client the other way round?

            openvpn.png
            openvpn.png_thumb

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