Page 1 of 1

Forward, map, netmap, nat 2 public ip

Posted: Thu Oct 04, 2012 3:51 am
by HellMind
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?

Re: Forward, map, netmap, nat 2 public ip

Posted: Sun Nov 04, 2012 9:41 pm
by kovalkin
+1
if you decide to puzzle, please answer :)

Re: Forward, map, netmap, nat 2 public ip

Posted: Sat Jan 26, 2013 2:21 am
by und3ath
still nobody knows? I need this same urgently

Re: Forward, map, netmap, nat 2 public ip

Posted: Sat Jan 26, 2013 11:24 am
by wirelesswaves
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.

Re: Forward, map, netmap, nat 2 public ip

Posted: Sat Jan 26, 2013 11:34 am
by und3ath
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)

Re: Forward, map, netmap, nat 2 public ip

Posted: Sat Jan 26, 2013 11:50 am
by wirelesswaves
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)

Re: Forward, map, netmap, nat 2 public ip

Posted: Sat Jan 26, 2013 12:03 pm
by und3ath
Ha... I am not authorized to sent private messages... WTF? :D
my email: peto (at) yellownet.sk

Re: Forward, map, netmap, nat 2 public ip

Posted: Sat Jan 26, 2013 12:28 pm
by wirelesswaves
check your emails, I sent you some info.


Simon

Re: Forward, map, netmap, nat 2 public ip

Posted: Sat Jan 26, 2013 12:45 pm
by und3ath
check your emails, I sent you some info.


Simon
Still have no email.

Re: Forward, map, netmap, nat 2 public ip

Posted: Sat Jan 26, 2013 12:51 pm
by wirelesswaves
sent at 11.27 my time.. Try your spam box or email me simonjpryce(at)hotmail.com