Hi,
i am having some trouble with policy routing
I have 2 pppoe connections and i need that my two computers with specific ip are going to the internet through pppoe2. I configured policy routing (mark routing) but one of the server has public ip from pppoe1 and another one has ip from pppoe2. i can t find why my policy routing does not working well, in mangle i see how traffic is passing through that rule.
i also put static route for that traffic:
add disabled=no distance=1 dst-address=0.0.0.0/0 gateway=pppoe-out2 routing-mark="for_servers" scope=30 target-scope=10
add action=mark-routing chain=prerouting disabled=no new-routing-mark="for_servers" passthrough=yes src-address=10.1.0.10
add action=mark-routing chain=prerouting disabled=no new-routing-mark="for_servers" passthrough=yes src-address=10.1.0.20
i also tried with passthrough=no
i also configured dst-nat for remote connection from internet to that 2 computers:
add action=dst-nat chain=dstnat disabled=no dst-port=3388 in-interface=pppoe-out1 protocol=tcp to-addresses=10.1.0.20 to-ports=3389
add action=dst-nat chain=dstnat disabled=no dst-port=3389 in-interface=pppoe-out1 protocol=tcp to-addresses=10.1.0.10 to-ports=3389
add action=dst-nat chain=dstnat disabled=no dst-port=3388 in-interface=pppoe-out2 protocol=tcp to-addresses=10.1.0.20 to-ports=3389
add action=dst-nat chain=dstnat disabled=no dst-port=3389 in-interface=pppoe-out2 protocol=tcp to-addresses=10.1.0.10 to-ports=3389
there is also some packets that are passing through that rules in dst-nat
right now situation is like this:
computer 10.1.0.20 (going to intenret via pppoe1) is available from internet via pppoe1 port 3388 and unavailable via pppoe1 port 3389
computer 10.1.0.10 (going to internet via pppoe2) is available from internet via pppoe2 port 3389 and unavailable via pppoe2 port 3388
with all that i have two problem, first policy routing is not working, and another problem is that i can connect to each of my server with port 3388 OR 3389, not both ports
Any suggestions??
Thanks