Community discussions

MikroTik App
 
ivanperino
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 70
Joined: Sat Jan 20, 2007 4:34 am

Prefered Source Ignored

Fri Jun 05, 2009 9:15 pm

v3.20 over x86

# DST-ADDRESS----------PREF-SRC------GAT-STATE----GATEWAY-----DIST--INTERFACE
0 A S 0.0.0.0/0----------200.47.9.180---reachable------200.47.9.190--1------vlan10
1 S 0.0.0.0/0--------------------------reachable------pppoe-1-------1-----pppoe-1
2 ADC 10.9.0.0/24-------10.9.0.1--------------------------------------0-----ether-2
3 ADC 200.47.9.160/27---200.47.9.180-------------------------------- 0-----vlan10
4 ADC 200.63.148.71/32--190.176.5.150--------------------------------0-----pppoe-1

as you can see, #1 should be Default Route, and any other packet originated in the router (from ip 200.47.9.180) should be routed by #0 because pref source is one of the router IP address. However, the only route I have is #0 because #1 is deactivated.

I want any connection originated from the 200.47.9.180 will be routed through vlan10 interface and not by pppoe-1 interface. But any other forwward connection be routed through pppoe-1.

I hope you can understand, I am sure I´m doing something wrong. I am looking forward to hearing any response from you soon.
Thank you very much

Ivan Perino
Last edited by ivanperino on Fri Jun 05, 2009 11:51 pm, edited 1 time in total.
 
User avatar
Chupaka
Forum Guru
Forum Guru
Posts: 8712
Joined: Mon Jun 19, 2006 11:15 pm
Location: Minsk, Belarus
Contact:

Re: Prefered Source Ignored

Fri Jun 05, 2009 10:55 pm

at first, you have two default routes in one routing table - it's wrong

at second, pref-src is... address for 'masquerade'? =) it have nothing to do with external connections

I think, you should make another routing table and then mark incoming connections from vlan10 so that route them to 200.47.9.190, not pppoe-1
 
ivanperino
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 70
Joined: Sat Jan 20, 2007 4:34 am

Re: Prefered Source Ignored

Sat Jun 06, 2009 3:28 am

Dear Chupaka, pref-src is exactly for doing that. Suppose you have more than 1 internet connection and only 1 default route. So, what if you want to reach the router from outside (internet) to the public address in the router??? router will reply but it will do it by using default route which is necessary not the reached in you request! do you undersand me? this type of connection are not allowed in IPv4, you must go and back through the same path. This is the usefulness of PREF-SRC. Every connection started or replied FROM the X1.X1.X1.X1 will use the route marked as prf-src with X1.X1.X1.X1.
I am so sorry if I am not able to make it understandable. I have made it before and it has worked ok, I am not sure what I am doing wrong this time.

thank you anyway for your help.
kind regards.

Ivan Perino
 
User avatar
Chupaka
Forum Guru
Forum Guru
Posts: 8712
Joined: Mon Jun 19, 2006 11:15 pm
Location: Minsk, Belarus
Contact:

Re: Prefered Source Ignored

Sun Jun 07, 2009 2:23 am

any comments from MT Staff? but even in Wiki examples you should mark all incoming connections and then route them via the same interface. why are you sure that
pref-src is exactly for doing that
?
 
changeip
Forum Guru
Forum Guru
Posts: 3833
Joined: Fri May 28, 2004 5:22 pm

Re: Prefered Source Ignored

Mon Jun 08, 2009 7:06 pm

in 3.x preferred source is no longer used. You must use src-nat. preferred source also has nothing do with existing connections or requests from remote machines, it typically was only used for output chain stuff.
 
changeip
Forum Guru
Forum Guru
Posts: 3833
Joined: Fri May 28, 2004 5:22 pm

Re: Prefered Source Ignored

Mon Jun 08, 2009 7:07 pm

also, asyncronous routing is what you are talking about, but with different IP addresses on each WAN you have to make it work yourself.

Who is online

Users browsing this forum: Bing [Bot], kphf, Majestic-12 [Bot], sindy and 53 guests