PDA

View Full Version : [ubuntu] Port Forwarding



nicnicman
May 28th, 2008, 02:59 AM
Why am I having so much trouble port forwarding in Ubuntu? I am obviously doing something wrong but I just can't seem to figure it out.

Under Windows I was successful port forwarding for uTorrent and I would like to do the same with Ubuntu. Now it doesn't have to be uTorrent; I am open to any torrent app as long as it is efficient. I've tried Transmission and uTorrent under Wine but failed.

If anyone has any suggestions please let me know.

Dr Small
May 28th, 2008, 03:16 AM
Are you behind a router, and attempting to forward the port to your system? Or are you directly connected to your modem, via ethernet?

hyper_ch
May 28th, 2008, 09:54 AM
did you install firestarter?

nicnicman
May 28th, 2008, 09:34 PM
Yes, I am behind a router which I have configured. Its a Linksys WRT54G.

No, I don't believe I have activated any firewalls unless I did it accidentally.

Thanks for the inquiries.

nicnicman
May 28th, 2008, 10:00 PM
I am unable to connect to the router or the internet using the static IP.

The same router settings work with the same static IP under Windows.

Oldsoldier2003
May 28th, 2008, 10:08 PM
Yes, I am behind a router which I have configured. Its a Linksys WRT54G.

No, I don't believe I have activated any firewalls unless I did it accidentally.

Thanks for the inquiries.

you will need to configure your torrent program to use the ports you have forwarded in your router. also you should be sure that the ports are actually being forwarded to your machine, since most routers do forwarding by IP address. (If you IP address doesn't match what is setup in your router you'll need to change the IP address on the ubuntu machine to match the routers settings in order for it to work.)

nicnicman
May 28th, 2008, 10:37 PM
Is it possible that this is causing the problems

https://bugs.launchpad.net/ubuntu/+source/gnome-system-tools/+bug/185854

Oldsoldier2003
May 29th, 2008, 03:47 AM
Is it possible that this is causing the problems

https://bugs.launchpad.net/ubuntu/+source/gnome-system-tools/+bug/185854

very possible since i see you are having a problem connecting to your gateway (missed that post) have you added auto eth0 to /etc/network/interfaces? It didn't click because when I set up my Hardy I manually edited /etc/network/interfaces as a matter of habit...

nicnicman
May 29th, 2008, 11:04 PM
How do I add auto eth0?

kevdog
May 29th, 2008, 11:09 PM
Manually edit the /etc/network/interfaces file (or simply most the contents of the file).

To edit

gksu gedit /etc/network/interfaces

nicnicman
May 29th, 2008, 11:33 PM
So I add the line "# auto ethO" to the file?

kevdog
May 29th, 2008, 11:34 PM
Dont preface the line with a # sign. This implies a comment line and will be ignored.

nicnicman
May 29th, 2008, 11:50 PM
Added the line but I still cannot connect to the gateway.:confused:

nicnicman
May 30th, 2008, 01:48 AM
Actually after messing around with file a little it seems to be working.

Thanks for the help.

balagosa
May 31st, 2008, 05:24 PM
i would like to revive this thread because i also want to do port forwarding.

so i already placed "auto eth0" on /etc/network/interfaces

and i accesses my router and i already placed in my address for port forwarding, with a specific application which is "ktorrent".

Question:
1) How do i know it is a successful port forwarding?
2) there is a field "start" and "end". can anyone explain me with these?
the numbers under these are "18768"

kevdog
May 31st, 2008, 05:35 PM
Could you provide some screen shots b/c Im not sure what you are talking about?

balagosa
May 31st, 2008, 06:03 PM
the start & end as i have found out is the ports enabled.

so, my last question, how do i know the forwarding worked.

can anyone also give me a good HowTo for Port Forwarding

kevdog
May 31st, 2008, 08:42 PM
PortForwarding through a router? or from an Ubuntu box that has two NICs that will allow internet connection sharing?

balagosa
June 1st, 2008, 02:00 AM
PortForwarding through a router? or from an Ubuntu box that has two NICs that will allow internet connection sharing?

oh sorry.let me go into details.

Port Forwarding through a router which is "WRT54g Linksys Router". been in the family for years now, and my cousin only told me about port forwarding yesterday.

i got KTorrent as of now and Transmission. I tried to test the Start to End ports "above" and said they were close (for Transmission). I installed the UpNp plug-in for KTorrent and there were no devices found on the "Port Forwarding" page. so i guess something is still wrong :)

balagosa
June 1st, 2008, 02:15 PM
errr....bump*