Weird static route issue

Home Page Forums Network Management ZeroShell Weird static route issue

This topic contains 1 reply, has 0 voices, and was last updated by  houkouonchi 8 years ago.

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #42932

    houkouonchi
    Member

    Not sure if this is the correct area to put it in but anyway I am seeing a weird issue when adding some routes via the panel…

    The issue is sometimes the routes aren’t being added to all routing tables. I sometimes use the route method instead of the netbalancer as its easier/quicker (as I often don’t need it port/proto specific) and more reliable as I find sometimes the netbalancer rules do not always work correctly.

    Anyway I was having this issue where UDP was not being routed to the server even though I tried with netbalancer *and* adding a route but other protcols (like ICMP) would properly use the route I setup.. An example using traceroute (from a box behind the ZS box):


    root@dekabutsu: 07:27 AM :~# traceroute -I 69.12.54.12
    traceroute to 69.12.54.12 (69.12.54.12), 30 hops max, 46 byte packets
    1 router.houkouonchi.jp (1.1.1.1) 0.229 ms 0.134 ms 0.503 ms
    2 10.99.98.1 (10.99.98.1) 4.180 ms 7.132 ms 7.588 ms
    3 ip-66-33-193-1.dreamhost.com (66.33.193.1) 10.165 ms 15.132 ms 9.707 ms
    4 ip-66-33-201-69.dreamhost.com (66.33.201.69) 7.793 ms 10.016 ms 7.776 ms
    5 ip-66-33-201-222.dreamhost.com (66.33.201.222) 9.536 ms 7.525 ms 9.623 ms
    6 xe-1-3-0.mpr1.lax7.us.above.net (64.124.196.85) 7.905 ms 9.910 ms 7.678 ms
    7 xe-2-3-0.cr2.lax112.us.above.net (64.125.30.6) 9.841 ms 40.022 ms 9.633 ms
    MPLS Label=616381 CoS=0 TTL=255 S=1
    8 xe-2-3-0.cr2.iah1.us.above.net (64.125.25.17) 42.892 ms 72.341 ms 42.745 ms
    MPLS Label=660501 CoS=0 TTL=255 S=1
    9 xe-1-1-0.mpr3.atl6.us.above.net (64.125.31.49) 87.236 ms 67.503 ms 69.852 ms
    10 209.249.11.205.speakeasy.net (209.249.11.205) 57.623 ms 77.327 ms 57.690 ms
    11 69.12.54.12 (69.12.54.12) 59.763 ms 57.471 ms 59.682 ms

    root@dekabutsu: 07:30 AM :~# traceroute 69.12.54.12
    traceroute to 69.12.54.12 (69.12.54.12), 30 hops max, 46 byte packets
    1 router.houkouonchi.jp (1.1.1.1) 0.169 ms 0.467 ms 0.512 ms
    2 L100.LSANCA-VFTTP-79.verizon-gni.net (173.51.208.1) 3.773 ms 4.929 ms 5.005 ms
    3 G4-2-1079.LSANCA-LCR-10.verizon-gni.net (130.81.107.150) 17.385 ms 4.993 ms 4.961 ms
    4 so-6-0-0-0.LAX01-BB-RTR2.verizon-gni.net (130.81.29.126) 5.020 ms 5.132 ms 5.005 ms
    5 0.so-6-3-0.XL4.LAX15.ALTER.NET (152.63.113.245) 4.851 ms 4.909 ms 4.984 ms
    6 0.ae4.BR3.LAX15.ALTER.NET (152.63.113.189) 4.994 ms 5.065 ms 4.875 ms
    7 ae6.edge1.LosAngeles9.level3.net (4.68.62.169) 5.422 ms 5.014 ms 4.964 ms
    8 vlan60.csw1.LosAngeles1.Level3.net (4.69.144.62) 7.465 ms 7.349 ms vlan90.csw4.LosAngeles1.Level3.net (4.69.144.254)
    5.096 ms
    9 ae-72-72.ebr2.LosAngeles1.Level3.net (4.69.137.21) 5.002 ms ae-82-82.ebr2.LosAngeles1.Level3.net (4.69.137.25) 7.527
    ms ae-92-92.ebr2.LosAngeles1.Level3.net (4.69.137.29) 7.564 ms
    10 ae-3-3.ebr3.Dallas1.Level3.net (4.69.132.78) 42.477 ms 39.883 ms 40.102 ms
    11 ae-7-7.ebr3.Atlanta2.Level3.net (4.69.134.22) 62.419 ms 62.497 ms 62.426 ms
    12 ae-73-73.csw2.Atlanta2.Level3.net (4.69.148.254) 65.040 ms ae-63-63.csw1.Atlanta2.Level3.net (4.69.148.242) 67.404 m
    s 67.419 ms
    13 ae-12-51.car2.Atlanta1.Level3.net (4.69.150.4) 67.495 ms 67.424 ms ae-22-52.car2.Atlanta1.Level3.net (4.69.150.68)
    67.486 ms
    14 unknown.Level3.net (63.210.88.154) 85.004 ms 62.415 ms 62.543 ms
    15 * * *
    16 * * *
    17 * * *

    After some troubleshooting I discovered that the route was listed in the ‘main table’ (If thats what its called?) but not the tables used for the interfaces in the net balancer:


    admin@zeroshell: 07:32 AM :~# ip route show default | grep -i 69.12.54
    69.12.54.0/24 via 10.99.98.1 dev BOND00
    admin@zeroshell: 07:33 AM :~# ip route show table 101 | grep -i 69.12.54
    admin@zeroshell: 07:33 AM :~# ip route show table 103 | grep -i 69.12.54
    admin@zeroshell: 07:33 AM :~#

    Manually fixing them fixed the problem:


    admin@zeroshell: 07:35 AM :~# ip route add 69.12.54.0/24 via 10.99.98.1 dev BOND00 table 101
    admin@zeroshell: 07:35 AM :~# ip route add 69.12.54.0/24 via 10.99.98.1 dev BOND00 table 103

    And now traceroute with both versions goes through the VPN connection:


    root@dekabutsu: 07:36 AM :~# traceroute -I 69.12.54.12
    traceroute to 69.12.54.12 (69.12.54.12), 30 hops max, 46 byte packets
    1 router.houkouonchi.jp (1.1.1.1) 0.253 ms 0.355 ms 0.502 ms
    2 10.99.98.1 (10.99.98.1) 8.427 ms 7.199 ms 8.399 ms
    3 ip-66-33-193-1.dreamhost.com (66.33.193.1) 5.744 ms 7.240 ms 6.353 ms
    4 ip-66-33-201-69.dreamhost.com (66.33.201.69) 8.604 ms 6.638 ms 8.362 ms
    5 ip-66-33-201-222.dreamhost.com (66.33.201.222) 6.442 ms 8.968 ms 11.011 ms
    6 xe-1-3-0.mpr1.lax7.us.above.net (64.124.196.85) 6.490 ms 7.488 ms 6.380 ms
    7 xe-2-3-0.cr2.lax112.us.above.net (64.125.30.6) 8.620 ms 6.407 ms 8.624 ms
    MPLS Label=616381 CoS=0 TTL=255 S=1
    8 xe-2-3-0.cr2.iah1.us.above.net (64.125.25.17) 63.902 ms 44.972 ms 44.469 ms
    MPLS Label=660501 CoS=0 TTL=255 S=1
    9 xe-1-1-0.mpr3.atl6.us.above.net (64.125.31.49) 71.022 ms 69.154 ms 78.321 ms
    10 209.249.11.205.speakeasy.net (209.249.11.205) 58.856 ms 59.916 ms 58.985 ms
    11 69.12.54.12 (69.12.54.12) 61.159 ms 58.892 ms 60.992 ms

    root@dekabutsu: 07:36 AM :~# traceroute 69.12.54.12
    traceroute to 69.12.54.12 (69.12.54.12), 30 hops max, 46 byte packets
    1 router.houkouonchi.jp (1.1.1.1) 0.278 ms 0.157 ms 0.502 ms
    2 10.99.98.1 (10.99.98.1) 6.057 ms 6.387 ms 6.227 ms
    3 ip-66-33-193-1.dreamhost.com (66.33.193.1) 8.706 ms 7.508 ms 8.699 ms
    4 ip-66-33-201-69.dreamhost.com (66.33.201.69) 23.774 ms 8.822 ms 6.521 ms
    5 ip-66-33-201-222.dreamhost.com (66.33.201.222) 8.392 ms 7.453 ms 8.764 ms
    6 xe-1-3-0.mpr1.lax7.us.above.net (64.124.196.85) 6.255 ms 8.668 ms 6.352 ms
    7 xe-2-3-0.cr2.lax112.us.above.net (64.125.30.6) 8.648 ms 7.470 ms 8.626 ms
    MPLS Label=616381 CoS=0 TTL=255 S=1
    8 xe-2-3-0.cr2.iah1.us.above.net (64.125.25.17) 41.362 ms 43.858 ms 41.200 ms
    MPLS Label=660501 CoS=0 TTL=255 S=1
    9 xe-1-1-0.mpr3.atl6.us.above.net (64.125.31.49) 69.235 ms 67.335 ms 69.117 ms
    10 209.249.11.205.speakeasy.net (209.249.11.205) 56.077 ms 58.682 ms 56.422 ms
    ^C

    Any ideas what could cause the route not to be added to both tables? it seems like many of my other routes are there. Is there some route limit I am not aware of?

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.