Community discussions

just joined
Topic Author
Posts: 3
Joined: Mon Feb 24, 2014 11:23 pm
Reputation: 0

Yet another PCC question

Mon Feb 24, 2014 11:48 pm

I have been fighting with PCC all day without any luck. Currently, I have two WAN connections, one PPPoE and one Cable which are both assigned IP's via DHCP. What happens is that the connections don't load balance at all, it's either one or the other. I usually have to yank a connection to get the other one to become active.

Here's the output from /ip address

Flags: X - disabled, I - invalid, D - dynamic
 #   ADDRESS            NETWORK         INTERFACE
 0   ;;; default configuration     ether2-lan
 1 D xxxxxxxxx  xxxxxxxxx    pppoe-isp1
 2 D xxxxxxxxx   xxxxxxxxx     ether8-isp2-gateway

I've redacted the public IP's even though they change regularly.

Then, I've set up my mangle rules lise so

0   chain=prerouting action=accept dst-address=xxxxxxxxxx in-interface=ether2-lan

 1   chain=prerouting action=accept dst-address=xxxxxxxxxx in-interface=ether2-lan

 2   chain=prerouting action=mark-connection new-connection-mark=ISP1_conn passthrough=yes in-interface=pppoe-ISP11 connection-mark=no-mark

 3   chain=prerouting action=mark-connection new-connection-mark=ISP2_conn passthrough=yes in-interface=ether8-ISP2-gateway connection-mark=no-mark

 4   chain=prerouting action=mark-connection new-connection-mark=ISP1_conn passthrough=yes dst-address-type=!local in-interface=ether2-lan connection-mark=no-mark per-connection-classifier=both-addresses:2/0

 5   chain=prerouting action=mark-connection new-connection-mark=ISP2_conn passthrough=yes dst-address-type=!local in-interface=ether2-lan connection-mark=no-mark per-connection-classifier=both-addresses:2/1

 6   chain=prerouting action=mark-routing new-routing-mark=to_ISP1 passthrough=yes in-interface=ether2-lan connection-mark=ISP1_conn

 7   chain=prerouting action=mark-routing new-routing-mark=to_ISP2 passthrough=yes in-interface=ether2-lan connection-mark=ISP2_conn

 8   chain=output action=mark-routing new-routing-mark=to_ISP1 passthrough=yes connection-mark=ISP1_conn

 9   chain=output action=mark-routing new-routing-mark=to_ISP2 passthrough=yes connection-mark=ISP2_conn

My first question is, do these look right? I added the dst-address field even though I seem to get a different IP each time I reconnect, so it doesn't feel right to me

Finally, here's my /ip route
 #      DST-ADDRESS        PREF-SRC        GATEWAY            DISTANCE
 0 A S                          pppoe-isp1                 1
 1   S                          ether8-isp2-g...        1
 2 ADS                              1
 3   S                          pppoe-isp1                 1
 4   S                          ether8-isp2-g...        1
 5 ADC  pppoe-isp1                 0
 6 ADC     bridge-local              0

Some of these are populated automatically as you can see and that doesn't feel right either. Does any of this look right? I'm happy to tear it all down and start again if required.

Who is online

Users browsing this forum: Baidu [Spider], elgatito, hamed5034, mrz, music4 and 20 guests