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

Redirect internal Ip > External

Scheduled Pinned Locked Moved NAT
2 Posts 2 Posters 400 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 Aug 1, 2022, 11:49 AM

    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,

    J 1 Reply Last reply Aug 1, 2022, 12:40 PM Reply Quote 0
    • J
      johnpoz LAYER 8 Global Moderator @bibawa
      last edited by Aug 1, 2022, 12:40 PM

      @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
      2 out of 2
      • First post
        2/2
        Last post
      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
        This community forum collects and processes your personal information.
        consent.not_received