Not sure about a list of specific addresses, but you can do a range like
this...

/ip firewall nat add chain=srcnat src-address=192.168.1.0/24
  action=src-nat to-addresses=10.0.0.1-10.0.0.3

You could probably do specific addresses with the "nth" match, but I'm
not very familiar with that.  Maybe something like...

/ip firewall nat add chain srcnat src-address=192.168.1.0/24
  nth=2,0 action=src-nat to-addresses=10.0.0.1
/ip firewall nat add chain srcnat src-address=192.168.1.0/24
  nth=2,1 action=src-nat to-addresses=10.0.0.3
/ip firewall nat add chain srcnat src-address=192.168.1.0/24
  nth=2,2 action=src-nat to-addresses=10.0.0.5


-Kristian

On Thu, 2010-09-09 at 09:47 -0500, Rory McCann wrote:
> I have an interesting question-
> 
> On MT is there a way to srcnat a subnet of IPs to a few different IP 
> addresses dynamically?
> 
> Let's say my subnet is 192.168.1.0/24 and I have 3 public IP addresses 
> 10.0.0.1, 10.0.0.3, 10.0.0.5. Can I have MT randomly srcnat to one of 
> these IPs so that all of my traffic doesn't just appear to come from one 
> address.
> 
> Rather than breaking up the pools and creating 3 rules, I'd like it to 
> have MT srcnat 192.168.1.1 to 10.0.0.1 in one session, and then the next 
> time srcnat to 10.0.0.5.
> 
> Is this possible?

_______________________________________________
Mikrotik mailing list
Mikrotik@mail.butchevans.com
http://www.butchevans.com/mailman/listinfo/mikrotik

Visit http://blog.butchevans.com/ for tutorials related to Mikrotik RouterOS

Reply via email to