Giter Club home page Giter Club logo

Comments (13)

champtar avatar champtar commented on July 30, 2024

hi @duvi
can you make a pull request?

from packages.

duvi avatar duvi commented on July 30, 2024

Not sure how to do that, but I'll try.

from packages.

champtar avatar champtar commented on July 30, 2024

ping @oskar456

from packages.

oskar456 avatar oskar456 commented on July 30, 2024

Actually, it does add a default route properly using neitfd proto hooks (see lines 58, 65 and 70 in aiccu.sh). The default route should not be pushed directly into main routing table, like the aiccu daemon does, because it would then break source based IPv6 routing. That's why generated aiccu config file is set always to disable the default route.

It works for me on trunk. On what version do you have issues? Have you tried turning off ''sourcerouting''?

from packages.

champtar avatar champtar commented on July 30, 2024

ping @duvi

from packages.

duvi avatar duvi commented on July 30, 2024

It's not working for me with the original script, whether I have defaultroute 0 or 1 in the network config file.
There's "kern.debug kernel: [96384.380000] ip6_route_me_harder: No more route." in logread if I try to ping an ipv6 address.

from packages.

oskar456 avatar oskar456 commented on July 30, 2024

@duvi What version of openwrt are you running? What type of tunnel are you trying to set up? What is the output of ifstatus <aiccu-interface>?

from packages.

duvi avatar duvi commented on July 30, 2024

I'm running trunk r42165.

Network aiccu config:

config interface wan6
        option proto    'aiccu'
        option username 'xxxx-SIXXS'
        option password 'xxxxxxxx'
        option server   'tic.sixxs.net'
        option protocol 'tic'
        option ip6prefix '2a01:xxx:xxxx::/48'
        option defaultroute '1'
        option nat       '0'
        option heartbeat '1'
root@OpenWrt:~# ifstatus wan6
{
        "up": true,
        "pending": false,
        "available": true,
        "autostart": true,
        "uptime": 5077,
        "l3_device": "aiccu-wan6",
        "proto": "aiccu",
        "updated": [
                "routes",
                "prefixes"
        ],
        "metric": 0,
        "delegation": true,
        "ipv4-address": [

        ],
        "ipv6-address": [

        ],
        "ipv6-prefix": [
                {
                        "address": "2a01:xxx:xxxx::",
                        "mask": 48,
                        "class": "wan6",
                        "assigned": {

                        }
                }
        ],
        "ipv6-prefix-assignment": [

        ],
        "route": [
                {
                        "target": "::",
                        "mask": 0,
                        "nexthop": "::",
                        "source": "2a01:xxx:xxxx::\/48"
                },
                {
                        "target": "::",
                        "mask": 0,
                        "nexthop": "::",
                        "source": "::\/128"
                }
        ],
        "dns-server": [

        ],
        "dns-search": [

        ],
        "inactive": {
                "ipv4-address": [

                ],
                "ipv6-address": [

                ],
                "route": [

                ],
                "dns-server": [

                ],
                "dns-search": [

                ]
        },
        "data": {

        }
}

from packages.

oskar456 avatar oskar456 commented on July 30, 2024

@duvi I cannot reproduce your issue. Your ifstatus output shows that netifd is aware of default route through the tunnel and should set the default route correctly (please note that the default route is not visible in the main routing table due to policy routing). In my test environment, the output is the same and it works.

from packages.

duvi avatar duvi commented on July 30, 2024

Could you please share your aiccu network config?

from packages.

oskar456 avatar oskar456 commented on July 30, 2024

This is my configuration. Tested with AYIYA and Heartbeat tunnel type.

config interface 'wan6'
        option proto 'aiccu'
        option username 'OCB1-SIXXS/T76490'
        option password 'Password'
        option verbose 'true'
        option ip6prefix '2a01:8c00:ff00:8109::/64'

from packages.

duvi avatar duvi commented on July 30, 2024

Thank you! I'll try to play with my config as soon as I can, but currently I'm 2 weeks away from my home router.
I'll write if I can find out anything.

from packages.

duvi avatar duvi commented on July 30, 2024

I had some time now, modified my config a little, also added ip6assign to the lan interface, and now it seems to be working, the default route is added automatically without the hack.
Thank you for your help!

from packages.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.