Community discussions

MUM Europe 2020
 
HellMind
Member Candidate
Member Candidate
Topic Author
Posts: 146
Joined: Mon Jun 26, 2006 11:58 pm

Forward, map, netmap, nat 2 public ip

Thu Oct 04, 2012 3:51 am

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?
 
kovalkin
just joined
Posts: 2
Joined: Fri Nov 02, 2012 6:57 pm

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

Sun Nov 04, 2012 9:41 pm

+1
if you decide to puzzle, please answer :)
 
und3ath
Frequent Visitor
Frequent Visitor
Posts: 54
Joined: Mon Mar 23, 2009 7:01 pm

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

Sat Jan 26, 2013 2:21 am

still nobody knows? I need this same urgently
 
wirelesswaves
Member
Member
Posts: 311
Joined: Thu May 31, 2007 12:38 am

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

Sat Jan 26, 2013 11:24 am

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.
 
und3ath
Frequent Visitor
Frequent Visitor
Posts: 54
Joined: Mon Mar 23, 2009 7:01 pm

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

Sat Jan 26, 2013 11:34 am

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)
 
wirelesswaves
Member
Member
Posts: 311
Joined: Thu May 31, 2007 12:38 am

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

Sat Jan 26, 2013 11:50 am

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)
 
und3ath
Frequent Visitor
Frequent Visitor
Posts: 54
Joined: Mon Mar 23, 2009 7:01 pm

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

Sat Jan 26, 2013 12:03 pm

Ha... I am not authorized to sent private messages... WTF? :D
my email: peto (at) yellownet.sk
 
wirelesswaves
Member
Member
Posts: 311
Joined: Thu May 31, 2007 12:38 am

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

Sat Jan 26, 2013 12:28 pm

check your emails, I sent you some info.


Simon
 
und3ath
Frequent Visitor
Frequent Visitor
Posts: 54
Joined: Mon Mar 23, 2009 7:01 pm

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

Sat Jan 26, 2013 12:45 pm

check your emails, I sent you some info.


Simon
Still have no email.
 
wirelesswaves
Member
Member
Posts: 311
Joined: Thu May 31, 2007 12:38 am

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

Sat Jan 26, 2013 12:51 pm

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

Who is online

Users browsing this forum: MSN [Bot] and 109 guests