This patch allows easy configuration of GRE or IPIP tunnel interfaces using the /etc/conf.d/net configuration. An example is provided in the patched conf.d/net file. The patch uses /sbin/iptunnel for configuring the tunnels; for when gentoo moves to using iproute2 instead of net-tools, I'll try to provide an alternative patch against baselayout in cooperation to patch provided in bug#47659
Created attachment 31190 [details, diff] Patch against baselayout-1.9.1 for gre/ipip tunnels
Created attachment 31200 [details, diff] patch against baselayout-1.8.8+iproute2 this patch must be applied after the patch in bug#47659; untested;
Created attachment 31245 [details, diff] patch against baselayout-1.9.1 for gre/ipip tunnels; 1) Fixed error in config sample 2) While adapting for iproute2, I switched from tunnel_IFACE to iptunnel_IFACE; To avoid confusion, now I'm switching this patc to iptunnel_IFACE too;
Created attachment 31246 [details, diff] patch against baselayout-1.8.8+iproute2 revised The same fix for configuration example; also an error in script generated by the confusion of switching from tunnel_IFACE to iptunnel_IFACE
We have an iptunnel module in CVS now that includes your request :) It will be in baselayout-1.11.6
as far as I can tell, this bug has been rendered moot by the mere changes in baselayout re preup_iface(); even without a module for iptunnel, one can init the tunnel using those; should I change the the resultion to FIXED? or should I wait until next revision of baselayout hits portage?
I would wait until the next revision and report any problems with it. Sure, one can make a tunnel using preup - infact you can do pretty much everything with preup. But shouldn't we make things easy? Besides, whose to know if ifconfig or iproute2 is installed? Why should they care? Hopefully the next baselayout will make things easy and program independant :) As there are a few other bugs regarding tunnels as such, I will mark this bug FIXED when the next baselayout is released. Then if there any other problems, new bugs can be opened.
Fixed in baselayout-1.11.6