Community discussions

MikroTik App
 
yancho
Member Candidate
Member Candidate
Topic Author
Posts: 207
Joined: Tue Jun 01, 2004 3:04 pm
Location: LV

Prefered source changed in 3.x ?

Tue May 06, 2008 2:27 pm

We have following config:
Two different subnets:
/ip address 
address=10.0.0.3/24 interface=wlan1 
address=192.168.1.3/27 interface=wlan1
Default gateway is from subnet 10.0/24 preferred source from other subnet 192.168.1.0/27:
/ip route dst-address=0.0.0.0/0 gateway=10.0.0.1 pref-src=192.168.1.3
This worked fine in 2.9.x but since 3.x source stays 10.3.
Any hints?
 
JJCinAZ
Member
Member
Posts: 475
Joined: Fri Oct 22, 2004 8:03 am
Location: Tucson, AZ

Re: Prefered source changed in 3.x ?

Tue May 06, 2008 6:34 pm

Are you using a Masq NAT rule? If so, then the preferred source will not affect the source IP in version 3.x as it would in version 2.x. If you havea MASQ NAT rule, change it to a SRC-NAT action and enter the 192.168.1.3 in the to-address property.
 
yancho
Member Candidate
Member Candidate
Topic Author
Posts: 207
Joined: Tue Jun 01, 2004 3:04 pm
Location: LV

Re: Prefered source changed in 3.x ?

Tue May 06, 2008 9:32 pm

Thx JJCinAZ.
 
EgyCom
Member Candidate
Member Candidate
Posts: 123
Joined: Thu May 31, 2007 9:47 pm

Re: Prefered source changed in 3.x ?

Wed May 07, 2008 2:21 am

in Linux Kernel 2.6 (RouterOS 3.0) preferred source is used ONLY for locally generated traffic (output traffic)
but in Linux kernel v2.4 (RouterOS 2.9.x) was for all traffic

so as JJCinAZ said SRC-NAT will help

Who is online

Users browsing this forum: Amazon [Bot], janekn, raiser, selecter and 36 guests