Navigation

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

    How to redirect public traffic to openvpn connected client

    OpenVPN
    2
    3
    520
    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.
    • N
      norbi771 last edited by

      Hello Community!

      I have pfsense router in datacenter and some static IPs available.
      I have FreeBSD host somwhere in the Internet, behind a NAT, that establishes connection via openvpn to my PFSense router.
      If I establish another VPN connection I can reach that FreeBSD host over vpn tunnel via 10.0.6.250 IP (static assignment).

      I'd like to start web server on the FreeBSD host (running OpenVPN client) and have this web server visible via the IP of the pf sense router from the Internet side. I thought I could achieve that by NAT port forward on pfsense, forwarding port eg. 80 to the vpn client IP address 10.0.6.250, but it doesn't work and I don't know how to fix that.

      Could you point me to the right direction?
      I will appreciate any help in configuring that.

      Thank you

      Norbert

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

        In addition to the port forwarding you will need an outbound NAT rule for the OpenVPN interface.
        In Firewall: NAT: Outbound try to add a rule like this:
        Interface=OpenVPN, Source=any, Destination=any (or your vpn clients IP), Translation=Interface address

        1 Reply Last reply Reply Quote 0
        • N
          norbi771 last edited by

          It worked, after I restarted the pfsense box.

          Thank you :-)

          1 Reply Last reply Reply Quote 0
          • First post
            Last post

          Products

          • Platform Overview
          • TNSR
          • pfSense
          • Appliances

          Services

          • Training
          • Professional Services

          Support

          • Subscription Plans
          • Contact Support
          • Product Lifecycle
          • Documentation

          News

          • Media Coverage
          • Press
          • Events

          Resources

          • Blog
          • FAQ
          • Find a Partner
          • Resource Library
          • Security Information

          Company

          • About Us
          • Careers
          • Partners
          • Contact Us
          • Legal
          Our Mission

          We provide leading-edge network security at a fair price - regardless of organizational size or network sophistication. We believe that an open-source security model offers disruptive pricing along with the agility required to quickly address emerging threats.

          Subscribe to our Newsletter

          Product information, software announcements, and special offers. See our newsletter archive to sign up for future newsletters and to read past announcements.

          © 2021 Rubicon Communications, LLC | Privacy Policy