Community discussions

MikroTik App
 
hajid
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 96
Joined: Wed Mar 30, 2005 10:04 am

src-nat error at 2.9.27 bug??

Wed Jul 19, 2006 3:39 am

hi before i upgrade from 2.9.19 to 2.9.27 i can used several src-nat, to nat my local IP to several public IP, but when i upgrade to 2.9.27 i can't used again. is there any bug with 2.9.27 at src-nat?
 
User avatar
sergejs
MikroTik Support
MikroTik Support
Posts: 6697
Joined: Thu Mar 31, 2005 3:33 pm
Location: Riga, Latvia
Contact:

Wed Jul 19, 2006 7:34 am

there are not any problems with NAT.
You have to verify your configuration.
 
hajid
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 96
Joined: Wed Mar 30, 2005 10:04 am

Wed Jul 19, 2006 8:26 am

there are not any problems with NAT.
You have to verify your configuration.
# ADDRESS NETWORK BROADCAST INTERFACE
1 192.168.183.1/24 192.168.183.0 192.168.183.255 local
2 192.168.184.1/24 192.168.184.0 192.168.184.255 vlan1
3 10.12.10.113/24 10.12.10.0 10.12.10.255 public-2
4 192.168.0.233/24 192.168.0.0 192.168.0.255 public-2

ip firewall nat

1 chain=srcnat out-interface=public-2 src-address=192.168.183.0/24
action=src-nat to-addresses=192.168.0.233 to-ports=0-65535

2 chain=srcnat out-interface=public-2 src-address=192.168.183.0/24
action=src-nat to-addresses=10.12.10.113 to-ports=0-65535

before it, i used that ip firewall nat rule and work well. but when i upgrade, only work with first rule second rule not work.
 
User avatar
sergejs
MikroTik Support
MikroTik Support
Posts: 6697
Joined: Thu Mar 31, 2005 3:33 pm
Location: Riga, Latvia
Contact:

Wed Jul 19, 2006 8:42 am

traffic is matching by the first rule.
probably, you have to change src-address to 192.168.184.1 (as VLAN address). It's depend on scenario you want to accomplish.