Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Wireguard client on Debian as none default route
New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

Wireguard client on Debian as none default route

dnwkdnwk Member

Any idea how I could run a wireguard client on Debian with allow route 0.0.0.0/0 but it doesn't served as default route?

Comments

  • Mount specific service on interface? What do you want to access from Wireguard?

  • edited November 2021

    I thing you may find what you need here.
    https://lowendtalk.com/discussion/comment/3301736#Comment_3301736

    EDIT: I meant this part..

    Assuming the tunnel is VPS#1 (10.16.0.1) and VPS#2 (10.16.0.2)
    On VPS#1 (10.16.0.1) add these routes:

    ip route add 10.16.0.2 via 10.16.0.1 dev tun0
    ip rule add from 10.16.0.0/24 table 1007
    ip route add throw 10.16.0.0/24 table 1007
    ip route add 0.0.0.0/1 via 10.16.0.1 dev tun0 table 1007
    ip route add 128.0.0.0/1 via 10.16.0.1 dev tun0 table 1007
    
Sign In or Register to comment.