Forward, map, netmap, nat 2 public ip

Lets say i got A ip and I want to forward all the traffic to B which isnt internal and isnt in that box.
What can I do?
On linux this worked for me:

iptables -t nat -A PREROUTING --dst $YourIP -p tcp --dport $YourPort -j DNAT --to-destination $TargetIP:$TargetPort
iptables -t nat -A POSTROUTING -p tcp --dst $TargetIP --dport $TargetPort -j SNAT --to-source $YourIP
iptables -t nat -A OUTPUT --dst $YourIP -p tcp --dport $YourPort -j DNAT --to-destination $TargetIP:$TargetPort

on routeros, what can I do?

+1
if you decide to puzzle, please answer :slight_smile:

still nobody knows? I need this same urgently

I think nobody is replying because we dont fully understand what you are trying to do.

Maybe it is SRc nat that you want to use… You should be able to Nat across any address or range of adresses inside the network to another address that is outside the network.

I use that a lot to Nat across a customer phone IP address from inside the network (his!) (lan side) to another address on the Wan side of my cpe.

I want to do this:

Every request that will come to my public IP (from outside) I want to redirect to another IP on internet.

I dont want to to redirections to my local IPs. It is external redirect.
For example: You (you are not on my network) want to connect to 1.2.3.4 (my public IP) and it will redirect you to 8.9.10.11 (this ip is not on my network)

ok, I see what you want to do.. Its a bit advanced for me, so guess you have to wait until some of the more experienced read the post.

Alternatively send an email to me and I will forward some email details of guys who have always helped me out (so long as its a tiny request)

Ha… I am not authorized to sent private messages… WTF? :smiley:
my email: peto (at) yellownet.sk

check your emails, I sent you some info.


Simon

Still have no email.

sent at 11.27 my time.. Try your spam box or email me simonjpryce(at)hotmail.com