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

    Nat between subnets

    Scheduled Pinned Locked Moved 2.0-RC Snapshot Feedback and Problems - RETIRED
    3 Posts 2 Posters 1.4k 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
      disa
      last edited by

      Dear,
      I have a pfsense 2.0RC1 successfully running.
      I have openvpn server working, when I connect I get an IP like 172.20.0.0/24
      I also have a bridge interface with subnet 192.168.4.0/24
      I push the 192.168.4.0/24 to the vpn client, and they can ping the pfsense on it's 192.168.4.x ip
      But when the vpn client pings another hosts on that subnet they receive the ping from the 172.20.0.x address and they don't know how to reply (pfsense can't be the gw of that subnet)
      I'd like to be able to masquerade my ip in 172.20.0.0/24 to something on the 192.168.4.0/24 subnet when it tries to reach that subnet. Is this possible? How?

      thanks

      1 Reply Last reply Reply Quote 0
      • GruensFroeschliG
        GruensFroeschli
        last edited by

        Create a static route on the gateway of this subnet pointing to the pfSense for this subnet.
        This is the easiest way.

        If you really really really want to do source NAT (i don't recommend it), assign the OpenVPN interface, enable manual outbound NAT rule generation, and create a rule for the OpenVPN interface.

        We do what we must, because we can.

        Asking questions the smart way: http://www.catb.org/esr/faqs/smart-questions.html

        1 Reply Last reply Reply Quote 0
        • D
          disa
          last edited by

          Ok I'll try to go with the outbound rule, thanks

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