LinuxQuestions.org
Help answer threads with 0 replies.
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 10-21-2005, 03:46 PM   #1
ask
LQ Newbie
 
Registered: Oct 2005
Location: Amsterdam, The Netherlands
Distribution: Ubuntu 11.10 amd64, Puppy, FreeNAS 8.0.2
Posts: 13

Rep: Reputation: 0
port probe on fixed IP behind router fails


Hi there,

I have difficulties opening a single specific port on my linux machine for my BitTorrent client. When probing this or any other port using grc.com I only get status 'stealth' (the infamous NAT-problem), although I adjusted iptables configuration and set port forwarding on both my modem and router. I am obviously overlooking something elementary here, but that's what being newbie is all about, isn't it? I've been searching the net and any forum possible, but nothing works well. So now I turn to you in utter despair...

My configuration looks like this:

ADSL modem --->--- Broadband Router --->--- 2 Linux machines and a Windows box

- My ADSL modem receives a dynamic IP from my ISP. I set port forwarding from 0.0.0.0:myport to privateIP:myport for both tcp and udp.
- My Broadband router with static IP is also forwarding the same port to the same address.
- I configured iptables on my Linux machine (RH9, fixed IP) according to the Azureus Wiki.

When running Azureus, netstat -pantu returns
tcp 0 0 privateIP:myport 0.0.0.0:* LISTEN 1581/java
so that's working fine.

Shutting down iptables didn't work, port probing keeps returning 'stealth'. Probing for port 80 too. Very confusing. I think it has something to do with my network setup, but I don't know what. Searching the internet only gives me headaches.

netstat -r returns the following:
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
x.x.0.0 * 255.255.255.0 U 0 0 0 eth0
169.254.0.0 * 255.255.0.0 U 0 0 0 eth0
127.0.0.0 * 255.0.0.0 U 0 0 0 lo
default routerIP 0.0.0.0 UG 0 0 0 eth0


Everything is working perfectly fine, also Azureus (but only with the NAT-error). Can anyone help me? I know this problem has come up numerous times in numerous forums, but no description fits my problem.
Thanks in advance,

Ask
 
Old 10-21-2005, 03:57 PM   #2
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
What port on the router have you opened to the world? And are specifically scanning for that port on grc.com?

Personally for me it's easier to run nmap against the router from another machine out on the web. But I am sure using grc.com should have the same effect.

Until that router port is opened you will not be getting anywhere.
 
Old 10-22-2005, 08:28 AM   #3
ask
LQ Newbie
 
Registered: Oct 2005
Location: Amsterdam, The Netherlands
Distribution: Ubuntu 11.10 amd64, Puppy, FreeNAS 8.0.2
Posts: 13

Original Poster
Rep: Reputation: 0
I don't know, actually. I tried nmap -sT and nmap -p 1-myport on both my router and on my ADSL modem, but myport doesn't show up.

My modem shows ftp, telnet, http, pptp and a port unknown to me, my router domain, http and two unknown ports.

I also tried to nmap ports on the adjacent linux-box in my network, but that gave no results.

If this is My Problem, then how can I open my router to the world?
 
Old 10-22-2005, 09:32 AM   #4
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
Quote:
I tried nmap -sT and nmap -p 1-myport on both my router and on my ADSL modem, but myport doesn't show up.
Are you trying this against the router's internal interface? If so, that will not tell you what you want. You need to test against the external interface - as I said from somewhere out on the web.

Quote:
If this is My Problem, then how can I open my router to the world?
Check the router manual. You need to explicitly tell it to open a port and forward requests to it to the correct machine on your private network. If you have done this correctly, a port scan from the outside world will show the port as open. That's step 1 anyway..
 
Old 10-22-2005, 02:51 PM   #5
ask
LQ Newbie
 
Registered: Oct 2005
Location: Amsterdam, The Netherlands
Distribution: Ubuntu 11.10 amd64, Puppy, FreeNAS 8.0.2
Posts: 13

Original Poster
Rep: Reputation: 0
Yes! I did it! Port probing using grc.com gave 'open'. I had to change port forwarding in my ADSL modem from my machine's private IP to my router's WAN IP. Port forwarding in my router to my private IP was correct.

And tell you what, I actually got those green smileys in Azureus, indicating that it's working fine now!

Thank you so much for your help putting me on the right track.

Ask.
 
  


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
probe of Radio MediaForte SF64 fails with error -5 exit3219 Linux - Hardware 0 09-09-2005 08:28 AM
How to probe if a serial port has a valid connection? RedDrake Linux - General 2 09-01-2005 07:05 PM
Router and Linux (Slow web browsing) Fixed! User_Program Yoper 10 12-24-2004 03:35 AM
no boot - error:IO port probe AlteZza2k2 Slackware 4 11-12-2003 06:15 PM
loaded slackware, won't finish booting. stops at cs: IO Port probe Whitehat Slackware 5 10-15-2003 03:18 PM

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

All times are GMT -5. The time now is 10:47 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