Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
11-05-2005, 10:07 PM
|
#1
|
LQ Newbie
Registered: Oct 2003
Location: strawberry fields
Distribution: Ubuntu 5.10
Posts: 8
Rep:
|
Netgear WTG624v2 port forwarding and StaticIP, Ubuntu 5.10
First of all, I apologise if this is a newbie quesiton, if the answer is easy to figure out, but I've been troubleshooting it (and I've come close to actually shooting it a few times) for at least a week. My story begins as I try to install Azureus on my girlfriend's computer. The router is a Netgear WTG624v2, with the IP address printed on it. There I went (192.168.0.1), and per instructions on PortForward.com, I set the port to be forwarded to 49153. In order to complete setup, though, I have to make a Static IP address - presumably this was possible on the Basic Settings page on the router's gateway:
Code:
Internet IP Address
[ ] Get Dynamically From ISP
[x] Use Static IP Address [xx] - [xx] - [xxx] - [xxx]
However, doing it this way, it prevents the internet from working in the other room (and in my many times trying this, the dude in the other room has gotten pissed off at me countless times) as well as this one; accordingly, I thought that I could set the IP address for the port forwarding page (the one where I edit Azureus' profile thingy) to whatever IP address I could get off of whatismyip.com:
Code:
Service Name [Azureus]
Service Type [TCP/UDP]
Starting Port (1~65534) [49153]
Ending Port (1~65534) [49153]
Server IP Address [xx.xx.xxx.xxx]
But, when I apply these settings, I get the error " Server IP address must be a LAN IP address.". It is possible to save the settings if I change "Server IP Address" to the router's IP address, changing the numbers around (for example, setting it 192.168.0. 3), but this doesn't solve my problem. Testing the port in Azureus still leads to a NAT Error.
Do I need to set up a static IP address, and if so, how do I do this on Ubuntu 5.10? Is it possible to set up Azureus at all? I can't seem to get any other P2P network working either.
|
|
|
11-06-2005, 11:44 AM
|
#2
|
Senior Member
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458
Rep:
|
Depends on how the router get's it's ip address from your ISP..
If it's dhcp from the ISP, you can't change to a static number..
The port you mention forwards to a "server", which is really just your girlfriend's pc..
You will have to let Azureus use passive port forwarding, where it initiates the connection to the outside pc.
|
|
|
11-06-2005, 04:16 PM
|
#3
|
LQ Newbie
Registered: Oct 2003
Location: strawberry fields
Distribution: Ubuntu 5.10
Posts: 8
Original Poster
Rep:
|
Thank you times a billion, but how to I set it up for passive port forwarding? I couldn't find anything in the Options or in the Azureus Wiki about it.
|
|
|
11-06-2005, 04:28 PM
|
#4
|
Senior Member
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458
Rep:
|
You'll find it does this automatically if you set it up as behind a firewall. It will use ports 80 & 443 and serve requests that way.
|
|
|
11-06-2005, 04:46 PM
|
#5
|
LQ Guru
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that.
Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700
Rep:
|
Okay this is what you are after. The router is two seperate networks. You have a wan side which is connected to the internat (which needs no changes) and a lan side that is connected to your internal machines. Now what they want is to have the girlfriend's machine that is running the server app to use a static IP versus it obtaining an IP. So set the girlfriends machine to say:
IP 192.168.0.100
Subnet 255.255.255.0
gateway 192.168.0.1
dns 192.168.0.1
Now the girlfriend will always use 192.168.0.100 IP so now on the router you add the portforward of port 49153 to 192.168.0.100. If this machine has a firewall up you need to open port 49153 on it as well.
Hope this helps.
Brian1
|
|
|
11-06-2005, 04:55 PM
|
#6
|
LQ Newbie
Registered: Oct 2003
Location: strawberry fields
Distribution: Ubuntu 5.10
Posts: 8
Original Poster
Rep:
|
Stupider question, I can't seem to find anything about firewalls in the Options either. 
|
|
|
11-06-2005, 04:56 PM
|
#7
|
Senior Member
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458
Rep:
|
Problem is the dynamic internet allocation on the router..
It's hard to do port forwarding if people can't find the router coz it's ip has changed..
Make it static and the ISP drops it off..
2nd problem is forwarding in general, so p2p programmes won't be able to make connections directly to her pc coz the router can't be told it's for her pc. Replies to outgoing packets should be handled ok, but which ports to choose for incoming requests.. And what happens if the chosen ports get used by another pc inside to send out from?
This is why most p2p progs have passive capabilities on whichever ports they use..
|
|
|
11-06-2005, 05:05 PM
|
#8
|
LQ Guru
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that.
Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700
Rep:
|
Which options?
Brian1
|
|
|
11-06-2005, 06:31 PM
|
#9
|
LQ Newbie
Registered: Oct 2003
Location: strawberry fields
Distribution: Ubuntu 5.10
Posts: 8
Original Poster
Rep:
|
Quote:
Originally posted by Brian1
Which options?
Brian1
|
Tools > Options in Azureus. They don't seem to say anything about a passive mode or an "I'm using a Firewall" option in there.
I find it kind of strange that I'm at my house now, using Windows 2000 (long story short, my MIDI keyboards seem to like it but my computer and I despise), using a 2Wire router and setting up things like DC++ or Azureus here was no more trouble than to going to my router's control panel, and setting up some simple port forwarding. I believe I'm using the same ISP as her, but I can't be sure - would this be a difference in routers/ISP, or Windows vs Linux? Do you think it'd be of value to get her a router that is like mine?
|
|
|
11-06-2005, 07:13 PM
|
#10
|
LQ Guru
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that.
Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700
Rep:
|
Possible the ISP is blocking use of that port. As long as the router can setup port-forwarding it should make no differnece.
Brian1
|
|
|
All times are GMT -5. The time now is 07:13 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|