From: howard s. <how...@ho...> - 2004-07-11 08:06:45
|
<html><div style='background-color:'><DIV class=RTE> <P>For easy access, I have accumulated the information about networking through the tun device on this page:</P> <P><A href="http://www.ou.nl/open/hsp/engels/SheepShaver_Help/networking_2_6.htm">http://www.ou.nl/open/hsp/engels/SheepShaver_Help/networking_2_6.htm</A></P> <P><BR>Howard</P></DIV> <DIV></DIV>>From: Erik Arnson <ea...@gm...> <DIV></DIV>>Reply-To: bas...@li... <DIV></DIV>>To: bas...@li... <DIV></DIV>>Subject: Re: [B2-devel] Ethernet/Internet Networking? <DIV></DIV>>Date: Sat, 10 Jul 2004 10:43:52 -0500 <DIV></DIV>> <DIV></DIV>>Actually I did a hack job of it. Here's what I did to get it working: <DIV></DIV>> <DIV></DIV>>1) Edit kpx_cpu/sheepshaver_glue.cpp add a line near the top that says <DIV></DIV>>"#define WORDS_BIGENDIAN". This, I assume, tricks the compiler into <DIV></DIV>>thinking we're using a big endian processor. <DIV></DIV>>2) Compile <DIV></DIV>>3) Following Gwenole's instuctions I modified my config with his settings. <DIV></DIV>>4) The Internet still didn't work. Thanks to Google I think I found <DIV></DIV>>my problem. ARP. How to fix? <DIV></DIV>>Eth0 is my NIC to the router and tun0 is my tunnel. These commands <DIV></DIV>>enable proxy ARP and IP forwarding. I'm not sure you'll need the last <DIV></DIV>>two or any of them at all. But, they're here to save you headachs ;). <DIV></DIV>> If you find that you DID need them all please tell me. <DIV></DIV>> <DIV></DIV>>echo 1 > /proc/sys/net/ipv4/ip_forward <DIV></DIV>>echo 1 > /proc/sys/net/ipv4/conf/eth0/proxy_arp <DIV></DIV>>echo 1 > /proc/sys/net/ipv4/conf/tun0/proxy_arp <DIV></DIV>> <DIV></DIV>>If you have anymore questions feel free to post. I'd *LOVE* to save <DIV></DIV>>someone the 3 days I spent on this! <DIV></DIV>> <DIV></DIV>> <DIV></DIV>>-Erik Arnson <DIV></DIV>>----- Original Message ----- <DIV></DIV>>From: howard spoelstra <how...@ho...> <DIV></DIV>>Date: Sat, 10 Jul 2004 10:36:50 +0200 <DIV></DIV>>Subject: Re: [B2-devel] Ethernet/Internet Networking? <DIV></DIV>>To: bas...@li... <DIV></DIV>> <DIV></DIV>> <DIV></DIV>> <DIV></DIV>> <DIV></DIV>> <DIV></DIV>> <DIV></DIV>>Hi Gwenole, <DIV></DIV>> <DIV></DIV>> <DIV></DIV>>Could you be a bit more specific about the changes to be made to <DIV></DIV>>kpx_cpu/sheepshaver_glue.cpp ? <DIV></DIV>> <DIV></DIV>> <DIV></DIV>>A code snippet would be great! <DIV></DIV>> <DIV></DIV>> <DIV></DIV>>Best wishes <DIV></DIV>> <DIV></DIV>> <DIV></DIV>>Howard <DIV></DIV>> <DIV></DIV>> <DIV></DIV>> <DIV></DIV>> >From: Gwenole Beauchesne <gb...@di...> <DIV></DIV>> <DIV></DIV>> >Reply-To: bas...@li... <DIV></DIV>> <DIV></DIV>> >To: bas...@li... <DIV></DIV>> <DIV></DIV>> >Subject: Re: [B2-devel] Ethernet/Internet Networking? <DIV></DIV>> <DIV></DIV>> >Date: Sat, 10 Jul 2004 07:36:42 +0200 <DIV></DIV>> <DIV></DIV>> <DIV></DIV>> <DIV></DIV>> > <DIV></DIV>> <DIV></DIV>> >Hi, <DIV></DIV>> <DIV></DIV>> > <DIV></DIV>> <DIV></DIV>> >>How does one use tun/tap to get SheepShaver to connect to the net? <DIV></DIV>> <DIV></DIV>> >>I've spent 3 days on it and can't figure it out at all. Sorry to <DIV></DIV>> <DIV></DIV>> >>be a <DIV></DIV>> <DIV></DIV>> >>bother =/. <DIV></DIV>> <DIV></DIV>> > <DIV></DIV>> <DIV></DIV>> >First, if you build SheepShaver from sources yourself on a non big <DIV></DIV>> <DIV></DIV>> >endian system (e.g. x86), ethernet support is not enabled by <DIV></DIV>> <DIV></DIV>> >default, you will have to change kpx_cpu/sheepshaver_glue.cpp for <DIV></DIV>> <DIV></DIV>> >that. <DIV></DIV>> <DIV></DIV>> > <DIV></DIV>> <DIV></DIV>> >Second, I got the TUN virtual device working only at home through a <DIV></DIV>> <DIV></DIV>> >DSL connection (ethernet modem). <DIV></DIV>> <DIV></DIV>> > <DIV></DIV>> <DIV></DIV>> >Make sure you have the following prefs items set up correctly in <DIV></DIV>> <DIV></DIV>> >~/.sheepshaver_prefs: <DIV></DIV>> <DIV></DIV>> >ether tun <DIV></DIV>> <DIV></DIV>> >etherconfig /path/to/tunconfig <DIV></DIV>> <DIV></DIV>> > <DIV></DIV>> <DIV></DIV>> >Make sure you have sudo working for your user for the following <DIV></DIV>> <DIV></DIV>> >binaries: <DIV></DIV>> <DIV></DIV>> >/sbin/ifconfig <DIV></DIV>> <DIV></DIV>> >/sbin/iptables <DIV></DIV>> <DIV></DIV>> > <DIV></DIV>> <DIV></DIV>> >Or you will have to run SheepShaver as root or run tunconfig through <DIV></DIV>> <DIV></DIV>> >a wrapper script that calls kdesu or whatever. <DIV></DIV>> <DIV></DIV>> > <DIV></DIV>> <DIV></DIV>> >Next, in the MacOS side, set up a static IP in this form: <DIV></DIV>> <DIV></DIV>> >172.20.XX.2 <DIV></DIV>> <DIV></DIV>> >Where XX is generally 40, you can check that with /sbin/ifconfig for <DIV></DIV>> <DIV></DIV>> >the IP of the tun0 device. Use another IP in that network. <DIV></DIV>> <DIV></DIV>> > <DIV></DIV>> <DIV></DIV>> > <DIV></DIV>> <DIV></DIV>> > <DIV></DIV>> <DIV></DIV>> >------------------------------------------------------- <DIV></DIV>> <DIV></DIV>> >This SF.Net email sponsored by Black Hat Briefings & Training. <DIV></DIV>> <DIV></DIV>> >Attend Black Hat Briefings & Training, Las Vegas July 24-29 - <DIV></DIV>> <DIV></DIV>> >digital self defense, top technical experts, no vendor pitches, <DIV></DIV>> <DIV></DIV>> >unmatched networking opportunities. Visit www.blackhat.com <DIV></DIV>> <DIV></DIV>> >_______________________________________________ <DIV></DIV>> <DIV></DIV>> >basilisk-devel mailing list <DIV></DIV>> <DIV></DIV>> >bas...@li... <DIV></DIV>> <DIV></DIV>> >https://lists.sourceforge.net/lists/listinfo/basilisk-devel <DIV></DIV>> <DIV></DIV>> <DIV></DIV>>________________________________ <DIV></DIV>>Speel games online met je vrienden via MSN Messenger klik hier <DIV></DIV>> <DIV></DIV>> <DIV></DIV>>------------------------------------------------------- <DIV></DIV>>This SF.Net email sponsored by Black Hat Briefings & Training. <DIV></DIV>>Attend Black Hat Briefings & Training, Las Vegas July 24-29 - <DIV></DIV>>digital self defense, top technical experts, no vendor pitches, <DIV></DIV>>unmatched networking opportunities. Visit www.blackhat.com <DIV></DIV>>_______________________________________________ <DIV></DIV>>basilisk-devel mailing list <DIV></DIV>>bas...@li... <DIV></DIV>>https://lists.sourceforge.net/lists/listinfo/basilisk-devel <DIV></DIV>> <DIV></DIV>> <DIV></DIV>> <DIV></DIV>> <DIV></DIV>>-- <DIV></DIV>>-Erik Arnson <DIV></DIV>> <DIV></DIV>> <DIV></DIV>>------------------------------------------------------- <DIV></DIV>>This SF.Net email sponsored by Black Hat Briefings & Training. <DIV></DIV>>Attend Black Hat Briefings & Training, Las Vegas July 24-29 - <DIV></DIV>>digital self defense, top technical experts, no vendor pitches, <DIV></DIV>>unmatched networking opportunities. Visit www.blackhat.com <DIV></DIV>>_______________________________________________ <DIV></DIV>>basilisk-devel mailing list <DIV></DIV>>bas...@li... <DIV></DIV>>https://lists.sourceforge.net/lists/listinfo/basilisk-devel <DIV></DIV></div><br clear=all><hr>MSN Zoeken, voor duidelijke zoekresultaten! <a href="http://g.msn.com/8HMBNLNL/2728??PS=47575">klik hier</a> </html> |