So, if I understood, if I want (as I do) to route my LAN devices through wgc1 client, all I need to do is running the previous commands on this thread, I mean:
Well, almost.... ofcource you will need an imported client which has ipv6 ip.
First I would advice you to look at you current rules to get an understanding on how they look and work:
List your ipv4 rules (from vpndirector and fw):
And for ipv6, altough at this stage it's probably empty (except for the local and main rule always there):
Notice how they are sectioned by prio number and interface (table).
To route your entire lan to, say wgc1, as I sad, you will need a global rule to not mess up internal routing. So you will need to add this first:
Code:
ip -6 rule add from all lookup main suppress_prefixlength 0 prio 10000
You can just paste it into the prompt and execute it. It should not give any output if all ok.
Now list your ipv6 rules and see it turned out OK.
At this point you have not really changed anything. But now you can add the rule for your lan to wgc1:
Code:
ip -6 rule add from "$(nvram get ipv6_prefix)"/64 lookup wgc1 prio 11230
Again, just copy the text into the ssh prompt and execute it. It should not output anything if all ok.
Now, look at your ipv6 rules again and see that the rule have your lan prefix in it, automatically, thanks to the nvram get...
If some rule did not turn out ok, or if you got duplicate rules you could delete these by
Code:
ip -6 rule del prio xxyyz
Replace xxyyz with the prio of the rule you want to remove.
When the 2 rules look ok, test on a lan device if it outputs ipv6 over vpn.
If something turns out really bad, you can remove the rules, or just reboot.
Test it manually like this before making them persistent.