2 DSL links, modems are configured in bridge mode. Mikrotik is dialing the ISP Wan connection which are pppoe. This server is also configured as pppoe server for client end. I have configured PCC (source base address approach) for load balancing the wan links. All working fine. Now I want to route WEB server and other few ports to the local windows machine. WWW Service on mikrotik have different port. I have created port forward rule for both wan links but its not working.Following is my config.
I think the mangle “Accept” rules in prerouting chain for in-interface(s) pppoe-out1 / pppoe-out2 are the reason you’re having trouble. I suppose this is an attempt to speed things up and skip rule-processing. Add another matcher to these two rules connection-mark=!no-mark
Then you need to go ahead and connection mark wan_1 and wan_2 for inbound packets from pppoe-out1 / pppoe-out2 because if the request comes in on 1, but PCC decides to send the reply out on 2, then the remote user is going to drop the reply packets from your server because they’re coming from the wrong public IP.
If you want to keep from doing unnecessary checks, make all connection mark / pcc rules be a chain “mark connections”
and put the pcc logic / inbound pppoe1/pppoe2 rules in there.
Then make rule 1 in the prerouting chain be a simple connection-mark=!no-mark → jump to “mark connections”
At the end of mark connections, put a “return” rule so that the individual packets can still get marked.
Leave the packet mark rules in the main prerouting chain as always.
I know you have given right info, but dueto my lack of knowledge, I am unable to understand. Can you please give some rules examples
does these two accept rules are necessary? I ahve just copied the pcc script from the internet and working fine, its just PORT FORWARDING issue
See the problem? If the incoming connections aren’t marked for whichever interface they arrive on, and then go out the wrong port, the reply will have the wrong source IP on it, and the user’s computer will drop the packets because it never asked to talk to 13.13.13.13 . . . .
This makes sure that inbound packets will be able to find the LAN when they’re added to the forced routing tables.
With all of this in place, your PCC routing should remain intact, but pinholes should be forced to send replies out whichever public IP interface the requests came in through.