Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Share my internet connection with xbox (or anything else)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
floam
Veteran
Veteran


Joined: 27 Oct 2002
Posts: 1067
Location: Vancouver, WA USA

PostPosted: Sun Feb 23, 2003 4:19 am    Post subject: Share my internet connection with xbox (or anything else) Reply with quote

Just bought xbox live, now I need to figure out how to share the connection on my computer with my xbox. I have two nics, and have emerged dhcp and iptables. I dont know what I need to have compiled in on my kernel, or what files to edit. I need to figure out what im gonna do. Heres how the network is setup right now:
[img:53fe14b529]http://floam.ascorbic.com/img/netsetupnow.png[/img:53fe14b529]
Thats how it is now. Obviously it wouldnt make since (well doesnt make since to my dad, who would be the one to do it) to run another 150 feet of cable through the attic just to get my xbox online. Instead I want it to work like this:
[img:53fe14b529]http://floam.ascorbic.com/img/netsetuphowiwant.png[/img:53fe14b529]
How would I do this, can I use normal cat5 ethernet cable, or do I need some cross over or somthing cable (someone in #gentoo told me I would) , whats the difference? Help me.


Last edited by floam on Sun Feb 23, 2003 6:37 am; edited 2 times in total
Back to top
View user's profile Send private message
PowerFactor
Veteran
Veteran


Joined: 30 Jan 2003
Posts: 1693
Location: out of it

PostPosted: Sun Feb 23, 2003 6:15 am    Post subject: Reply with quote

Have a look at this thread for starters.

Cool pics BTW.

EDIT: Just noticed, yes you will need a crossover cable between nic2 and the xbox to hook it up like you have shown. They don't cost much more than normal cat5 cables. If you make your own cables there are instructions on the web for making crossover cables as well.
Back to top
View user's profile Send private message
floam
Veteran
Veteran


Joined: 27 Oct 2002
Posts: 1067
Location: Vancouver, WA USA

PostPosted: Sun Feb 23, 2003 6:57 am    Post subject: Reply with quote

okay read that and started adding stuff to the default runlevel and editing some config files, be aware that I dont yet have the cables (tommarow!) and cant test it yet. When i tried the commands:
Code:
iptables -t nat -F
iptables -A FORWARD -i eth0 -o eth1 -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables -A FORWARD -i eth1 -o eth0 -j ACCEPT
iptables -A FORWARD -j LOG
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
that I found there, i get a bunch of
Code:
modprobe: Can't locate module ip_tables
iptables v1.2.7a: can't initialize iptables table `nat': iptables who? (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.


I just went through my kernel config and found nothing about iptables. emerge iptables doesn't fix anything
Back to top
View user's profile Send private message
Xan
n00b
n00b


Joined: 08 Jan 2003
Posts: 45
Location: Austin

PostPosted: Sun Feb 23, 2003 7:43 am    Post subject: Reply with quote

You need some more networking in your kernel.

Here's what I have in mine:

Networking Options
Packet socket
Network packet filtering
Socket filtering
Unix domain sockets
TCP/IP networking
IP multicasting
IP advanced router
IP verbose route monitoring
IP large routing tables
IP Netfilter Configuration
Connection tracking
FTP protocol support
H.323 support
IP tables support
Limit match support
Multiple port match support
Connection state match support
Packet filtering
Reject target support
Full NAT
Masquerade target support
Packet mangling
Log target support
Back to top
View user's profile Send private message
Xan
n00b
n00b


Joined: 08 Jan 2003
Posts: 45
Location: Austin

PostPosted: Sun Feb 23, 2003 7:45 am    Post subject: Reply with quote

Rats, I had some formatting in that but it got zapped. Should have used Preview... Still, it shouldn't be too hard to decipher. Let me know if it's a problem.
Back to top
View user's profile Send private message
floam
Veteran
Veteran


Joined: 27 Oct 2002
Posts: 1067
Location: Vancouver, WA USA

PostPosted: Sun Feb 23, 2003 8:13 am    Post subject: Reply with quote

thanks, I figured it out fine without the tabs/spaces (if thats what formatting you did). The kernel is recompiling now, will report back in a few minutes
Back to top
View user's profile Send private message
krt
Tux's lil' helper
Tux's lil' helper


Joined: 27 Nov 2002
Posts: 102
Location: Earth

PostPosted: Sun Feb 23, 2003 8:18 am    Post subject: Reply with quote

you might want to try bridging with your linux box, rather than iptables.. you can, essentially, make your linux box a switch, and let your router upstream do the NAT work.

You can read about bridging here:

http://www.linux.se/doc/HOWTO/BRIDGE-STP-HOWTO/set-up-the-bridge.html
_________________
Everyone has something clever for a signature but me.
Back to top
View user's profile Send private message
floam
Veteran
Veteran


Joined: 27 Oct 2002
Posts: 1067
Location: Vancouver, WA USA

PostPosted: Sun Feb 23, 2003 8:23 am    Post subject: Reply with quote

krt: that sounds cool, but id need to have someone walk me through it step by step, dont understand a good percent of what i see there
Back to top
View user's profile Send private message
Xan
n00b
n00b


Joined: 08 Jan 2003
Posts: 45
Location: Austin

PostPosted: Sun Feb 23, 2003 8:24 am    Post subject: Reply with quote

Yeah, I may have to switch mine to that too. :)
Back to top
View user's profile Send private message
floam
Veteran
Veteran


Joined: 27 Oct 2002
Posts: 1067
Location: Vancouver, WA USA

PostPosted: Thu Feb 27, 2003 11:59 pm    Post subject: Reply with quote

okay, got 20 feet of crossover cable, all plugged in and ready to go. Now someone walk me through what to do.

note: I dont know much when it comes to networking, be slow with me
Back to top
View user's profile Send private message
floam
Veteran
Veteran


Joined: 27 Oct 2002
Posts: 1067
Location: Vancouver, WA USA

PostPosted: Fri Feb 28, 2003 1:30 am    Post subject: Reply with quote

bump, sorry. *very* impatiant
Back to top
View user's profile Send private message
floam
Veteran
Veteran


Joined: 27 Oct 2002
Posts: 1067
Location: Vancouver, WA USA

PostPosted: Fri Feb 28, 2003 2:56 am    Post subject: Reply with quote

Hell yes!! Thanks to CareBear in #gentoo, I got it going.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security 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