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

    [HELP] NAT to a Server w/Different Gateway other than pfSense

    Scheduled Pinned Locked Moved NAT
    3 Posts 2 Posters 752 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 Offline
      darkavenger
      last edited by

      Hello,
      I would like to make NAT to a server has different gateway other than pfSense

      My Topology is like attached diagram.

      If I change the server's gateway address with pfSense NAT working perfectly then I can reach the server from Internet (also via OpenVPN) .  If not dropped with CLOSED:SYN_SENT message.

      It may stupid question but I appreciated to hear if it is possible in pfSense.

      Thank you.

      pfsense.JPG
      pfsense.JPG_thumb

      1 Reply Last reply Reply Quote 0
      • DerelictD Offline
        Derelict LAYER 8 Netgate
        last edited by

        No.

        The fix for that would have to be on the server at 10.0.0.1.

        It would have to know what connections are coming from pfSense and send reply traffic back that way instead of to its default gateway.

        Chattanooga, Tennessee, USA
        A comprehensive network diagram is worth 10,000 words and 15 conference calls.
        DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
        Do Not Chat For Help! NO_WAN_EGRESS(TM)

        1 Reply Last reply Reply Quote 0
        • D Offline
          darkavenger
          last edited by

          Thank you for the reply. Your answer push me that think differently. And I solved the problem (I think so..) for OPENVPN side. I've just added a static rule for "IPv4 Tunnel Network" -30.0.0.0/24 for me- of OPENVPN into the server.
          Now I can access the server through the OPENVPN.

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