Git Product home page Git Product logo

Comments (1)

bytescreator avatar bytescreator commented on June 19, 2024

It's not working because the default route you added is at the wrong table, you are adding it to the main table instead of table 1.

Here's my terminal output (Arch Linux 5.6.7-arch1-1)

#ip rule add to 1.1.1.1 fwmark 1 table 1
#ip rule
0: from all lookup local
32765: from all to 1.1.1.1 fwmark 0x1 lookup 1
32766: from all lookup main
32767: from all lookup default
# ip route get 1.1.1.1
1.1.1.1 via 192.168.42.129 dev enp0s4f1u5 src 192.168.42.143 uid 0
cache
# ip route get 1.1.1.1 mark 1
1.1.1.1 via 192.168.42.129 dev enp0s4f1u5 src 192.168.42.143 mark 1 uid 0
cache

As you could see it's not working
but when I add the default route

# ip route add default via 192.168.1.1 table 1
# ip route get 1.1.1.1 mark 1
1.1.1.1 via 192.168.1.1 dev enp3s0 table 1 src 192.168.1.254 mark 1 uid 0
cache
# ip route get 1.1.1.1
1.1.1.1 via 192.168.42.129 dev enp0s4f1u5 src 192.168.42.143 uid 0
cache

it wasn't working because it was using the backup main table

from bpi-m2u-bsp.

Related Issues (9)

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.