* !!! CORRECTION !!! * Assuming: LAN1 = 192.168.1.0/24 and WG1 = 10.0.0.1 LAN2 = 192.168.2.0/24 and WG2 = 10.0.0.2 LAN1 router add: ip route add 192.168.2.0/24 via 10.0.0.1 LAN2 router add: ip route add 192.168.1.0/24 via 10.0.0.2 Ariez ajv@opensuse.org On 27/11/2020 11:48, Ariez Vachha - openSUSE wrote:
On each LAN default GW router assuming private class C add something like.
Assuming: LAN1 = 192.168.1.0/24 and WG1 = 10.0.0.1 LAN2 = 192.168.2.0/24 and WG2 = 10.0.0.2
LAN1 router add: ip route add 192.168.2.0/24 via 192.168.1.1
LAN2 router add: ip route add 192.168.1.0/24 via 192.168.1.2
If the routers are not a native Linux boxes just convert the above to the equivalent router command language.
Ariez ajv@opensuse.org
On 26/11/2020 05:38, cagsm wrote:
will see what i can make of it. actually maybe i would need to provide a route concept for non-wireguard capable machinery and devices that they all can be in this bridged-sort of overall-lan brought to life with this wg concept? would that be possible? then maybe i would only need those two linux1 linux2 machines with wg, and the rest targeting their packets to these two gateways locally or route only specific packets through those two devices?
openSUSE Users mailing list -- users@lists.opensuse.org To unsubscribe, email users-leave@lists.opensuse.org List Netiquette: https://en.opensuse.org/openSUSE:Mailing_list_netiquette List Archives: https://lists.opensuse.org/archives/list/users@lists.opensuse.org