This is my continuous perform at using several ADSL solutions and the Mikrotik PCC guidelines along with some incoming mangling to allow 1 wireless router to fill stability visitors across as many non insured hyperlinks as necessary.
Updated: 7th Jan 2012 – notes: included fixed redirecting represents for incoming visitors as incoming should never drop over to copy tracks, while confident should go over whatever is available. Also cleansed up redirecting purchase so it’s simpler to study.
Note that none of this config needs the use of IP details at all, as it basically uses the pppoe-client connects and your lan program to level visitors. In my example wan1-pppoe,wan2-pppoe,wan3-pppoe are used and lan
02 | add check-gateway=arp comment= "WAN 3 - Distance 1" disabled=no distance=1 dst-address=0.0.0.0/0 gateway=wan3-pppoe routing-mark=wan3 |
03 | add check-gateway=arp comment= "WAN 2 - Distance 1" disabled=no distance=1 dst-address=0.0.0.0/0 gateway=wan2-pppoe routing-mark=wan2 |
04 | add check-gateway=arp comment= "WAN 1 - Distance 1" disabled=no distance=1 dst-address=0.0.0.0/0 gateway=wan1-pppoe routing-mark=wan1 |
05 | add check-gateway=arp comment= "WAN 1 - Distance 2" disabled=no distance=2 dst-address=0.0.0.0/0 gateway=wan2-pppoe routing-mark=wan1 |
06 | add check-gateway=arp comment= "WAN 2 - Distance 2" disabled=no distance=2 dst-address=0.0.0.0/0 gateway=wan3-pppoe routing-mark=wan2 |
07 | add check-gateway=arp comment= "WAN 3 - Distance 2" disabled=no distance=2 dst-address=0.0.0.0/0 gateway=wan1-pppoe routing-mark=wan3 |
08 | add check-gateway=arp comment= "WAN 1 - Distance 3" disabled=no distance=3 dst-address=0.0.0.0/0 gateway=wan3-pppoe routing-mark=wan1 |
09 | add check-gateway=arp comment= "WAN 2 - Distance 3" disabled=no distance=3 dst-address=0.0.0.0/0 gateway=wan1-pppoe routing-mark=wan2 |
10 | add check-gateway=arp comment= "WAN 3 - Distance 3" disabled=no distance=3 dst-address=0.0.0.0/0 gateway=wan2-pppoe routing-mark=wan3 |
11 | add check-gateway=arp comment= "Default Route - Distance 1" disabled=no distance=1 dst-address=0.0.0.0/0 gateway=wan1-pppoe |
12 | add check-gateway=arp comment= "Default Route - Distance 2" disabled=no distance=3 dst-address=0.0.0.0/0 gateway=wan3-pppoe |
13 | add check-gateway=arp comment= "Default Route - Distance 3" disabled=no distance=2 dst-address=0.0.0.0/0 gateway=wan2-pppoe |
14 | add check-gateway=arp comment= "Static Route - WAN1" disabled=no distance=1 dst-address=0.0.0.0/0 gateway=wan1-pppoe routing-mark=static-wan1 |
15 | add check-gateway=arp comment= "Static Route - WAN2" disabled=no distance=2 dst-address=0.0.0.0/0 gateway=wan2-pppoe routing-mark=static-wan2 |
16 | add check-gateway=arp comment= "Static Route - WAN3" disabled=no distance=3 dst-address=0.0.0.0/0 gateway=wan3-pppoe routing-mark=static-wan3 |
19 | add action=mark-connection chain=input comment= "Mark new inbound connection wan1" connection-state= new disabled=no in -interface=wan1-pppoe new -connection-mark=wan1 \ |
21 | add action=mark-connection chain=input comment= "Mark new inbound connection wan2" connection-state= new disabled=no in -interface=wan2-pppoe new -connection-mark=wan2 \ |
23 | add action=mark-connection chain=input comment= "Mark new inbound connection wan3" connection-state= new disabled=no in -interface=wan3-pppoe new -connection-mark=wan3 \ |
25 | add action=mark-connection chain=prerouting comment= "Mark established inbound connection wan1" connection-state=established disabled=no in -interface=wan1-pppoe \ |
26 | new -connection-mark=wan1 passthrough=yes |
27 | add action=mark-connection chain=prerouting comment= "Mark established inbound connection wan2" connection-state=established disabled=no in -interface=wan2-pppoe \ |
28 | new -connection-mark=wan2 passthrough=yes |
29 | add action=mark-connection chain=prerouting comment= "Mark established inbound connection wan3" connection-state=established disabled=no in -interface=wan3-pppoe \ |
30 | new -connection-mark=wan3 passthrough=yes |
31 | add action=mark-connection chain=prerouting comment= "Mark related inbound connection wan1" connection-state=related disabled=no in -interface=wan1-pppoe \ |
32 | new -connection-mark=wan1 passthrough=yes |
33 | add action=mark-connection chain=prerouting comment= "Mark related inbound connection wan2" connection-state=related disabled=no in -interface=wan2-pppoe \ |
34 | new -connection-mark=wan2 passthrough=yes |
35 | add action=mark-connection chain=prerouting comment= "Mark related inbound connection wan3" connection-state=related disabled=no in -interface=wan3-pppoe \ |
36 | new -connection-mark=wan3 passthrough=yes |
37 | add action=mark-routing chain=output comment= "Mark new inbound route wan1" connection-mark=wan1 disabled=no new -routing-mark=static-wan1 passthrough=no |
38 | add action=mark-routing chain=output comment= "Mark new inbound route wan2" connection-mark=wan2 disabled=no new -routing-mark=static-wan2 passthrough=no |
39 | add action=mark-routing chain=output comment= "Mark new inbound route wan3" connection-mark=wan3 disabled=no new -routing-mark=static-wan3 passthrough=no |
40 | add action=mark-connection chain=prerouting comment= "Mark traffic that isn't local with PCC mark rand (3 possibilities) - option 1" connection-state= new disabled=no \ |
41 | dst-address-type=!local in -interface=lan new -connection-mark=wan1_pcc_conn passthrough=yes per-connection-classifier=both-addresses:3/0 |
42 | add action=mark-connection chain=prerouting comment= "Mark traffic that isn't local with PCC mark rand (3 possibilities) - option 2" connection-state= new disabled=no \ |
43 | dst-address-type=!local in -interface=lan new -connection-mark=wan2_pcc_conn passthrough=yes per-connection-classifier=both-addresses:3/1 |
44 | add action=mark-connection chain=prerouting comment= "Mark traffic that isn't local with PCC mark rand (3 possibilities) - option 3" connection-state= new disabled=no \ |
45 | dst-address-type=!local in -interface=lan new -connection-mark=wan3_pcc_conn passthrough=yes per-connection-classifier=both-addresses:3/2 |
46 | add action=mark-connection chain=prerouting comment= "Mark established traffic that isn't local with PCC mark rand (3 possibilities) - option 1" connection-state=\ |
47 | established disabled=no dst-address-type=!local in -interface=lan new -connection-mark=wan1_pcc_conn passthrough=yes per-connection-classifier=\ |
49 | add action=mark-connection chain=prerouting comment= "Mark established traffic that isn't local with PCC mark rand (3 possibilities) - option 2" connection-state=\ |
50 | established disabled=no dst-address-type=!local in -interface=lan new -connection-mark=wan2_pcc_conn passthrough=yes per-connection-classifier=\ |
52 | add action=mark-connection chain=prerouting comment= "Mark established traffic that isn't local with PCC mark rand (3 possibilities) - option 3" connection-state=\ |
53 | established disabled=no dst-address-type=!local in -interface=lan new -connection-mark=wan3_pcc_conn passthrough=yes per-connection-classifier=\ |
55 | add action=mark-connection chain=prerouting comment= "Mark related traffic that isn't local with PCC mark rand (3 possibilities) - option 1" connection-state=related \ |
56 | disabled=no dst-address-type=!local in -interface=lan new -connection-mark=wan1_pcc_conn passthrough=yes per-connection-classifier=both-addresses:3/0 |
57 | add action=mark-connection chain=prerouting comment= "Mark related traffic that isn't local with PCC mark rand (3 possibilities) - option 2" connection-state=related \ |
58 | disabled=no dst-address-type=!local in -interface=lan new -connection-mark=wan2_pcc_conn passthrough=yes per-connection-classifier=both-addresses:3/1 |
59 | add action=mark-connection chain=prerouting comment= "Mark related traffic that isn't local with PCC mark rand (3 possibilities) - option 3" connection-state=related \ |
60 | disabled=no dst-address-type=!local in -interface=lan new -connection-mark=wan3_pcc_conn passthrough=yes per-connection-classifier=both-addresses:3/2 |
61 | add action=mark-routing chain=prerouting comment= "Mark routing for PCC mark - option 1" connection-mark=wan1_pcc_conn disabled=no new -routing-mark=wan1 passthrough=\ |
63 | add action=mark-routing chain=prerouting comment= "Mark routing for PCC mark - option 2" connection-mark=wan2_pcc_conn disabled=no new -routing-mark=wan2 passthrough=\ |
65 | add action=mark-routing chain=prerouting comment= "Mark routing for PCC mark - option 3" connection-mark=wan3_pcc_conn disabled=no new -routing-mark=wan3 passthrough=\ |
Title : Using PCC to fill stability across several non insured hyperlinks.
Description : This is my continuous perform at using several ADSL solutions and the Mikrotik PCC guidelines along with some incoming mangling to allow 1 w...
0 Response to "Using PCC to fill stability across several non insured hyperlinks."
Posting Komentar