Re: redirect-gateway block-local , network mask
Dmitry Melekhov <[email protected]> Mon, 29 Jul 2024 10:18:27 +0400
| Newsgroups | gmane.network.openvpn.user |
|---|---|
| Message-ID | <[email protected]> |
29.07.2024 10:12, Gert Doering пишет: > Hi, > > On Mon, Jul 29, 2024 at 10:05:06AM +0400, Dmitry Melekhov wrote: >> I have 192.168.22.229/24 on my lan interface, >> >> if I add >> >> redirect-gateway block-local >> >> then openvpn adds route >> >> 192.168.22.0 192.168.31.1 255.255.255.128 UG 0 0 0 tun0 > There should be a second route for 192.168.22.128 Yes, it is . Sorry, I missed it. >> Could you tell me, why route is only for half of local net? > "more specific wins". If OpenVPN were to install a /24 route, it might > not work (because on most operating system a directly connected network > will have precedence over a static route with the same netmask). > > 2x 255.255.255.128 = 1x 255.255.255.0 > Thank you very much! _______________________________________________ Openvpn-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/openvpn-users