LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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-14-2011, 08:18 AM   #16
cheesus
Member
 
Registered: Jan 2005
Location: Munich, Germany
Distribution: SuSE
Posts: 186

Rep: Reputation: 25

So you are dD5E0C0E6.acc ?
Well, then it seems dD5E0C0E6.acc is the last hop, so the forward from your router to your linux box does not work...
 
Old 11-14-2011, 08:27 AM   #17
cskiwi
LQ Newbie
 
Registered: Oct 2011
Posts: 15

Original Poster
Rep: Reputation: Disabled
I think so that I am dD5E0C0E6.acc,
how could I check?

and what can I do to forward it to the server besides port-forwarding?
 
Old 11-14-2011, 08:41 AM   #18
cheesus
Member
 
Registered: Jan 2005
Location: Munich, Germany
Distribution: SuSE
Posts: 186

Rep: Reputation: 25
do you have something listening on the port forwarding target ?
maybe choose (and open/forward) a new (previously unused) port and listen there using netcat -l -p portno
(netcat is somtimes called "nc". install it if you don't have it by default.)

then telnet from the OUTSIDE to YOUR_ROUTER_IP OPENPORT and type 123<enter>
and "123" should appear in the shell where you ran netcat.

also, port forwarding might require that you activate "NAT" and/or "masquerading" option in your router (don't know which kind you have...)

if nothin else helps, you might need to sniff where the packets are dropped using ethereal...
...BTW... check the logfile of your router. set it to debug ...
 
Old 11-14-2011, 08:50 AM   #19
cskiwi
LQ Newbie
 
Registered: Oct 2011
Posts: 15

Original Poster
Rep: Reputation: Disabled
Wow thanks a lot already. This weekend i'm gonna check this stuff out,
because i can only access the server in weekends

Last edited by cskiwi; 11-14-2011 at 04:59 PM.
 
Old 11-18-2011, 12:16 PM   #20
cskiwi
LQ Newbie
 
Registered: Oct 2011
Posts: 15

Original Poster
Rep: Reputation: Disabled
ok, I have acces again over the server, but I have no clue what i need to do.

netcat -l -p 80, doesn't work

and the telnet should i execute something like:
telnet OUTSIDE 192.168.0.194 OPENPORT 123
or what?
not realy following you there :S
 
Old 11-18-2011, 01:00 PM   #21
cheesus
Member
 
Registered: Jan 2005
Location: Munich, Germany
Distribution: SuSE
Posts: 186

Rep: Reputation: 25
Quote:
Originally Posted by cskiwi
netcat -l -p 80, doesn't work
So what's it say...?
Maybe 80 is occupied ? Tried 8081 ?

Quote:
Originally Posted by cskiwi
and the telnet should i execute something like:
telnet OUTSIDE 192.168.0.194 OPENPORT 123
or what?
not realy following you there :S
You go to some machine outside your network, i.e. on the other side of your router, e.g. a friends machine, or an internet cafe, or a remote machine you have access to. Then you type
telnet MYIP MYPORT
where MYIP is the IP that you think you have from the outside. (where your friends are trying to connect to)
and MYPORT is what you gave at -p
 
Old 11-18-2011, 01:35 PM   #22
cskiwi
LQ Newbie
 
Registered: Oct 2011
Posts: 15

Original Poster
Rep: Reputation: Disabled
Ow that's what you're saying xD

This is what i get:
Code:
root@KiwiServer:~# netcat -l -p 80
This is nc from the netcat-openbsd package. An alternative nc is available
in the netcat-traditional package.
usage: nc [-46DdhklnrStUuvzC] [-i interval] [-P proxy_username] [-p source_port]
          [-s source_ip_address] [-T ToS] [-w timeout] [-X proxy_protocol]
          [-x proxy_address[:port]] [hostname] [port[s]]
 
Old 11-19-2011, 04:13 AM   #23
cheesus
Member
 
Registered: Jan 2005
Location: Munich, Germany
Distribution: SuSE
Posts: 186

Rep: Reputation: 25
nc -l -p 80
 
Old 11-19-2011, 06:54 AM   #24
cskiwi
LQ Newbie
 
Registered: Oct 2011
Posts: 15

Original Poster
Rep: Reputation: Disabled
Gives same results
 
Old 11-19-2011, 07:10 AM   #25
cheesus
Member
 
Registered: Jan 2005
Location: Munich, Germany
Distribution: SuSE
Posts: 186

Rep: Reputation: 25
Well, that works for my netcat, so you need to study the doc for yours.

Anyway, that was just meant at a "quick test" for the connection, if that turs out too complicated, I don't know...

For all that has been done so far, I'm not 100% convinced that you're completely clear about the network route, your external IP vs your internal IP, and settings in your router (hardware box?).

But I have no more ideas how to help you with that.

Rule of thumb:
If "telnet YOUREXTERNALIP SOMEPORT" from OUTSIDE your network does give "connection refused", it means that the route, port and firewall are ok, and you don't have a service listening on the port. If it just times out, there is a firewall in the way somehwere.

Good Luck!

Last edited by cheesus; 11-19-2011 at 11:38 AM.
 
  


Reply



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
Shorewall: port forwarding problem, port is closed even after forwarding Synt4x_3rr0r Linux - Networking 2 12-13-2009 04:36 PM
Problem with port naw_deepak Linux - Networking 4 08-08-2008 01:18 PM
HTTP port and Proxy port problem AZIMBD03 Linux - Networking 3 04-15-2004 09:20 PM
port problem general4172 Linux - Networking 1 10-09-2003 12:49 PM
port 80 problem nocturnal Linux - Software 2 08-08-2003 03:29 AM

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

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