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

    Redirect internal Ip > External

    Scheduled Pinned Locked Moved NAT
    2 Posts 2 Posters 422 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.
    • B
      bibawa
      last edited by

      Hi,

      I've an application which has an hardcoded internal ip address in it's code (192.168.6.13) for reachint an internal mail server.
      At the moment we're decoming the mail server, so the ip address 192.168.6.13 will no longer reachable.

      I want to redirect all traffic destignated for 192.168.6.13 being redirected to an external ip (reachable over WAN).

      What's the best way to achive this redirection? I played around with NAT, 1:1 nat but without any success ...

      PS.: it's not possible to change the ip address in the code

      brg,

      johnpozJ 1 Reply Last reply Reply Quote 0
      • johnpozJ
        johnpoz LAYER 8 Global Moderator @bibawa
        last edited by

        @bibawa said in Redirect internal Ip > External:

        it's not possible to change the ip address in the code

        I find that hard to believe - where did this app come from, written in house and now the writer is no longer with the company?

        Should of pointed to fqdn not some IP.

        Anyway - assume your pfsense has an IP on this 192.168.6 network? If so then create a vip so it answers arp for 192.168.6.13

        Then create a port forward sending the traffic where you want to send it. If the sender is on a different network that routes through pfsense say the client it on 192.168.5/24 for something then you do not need to create the vip.

        An intelligent man is sometimes forced to be drunk to spend time with his fools
        If you get confused: Listen to the Music Play
        Please don't Chat/PM me for help, unless mod related
        SG-4860 24.11 | Lab VMs 2.8, 24.11

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