View previous topic :: View next topic |
Author |
Message |
Yoda_Oz Tux's lil' helper
Joined: 20 Jul 2004 Posts: 143 Location: Southampton, UK
|
Posted: Tue Aug 17, 2004 7:28 pm Post subject: howto: dhcp modem/router with port forwarding |
|
|
how do i do this?
my broadband modem/router uses dhcp to assign an ip address to my computer. the problem im facing is trying to get my gentoo box to connect with that computer which is connected to the modem/router. i want to connect to this so i can have a highID in amule.
due to crappy circumstances the computer that is connected to the modem router is running winxp. so is there any way in winxp to port forward those ports (tcp4662 ucp4672) to my gentoo box?
also, should i use internet connection sharing (ics) or should i use a network bridge? ive only got 2 other computers on that winxp network. _________________ DELL INSPIRON 5150 (2004)
Intel P4 HT 3.06
512Mb
nVidia GeForce FX Go5200 64Mb
Actiontec 802CAT1 Wireless PCMCIA
Linux Kernel vmlinuz-2.6.10-2-386 |
|
Back to top |
|
|
nobspangle Veteran
Joined: 23 Mar 2004 Posts: 1318 Location: Manchester, UK
|
Posted: Tue Aug 17, 2004 8:37 pm Post subject: |
|
|
If I understand you correctly you setup is like this
modem/router>------->XP--------->Gentoo
If this is the case then you are best off using network bridge, this way your gentoo box, router and XP box will all be on the same subnet and you don't need to forward any ports.
If you are using your XP machine to share your Internet connection, (with ICS) then port forwarding options are on the advanced tab for the network connection, click settings and you'll get a list of services, which you can add to. My advice is to use the first method, or better still just buy a cheap switch and connect it to your router then plug all your boxes into the switch. |
|
Back to top |
|
|
Yoda_Oz Tux's lil' helper
Joined: 20 Jul 2004 Posts: 143 Location: Southampton, UK
|
Posted: Tue Aug 17, 2004 9:16 pm Post subject: |
|
|
im on a wireless network so the switch wont work. i could get a wireless router but that costs too much...
i setup how you said:
router-------->winxp--------->gentoo
x.x.x.1------->x.x.x.100----->x.x.x.101
(numbers too big, cant be bother typing them in!)
and now when i connect amule i get a high id but while amule is connected i cant browse the web with that computer. even amule cant upload or download even though it is still connected, and connected with a high id too! _________________ DELL INSPIRON 5150 (2004)
Intel P4 HT 3.06
512Mb
nVidia GeForce FX Go5200 64Mb
Actiontec 802CAT1 Wireless PCMCIA
Linux Kernel vmlinuz-2.6.10-2-386 |
|
Back to top |
|
|
ytak n00b
Joined: 14 Apr 2004 Posts: 17
|
Posted: Tue Aug 17, 2004 10:57 pm Post subject: turn around |
|
|
Turn your setup around
modem/router --> GENTOO --> WinXP
and let your LinuxBox handle the network traffic. Because it's the one you're downloading with it probably will have a lot more uptime than the WinXP-Maschine and you won't have to concern about all the Port-Forwarding-Stuff, just check that the ports on your Router are being routed through to your Linux-Box.
Plus I wouldn't use xmule/amule anymore. This software just suxx like hell - consumes a lot too much power and delivers bad overall performance. check out
[url] http://ed2k-gtk-gui.sourceforge.net [/url]
This is a ed2k implementation for linux and uses the regular ed2k-core. All for free and pretty easy to set up (at least a lot more easier than compiling amule and all it's libs)
In my opinion bridging doesn't really make sense. Bridging works on ISO/OSI Level 1/2, is slower than routing and not quite easy to implement either on Windows or Linux as a software-solution. Plus you regularily don't use it for a simple TCP/IP Connection over 1 shared subnet. Bridging is mainly used if you connect several different networks together. Like ADSL -> Ethernet. A regular routing would suit your setting best and is more or less easy got get it work. Network-Masquerading-Scripts are well documented (check out other posts concerning Masquerading/IPTables) |
|
Back to top |
|
|
Yoda_Oz Tux's lil' helper
Joined: 20 Jul 2004 Posts: 143 Location: Southampton, UK
|
Posted: Wed Aug 18, 2004 12:57 am Post subject: |
|
|
no, i cant do that. my broadband connection is on a normal desktop pc running winxp. my gentoo box is a laptop. it kinda defeats the purpose of having a mobile computer if i have to keep it plugged into the wall all the time...
if only i could get the belkin f5d6001 wireless pci card to work on the winxp box under linux...then i could do it. i successfully install gentoo on the desktop pc but i could get the wireless going. there is nothing that supports that belkin pci card in linux properly... that i can find anyways.
i could try again i guess with the 2.4 kernel... apparently the belkin card works with that. would there be any disadvantages in using the 2.4 kernel? _________________ DELL INSPIRON 5150 (2004)
Intel P4 HT 3.06
512Mb
nVidia GeForce FX Go5200 64Mb
Actiontec 802CAT1 Wireless PCMCIA
Linux Kernel vmlinuz-2.6.10-2-386 |
|
Back to top |
|
|
ytak n00b
Joined: 14 Apr 2004 Posts: 17
|
Posted: Wed Aug 18, 2004 5:24 pm Post subject: compatibility issues |
|
|
Compatibility issues for future installations. Newly programmed Kernel-Modules will support newer Kernel versions. But besides that... 2.4 is quite actual. Many people are still running it - so I'd say... why not if this is the way all your components work... you still can upgrade to a newer kernel version later once there are suitable modules round for your WLAN PCI Card. I just wonder why this is dependend on the kernel since most wireless-Adapters use the commonly known PRISM drivers which are available as seperate modules that are available for 2.6 Kernel too. Besides that - why not just buying a WLAN-Router for 60? This would solve all your problems just with the little expense... I'd buy this thing cuz it would be worth for me but if you wanna run it with no expense at all... there is some work to be done
Greetz and have fun! |
|
Back to top |
|
|
Yoda_Oz Tux's lil' helper
Joined: 20 Jul 2004 Posts: 143 Location: Southampton, UK
|
Posted: Wed Aug 18, 2004 10:50 pm Post subject: |
|
|
yeah, apparently the belkin has the prism chipset in it but it doesnt seem to work... _________________ DELL INSPIRON 5150 (2004)
Intel P4 HT 3.06
512Mb
nVidia GeForce FX Go5200 64Mb
Actiontec 802CAT1 Wireless PCMCIA
Linux Kernel vmlinuz-2.6.10-2-386 |
|
Back to top |
|
|
ytak n00b
Joined: 14 Apr 2004 Posts: 17
|
Posted: Thu Aug 19, 2004 6:10 am Post subject: update needed |
|
|
If you use gentoo you will have to update the builtin Prism54-Driver manually (patch the Kernel) in order to get the card to work (if it's a 802.11g card):
http://prism54.org/download/
Maybe you haven't done this yet? The shipped driver is already an old version... |
|
Back to top |
|
|
|