Close
The username and/or password are invalid. Please try again.

close
Go6
You are using IPv4 from 38.107.191.112
Free IPv6 Connection

We have moved! The go6 discussion forum has been locked down but will continue to be viewable.  The new discussion forum is on gogoNET at: http://gogonet.gogo6.com/forum 

Mac OS X How To

 
Post new topic   Reply to topic    go6 Forum Index -> Gateway6 Client on Mac OSX
View previous topic :: View next topic  
Author Message
justbits



Joined: 17 Apr 2007
Posts: 5

PostPosted: Wed Apr 18, 2007 6:40 pm    Post subject: Mac OS X How To Reply with quote

This configuration was tested on one Mac OS X host behind a Linksys router connected to the IPv4 Internet via DSL.

These instructions don't cover absolutely every possible thing you may have to do, so your milage may vary.

Login as an Administrator account.
First, open the Network pane in System Preferences.
For every network device that you have, disable IPv6.
That's right, choose each and every one of them... "Built-in Ethernet", "6 to 4", "AirPort", "Internal Modem", go to the TCP/IP tab. Click on "Configure IPv6". Choose "Off" in the popup menu and click OK.
When you're done turning off IPv6, click the "Apply" button.
In fact, also make sure you disable any "6 to 4" interface you may have created by choosing "Network Port Configurations" and unchecking the "6 to 4" interface you may have created.

Since there is no configuration GUI, from here on, you must execute a bunch of shell commands. Open Terminal. It's in /Applications/Utilities/.

Execute the following commands from a Terminal command shell. Comments are prefixed with "#". Comments are not commands.

Code:

# Got root?
sudo -s
# Enter the password for your Administrator account.
cd ~/
mkdir ipv6
cd ipv6
# Get the tuntap driver for Mac OS X.
curl -O http://www-user.rhrk.uni-kl.de/~nissler/tuntap/tuntap_tiger.tar.gz
mkdir tuntap_tiger
cd tuntap_tiger
tar -zxf ../tuntap_tiger.tar.gz
installer -pkg tuntap_installer.mpkg -target /
# Notice that tun0 is now available.

