jnsgruk / wireguard-over-wss

Resources to tunnel Wireguard over Websockets
MIT License
161 stars 31 forks source link

what are the post up routes for? #3

Closed Ali-Flt closed 1 year ago

Ali-Flt commented 1 year ago

Can you explain about the 4 post up routing? Specially I don't understand the reason for 128.0.0.0 and 8000::

post_up () {
    local tun=$1
    ip route add 0.0.0.0/1 dev "${tun}" > /dev/null 2>&1
    ip route add ::0/1 dev "${tun}" > /dev/null 2>&1
    ip route add 128.0.0.0/1 dev "${tun}" > /dev/null 2>&1
    ip route add 8000::/1 dev "${tun}" > /dev/null 2>&1
}
Ali-Flt commented 1 year ago

nevermind I understood the rules from here.