FS#10978 - [initscripts] net: ipv6 over ipv4 tunneling

Attached to Project: Arch Linux
Opened by Daniel Kaminski (maniel) - Tuesday, 22 July 2008, 14:07 GMT
Last edited by Tom Gundersen (tomegun) - Saturday, 04 June 2011, 18:17 GMT
Task Type Feature Request
Category Arch Projects
Status Closed
Assigned To Aaron Griffin (phrakture)
Thomas Bächler (brain0)
Tom Gundersen (tomegun)
Architecture All
Severity Low
Priority Normal
Reported Version None
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

hi, attached a patch that changes rtup/rtdown in /etc/rc.d/network to make whose usable configuring ipv6 over ipv4 tunneling, like that:

lo="lo 127.0.0.1"
eth0="dhcp"
sit0="sit0 inet6 tunnel ::<server ipv4 address>"
sit1="sit1 inet6 add <client ipv6 address>/64"
INTERFACES=(lo eth0 sit0 sit1)

gateway="default gw 192.168.0i.1"
ipv6="::/0 dev sit1"
ROUTES=(!gateway ipv6)

patched /etc/rc.d/network just checks $routecfg for double colon and then adds '-A inet6' to `route` cmdline
This task depends upon

Closed by  Tom Gundersen (tomegun)
Saturday, 04 June 2011, 18:17 GMT
Reason for closing:  No response
Additional comments about closing:  Use (or file bug against) netcfg.
Comment by Aaron Griffin (phrakture) - Tuesday, 22 July 2008, 21:05 GMT
Thomas, doing a sanity check here - do you think this is a good idea?
Comment by Aaron Griffin (phrakture) - Tuesday, 22 July 2008, 21:07 GMT
I like this patch - one or two requests for the future:
* Use $() syntax instead of backticks
* git patches are cooler, and let you write your own commit messages, and we can preserve the author easier
Comment by Thomas Bächler (brain0) - Tuesday, 22 July 2008, 21:24 GMT
if `grep -q :: <<< $routecfg`;
should be
if grep -q :: <<< $routecfg;
Comment by Aaron Griffin (phrakture) - Tuesday, 22 July 2008, 21:28 GMT
good catch
Comment by Aaron Griffin (phrakture) - Tuesday, 22 July 2008, 21:51 GMT Comment by Daniel Kaminski (maniel) - Wednesday, 23 July 2008, 06:48 GMT
Hi
I just noticed after my morning boot[:)] that on the start /etc/rc.d/network says there is no INET6 support in system [ifconfig's output?] but when i make /etc/rc.d/network restart after the system is up everything works flawlessly, the only workaround is to add 'sit' to $MODULES in /etc/rc.conf [i use $MOD_AUTOLOAD], then it works after the boot. Attached a patch that could be helpfull. BTW, anyone knows better string checking than 'grep -q string << $var' in bash?:)
Comment by Aaron Griffin (phrakture) - Wednesday, 23 July 2008, 15:47 GMT
Hmmm I'm not sure if we want to do this or not. I'd feel better about telling people to add 'sit' to the MODULES array for using tunneling.
Comment by Daniel Kaminski (maniel) - Wednesday, 23 July 2008, 17:22 GMT
why not? modprobe is widely used in startup scripts [just run grep:)], you could eventually use `grep -qE 'inet6 +tunnel' <<<$ifcfg` [without backticks ofcourse:)] here, to ensure if it's ipv6 tunnel:)
Comment by Aaron Griffin (phrakture) - Wednesday, 23 July 2008, 21:43 GMT
Thomas, opinion on the modprobe point?
Comment by Thomas Bächler (brain0) - Wednesday, 23 July 2008, 22:55 GMT
If we add the patch, we should probably load the module as well to let this stay consistent. But I don't really care.
Comment by Tom Gundersen (tomegun) - Wednesday, 27 April 2011, 10:20 GMT
We are considering limiting the scope of the network initscript to not include this usecase. Is there any reason you cannot use netcfg instead?

Loading...