cd ..
# Go to http://go6.net/4105/download.asp and download "Gateway6 5.1 Source Code (Linux/Unix/Darwin/BSD)"
curl -o gw6c-src.tar.gz 'http://go6.net/4105/file.asp?file_id=80'
tar -zxf gw6c-src.tar.gz
cd ./tspc-advanced/
vi src/lib/md5c.c
# Edit md5c.c and insert '#include <stdint.h>' before '#include "md5.h"'
make all target=darwin
make install target=darwin installdir=/usr/local/gw6c
chmod +x /usr/local/gw6c/template/*.sh
cd /usr/local/gw6c/bin


At this point, you need to open an editor and modify the gw6c.conf file.
Change the file to have a valid userid and passwd and server.

Before: (these are what the original lines are)
Code:
userid=anonymous
passwd=
server=anon.freenet6.net
#server=broker.freenet6.net
#host_type=router
#if_prefix=
#dns_server=


After: (this is what the lines should look like when you're done if you're using freenet6/go6)
Code:
userid=mygo6userid
passwd=mygo6password
#server=anon.freenet6.net
server=broker.freenet6.net
host_type=router
if_prefix=en0
dns_server=some.dns.server.you.manage


In my case, en0 is my Ethernet wired interface. If you have an AirPort, you may need to configure if_prefix to be en1. I haven't fully explored the dns_server option yet, but I have it pointing at a DNS server that I manage on my home network.

To start the tunnel, execute this command from the root shell you had opened in Terminal.app:
Code:
/usr/local/gw6c/bin/gw6c

On Tiger (10.4):
Code:
killall -HUP lookupd

On Leopard (10.5), this may be necessary:
Code:
ndp -H


On Tiger (10.4), if everything worked right, ifconfig tun0 should show that tun0 is configured.
Code:
tun0: flags=8851<UP,POINTOPOINT,RUNNING,SIMPLEX,MULTICAST> mtu 1500
...
        open (pid 24580)


After you have done this, ping & traceroute to www.kame.net should work.

Code:
ping6 2001:200:0:8002:203:47ff:fea5:3085
ping6 www.kame.net


The most likely problem is that ping6 and traceroute6 by the DNS host name (www.kame.net) wont work. You did disable IPv6 on all interfaces and get rid of your "6 to 4" relay, didn't you?


Last edited by justbits on Sat May 10, 2008 3:19 am; edited 5 times in total
Back to top
View user's profile Send private message Send e-mail
justbits



Joined: 17 Apr 2007
Posts: 5

PostPosted: Wed Apr 25, 2007 2:13 am    Post subject: Reply with quote

Hope this helps!

If things aren't working, configure logging in gw6c.conf:
Code:
log=file;3
log_filename=/usr/local/gw6c/log/gw6c.log

You don't need to pre-create the file, but you do need to make sure the directories exist.

You might need "IPV6=-YES-" in /etc/hostconfig.

Problems:
I had a problem posting to this forum over IPv6. Safari can’t open the page p://forum.go6.net/posting.php”. The error was: “lost network rrorDomain:-1005)
I disconnected the IPv6 tunnel by killing the gw6c and rtadvd processes. Posting from IPv4 worked perfectly.

edit: Corrected instructions so people can get IPv6 working with Mac OS X ping6 and Safari. Broke post in two since the forum has a post length limit.

edit: Added "killall -HUP lookupd". This restarts the MacOS X 10.0 to 10.4 name resolver. After HUPing lookupd, Safari and ping6/traceroute6 are able to correctly resolve IPv6 hostnames. This command should probably be integrated into the tsp-advanced/template/darwin.sh script.

edit: Updated for 5_1-RELEASE, Leopard, and md5.c fix.


Last edited by justbits on Sat May 10, 2008 3:21 am; edited 2 times in total
Back to top
View user's profile Send private message Send e-mail
ycox



Joined: 27 Sep 2007
Posts: 1

PostPosted: Thu Sep 27, 2007 4:14 pm    Post subject: compile error Reply with quote

ion:~/hexago/gw6c-5_0-RELEASE-src/tspc-advanced synth$ make all target=darwin

(bunch of crap)

tsp_local.c:135: warning: 'tunfd' may be used uninitialized in this function
gcc -O2 -Wall -I../.. -I../../include -I../../platform/darwin -c tsp_tun.c -o ../../objs/tsp_tun.o
gcc -O2 -Wall -I../.. -I../../include -I../../platform/darwin -o ../../bin/gw6c ../../objs/*.o -L../../gw6cconfig -lcrypto -lgw6cconfig -lstdc++
/usr/bin/ld: Undefined symbols:
__Unwind_Resume
collect2: ld returned 1 exit status
make[1]: *** [../../bin/gw6c] Error 1
make: *** [all] Error 1

ideas?
Back to top
View user's profile Send private message Send e-mail
cnepveu
Go6 Staff


Joined: 22 Sep 2006
Posts: 258
Location: Montréal, Québec

PostPosted: Mon Oct 01, 2007 8:20 pm    Post subject: Reply with quote

Add the "-fexceptions" compilation flags in tspc-advanced/platform/darwin/Makefile

i.e.:
Code:
CFLAGS=-O2 -Wall -I../.. -I../../include -I../../platform/$(target)  -fexceptions


Hope this helps
_________________
Charles Nepveu
Software Developer
Hexago, Inc.
support%go6.net
Back to top
View user's profile Send private message Send e-mail
lyserjic



Joined: 29 Jul 2007
Posts: 3

PostPosted: Sat Oct 06, 2007 5:57 am    Post subject: Re: Reply with quote

cnepveu wrote:
Add the "-fexceptions" compilation flags in tspc-advanced/platform/darwin/Makefile

i.e.:
Code:
CFLAGS=-O2 -Wall -I../.. -I../../include -I../../platform/$(target)  -fexceptions


Hope this helps


That fixed it. Tunnel is up and working fine now.

Thanks also to justbits for the excellent "quick tutorial".

-lyserjic
Back to top
View user's profile Send private message Send e-mail
thill



Joined: 10 Aug 2007
Posts: 5

PostPosted: Sun Jul 13, 2008 5:38 am    Post subject: Reply with quote

Well, when I finally got my head together, and followed the steps in sequence it worked for me today as well. So many thanks for this thread.

Just one comment, is that I still found the make process produced errors on exit, even though it had successfully created the binary...and that binary worked fine.

Not a critical error in the sheme of things, but may confuse someone on compile for the first time.

Key point is to look for the existence of gw6c, in the ./tspc-advanced/bin directory.

Tony
Back to top
View user's profile Send private message Send e-mail
kakata



Joined: 08 Feb 2009
Posts: 1

PostPosted: Sun Feb 08, 2009 4:36 pm    Post subject: Reply with quote

Houston, I think we have a problem:

The requested URL /~nissler/tuntap/tuntap_tiger.tar.gz was not found on this server.


Can someone post tuntap to test it out?
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    go6 Forum Index -> Gateway6 Client on Mac OSX All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum