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 08-27-2012, 12:39 PM   #1
cin_
Member
 
Registered: Dec 2010
Posts: 266

Rep: Reputation: 23
Need Some Port Forwarding Help


I have a network that is laid out as such:
Code:
[IP Gateway]==={Router}--{Server}
     ||
{Personal Computer}
Basically, I have an IP Gateway that brings the connection in. From here I have two hardwired connections. The first runs to a wireless router, and the second runs to my personal computer.
Hardwired to the wireless router is a server offering up http and ssh accesss.

What I want is remote access from my computer to the server.
What I am getting is http access without ssh access.

The Gateway leases IPs of the 10.1.10.* variety and the router leases out 192.168.11.*.

That means my personal computer has an IP of 10.1.10.17, and the server has an IP of 192.168.11.13, and the router has an IP of 10.1.10.109.


The Gateway has no special configuration as per this interest. I assumed internal business like this would not require it since there is no need for access outside of the network itself.

The Router has Port Forwarding of port 80,8000,and 22 set to the 192.168.11.13 address.
There appears to be no firewall settings activated on the Gateway or the Router.

From my computer if I type http://192.168.11.13 I get my Apache2 server just fine, but when I try to ssh into the same IP I get a connection timed out error.


I want to resolve the ssh issue, but also what I am confused on is why http would work and ssh would fail.
Theoretically I thought I'd have to send my requests to the router's IP,10.1.10.109, and the router would forward me through to the necessary local IP,192.168.11.13, but instead I just send out the local IP and I get the server I want.
Hows am I missing...?

The gateway is : Comcast Business IP Gateways :: SMC8014
... the manual ... http://www.smc.com/index.cfm?event=d...rtNumber=false
The Router is : Buffalo Air Station NFiniti High Power Giga :: WZR-HP-G300NH
... the manual ... http://cdn.cloudfiles.mosso.com/c850...Manual_web.pdf

Last edited by cin_; 08-27-2012 at 02:44 PM. Reason: gramm`err
 
Old 08-27-2012, 05:19 PM   #2
pix9
Member
 
Registered: Jan 2010
Location: Kalyan, Mumbai, Maharashtra, India
Distribution: Red Hat (RHEL 6.0)
Posts: 141

Rep: Reputation: 19
I have few questions which I think might help you or me to solve the problem.

1) is sshd running on server?

2) if sshd is running on server. then is there any firewall blocking the traffic to it?

3) how is your router configured to do port forward ?



thank you
regards
 
Old 08-27-2012, 05:35 PM   #3
suicidaleggroll
Senior Member
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 3,221

Rep: Reputation: 1155Reputation: 1155Reputation: 1155Reputation: 1155Reputation: 1155Reputation: 1155Reputation: 1155Reputation: 1155Reputation: 1155
The whole post makes sense, except for this:

Quote:
Originally Posted by cin_ View Post
From my computer if I type http://192.168.11.13 I get my Apache2 server just fine
For this exact reason:

Quote:
Originally Posted by cin_ View Post
Theoretically I thought I'd have to send my requests to the router's IP,10.1.10.109, and the router would forward me through to the necessary local IP,192.168.11.13, but instead I just send out the local IP and I get the server I want.
What happens if you try to connect to the router address at 10.1.10.109 via both http and ssh?

Last edited by suicidaleggroll; 08-27-2012 at 05:36 PM.
 
Old 08-27-2012, 05:40 PM   #4
cin_
Member
 
Registered: Dec 2010
Posts: 266

Original Poster
Rep: Reputation: 23
Answers

pix9
(i) Yes, I have access to it if I have a computer hard wired to the router or on the router's wireless network. That is to say within the 192.168.11.* range.
(ii) Not that I know of. Everything seems set to be as open as possible... unless there is something I am missing.
(iii)
Code:
Port Forwarding Registration Information
Group,Internet Side IP Address,LAN Side IP Address,Protocol,LAN Side Port
http2, AirStation’s Internet IP Address, 192.168.11.13, TCP Port:8000, TCP Port:8000
http1, AirStation’s Internet IP Address, 192.168.11.13, HTTP (TCP Port: 80), HTTP (TCP Port: 80) 		
ssh, AirStation’s Internet IP Address, 192.168.11.13, SSH (TCP Port:22), SSH (TCP Port:22)

Last edited by cin_; 08-27-2012 at 05:53 PM. Reason: gramm`err
 
Old 08-27-2012, 05:49 PM   #5
cin_
Member
 
Registered: Dec 2010
Posts: 266

Original Poster
Rep: Reputation: 23
I Hear You

suicidaleggroll, I agree completely. This is what is so troubling.

If I try to connect to the routers 10.1.10.109 address I get server not found in the browser, http, and port 22: connection timed out with ssh. Very strange.

Again, allow me to reiterate:
From within the router's network, ie the 192.168.11.*, I can use both http and ssh.
From without the router's network but within the gateway's I can somehow use the router's local address for the server, ie 192.168.11.13 to see the http, but it fails to work on the ssh as well as the router's IP address failing for both http and ssh.

Last edited by cin_; 08-27-2012 at 05:49 PM. Reason: gramm`err
 
Old 08-27-2012, 05:53 PM   #6
suicidaleggroll
Senior Member
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 3,221

Rep: Reputation: 1155Reputation: 1155Reputation: 1155Reputation: 1155Reputation: 1155Reputation: 1155Reputation: 1155Reputation: 1155Reputation: 1155
Can you reach the server from within the router's 192.168.11.* network, by going to the router's public address 10.1.10.109?
 
Old 08-28-2012, 04:02 AM   #7
cin_
Member
 
Registered: Dec 2010
Posts: 266

Original Poster
Rep: Reputation: 23
More...

Okay the strange functionality seems to have stopped, but the problems persist.

Now when I type in the local IP outside of the router's network I am greeted with a server not found.

suicidaleggroll, if I type the 10.1.10.109 into the router's local network then I get the router's configuration page. The same as it's 192.168.11.1 IP.

Last edited by cin_; 08-28-2012 at 04:02 AM. Reason: gramm`err
 
Old 08-30-2012, 06:31 PM   #8
gsahli
LQ Newbie
 
Registered: Dec 2003
Location: Chicago
Distribution: Ubuntu12.04 and 14.04
Posts: 8

Rep: Reputation: 0
Sorry I didn't reply sooner - wasn't sure if you want to do what you're doing ! ...
You have a nested network - the router is an isolated network of its own. Since both routers are doing DHCP (giving out IP addresses), it is safe to assume they have a firewall on.
You will make your life simpler by making "the router" a bridge. That means only the "IP gateway" will be providing IP addresses, (DHCP service) and all computers/devices will be in the same subnet.
Different brand routers have differing ways to do this (read the manual) -
some will have a clear setup option for bridge mode; some will require you to turn off DHCP and connect your ethernet input to one of the LAN (normally output) jacks and not use the WAN (normally input) jack.

Of course, if I've misunderstood the purpose of what you're doing - let us know!
 
Old 08-31-2012, 06:32 AM   #9
JJJCR
Member
 
Registered: Apr 2010
Posts: 554

Rep: Reputation: 26
hi cin, basically you have two routers right?

one that is connected to the public ip and the other router is your wireless router? do i understand correctly?

why i said you have two routers, because you got two types of private ip. 192.168.x.x and 10.x.x.x

can try to elaborate further, you cannot connect from 192.168.x.x network to 10.x.x.x?
 
  


Reply

Tags
port forwarding


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
Warning: remote port forwarding failed for listen port 7869 windstory Linux - Newbie 1 08-02-2010 11:07 AM
Shorewall: port forwarding problem, port is closed even after forwarding Synt4x_3rr0r Linux - Networking 2 12-13-2009 05:36 PM
port forwarding on Belkin 4-port Cable/DSL Gateway Router sycamorex Linux - Networking 5 03-05-2007 04:27 PM
IPCHAINS port forwarding and IPTABLES port forwarding ediestajr Linux - Networking 26 01-14-2007 08:35 PM
Simple Port Forwarding Firewall - not forwarding MadTurki Linux - Security 14 04-09-2006 01:08 PM


All times are GMT -5. The time now is 12:14 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration