Currently I'm utilizing gluetun to accomplish this however there's a lot of VPN encryption overhead that inherently slows everything way down utilizing this method. I'd much rather utilize an established VPN I have setup on a separate VLAN on my gateway and simply setup one of the unused interfaces on my Synology on that specific VLAN so all outbound connections from that stack go out via my existing VPN. I just don't know how to cleanly do this, I've read a ton about macvlan and iptables and I feel like everyone has a slightly different approach or need than I do, or perhaps I haven't found the right post yet that "clicks" in my brain with what I'm trying to do. Please help
. Thank you in advance!
So it would go something like this:
VLAN1 - 172.16.1.0/24 - Connected to ETH0 on the Synology - This is the "normal" trust VLAN that Synology currently utilizes for everything and is the default gateway for it. This VLAN also goes out through my normal ISP as it's gateway.
VLAN2 - 172.16.2.0/24 - Connected to ETH1 on the Synology - This would be the VLAN that has an established VPN tunnel (via my gateway to VPN provider) that I would simply present to this interface.
I would like to continue to access everything as I do today utilizing VLAN1/ETH0 on the Synology and have my Docker stacks utilize ETH1 which would go outbound using my gateway's established VPN connection over that VLAN (VLAN2).
There has to be an elegant way of doing this... if someone could please just guide me, that would be great. Thank you in advance.
So it would go something like this:
VLAN1 - 172.16.1.0/24 - Connected to ETH0 on the Synology - This is the "normal" trust VLAN that Synology currently utilizes for everything and is the default gateway for it. This VLAN also goes out through my normal ISP as it's gateway.
VLAN2 - 172.16.2.0/24 - Connected to ETH1 on the Synology - This would be the VLAN that has an established VPN tunnel (via my gateway to VPN provider) that I would simply present to this interface.
I would like to continue to access everything as I do today utilizing VLAN1/ETH0 on the Synology and have my Docker stacks utilize ETH1 which would go outbound using my gateway's established VPN connection over that VLAN (VLAN2).
There has to be an elegant way of doing this... if someone could please just guide me, that would be great. Thank you in advance.