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

    How to re-route specific ip?

    Scheduled Pinned Locked Moved NAT
    1 Posts 1 Posters 1.2k 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.
    • S
      steviep
      last edited by

      Hello, i have a local network device (192.168.10.20) which communicates with only 1 specific IP on the INTERNET (190.210.60.40). Although, i need to force the local device to communicate with a different IP on the INTERNET (190.210.60.45) So, how would i create a rule which re-routes all traffic from the 190.210.60.40 ip TO the 190.210.60.45 ip?

      note: the two 190.210.60.40 and 190.210.60.45 ips are public ips somwhere on the internet, just to be clear.

      I know that it would look like this in IPTables:
      iptables -t nat -A PREROUTING -d 190.210.60.40 -p tcp -j DNAT –to 190.210.60.45

      If i missed any details please let me know thanks!

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