Prefered Source Ignored

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

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

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

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

?

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.

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