LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-05-2005, 10:07 PM   #1
restin256
LQ Newbie
 
Registered: Oct 2003
Location: strawberry fields
Distribution: Ubuntu 5.10
Posts: 8

Rep: Reputation: 0
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.
 
Old 11-06-2005, 11:44 AM   #2
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 48
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.
 
Old 11-06-2005, 04:16 PM   #3
restin256
LQ Newbie
 
Registered: Oct 2003
Location: strawberry fields
Distribution: Ubuntu 5.10
Posts: 8

Original Poster
Rep: Reputation: 0
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.
 
Old 11-06-2005, 04:28 PM   #4
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 48
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.
 
Old 11-06-2005, 04:46 PM   #5
Brian1
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: Reputation: 65
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
 
Old 11-06-2005, 04:55 PM   #6
restin256
LQ Newbie
 
Registered: Oct 2003
Location: strawberry fields
Distribution: Ubuntu 5.10
Posts: 8

Original Poster
Rep: Reputation: 0
Stupider question, I can't seem to find anything about firewalls in the Options either.
 
Old 11-06-2005, 04:56 PM   #7
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 48
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..
 
Old 11-06-2005, 05:05 PM   #8
Brian1
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: Reputation: 65
Which options?

Brian1
 
Old 11-06-2005, 06:31 PM   #9
restin256
LQ Newbie
 
Registered: Oct 2003
Location: strawberry fields
Distribution: Ubuntu 5.10
Posts: 8

Original Poster
Rep: Reputation: 0
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?
 
Old 11-06-2005, 07:13 PM   #10
Brian1
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: Reputation: 65
Possible the ISP is blocking use of that port. As long as the router can setup port-forwarding it should make no differnece.

Brian1
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
IPCHAINS port forwarding and IPTABLES port forwarding ediestajr Linux - Networking 26 01-14-2007 07:35 PM
Simple Port Forwarding Firewall - not forwarding MadTurki Linux - Security 14 04-09-2006 12:08 PM
ubuntu port forwarding inspiredbymetal Linux - Newbie 1 09-25-2005 12:12 AM
port forwarding problem using netgear dg814 and apache tommo_a Linux - Networking 0 10-16-2003 08:46 AM
Netgear MR814 - Port Forwarding with linux?? rEph Linux - Networking 6 02-10-2003 10:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:13 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration