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 10-22-2007, 10:48 PM   #1
unknownmosquito
Member
 
Registered: Dec 2005
Distribution: Fedora 8
Posts: 57

Rep: Reputation: 15
Linksys router forwards no ports to Fedora box


I have a linksys router that simply will not forward any ports to my Fedora box -- I know it's not the router because my roommate has the same router forward ports to his Ubuntu setup. The difference: Mine has a second internet connection elsewhere.

Is there some setting I might be missing on the linux side?

THX,

Ian

PS.. 1138
 
Old 10-22-2007, 10:51 PM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Could you explain what you mean by a second internet connection elsewhere?
Is your default gateway the Linksys router or something else?
 
Old 10-22-2007, 10:59 PM   #3
unknownmosquito
Member
 
Registered: Dec 2005
Distribution: Fedora 8
Posts: 57

Original Poster
Rep: Reputation: 15
My default gateway is a direct connection I have going through another port.

I need port 80 twice.. ahh.. its a long story.. but we only have two jacks in the wall and so the only way to share with my roommate is through the router. :/

So the first step is getting Apache to serve through both IPs, for testing. The site works great on the internal network, but neither it nor ssh ports opened for testing work from the outside :O
 
Old 10-23-2007, 12:24 AM   #4
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
I think you will need to explain how your network is set up. Are you going through another computer? If so, is your computer and the other one on different subnets on the LAN.

Is the router a NAT router, with switch outputs. I don't understand why you need a direct connection to another computer, or do you have more computers than switch ports on the router.

Even if that were the case, if it is a NAT router, you can use a switch to add more ports.

Or does your roommate have port 80 and 22 forwarded to his machine. Are you trying to run two web servers on the same Internet IP address?

Last edited by jschiwal; 10-23-2007 at 12:26 AM.
 
Old 10-23-2007, 12:32 AM   #5
unknownmosquito
Member
 
Registered: Dec 2005
Distribution: Fedora 8
Posts: 57

Original Poster
Rep: Reputation: 15
OK,
my computer has two ethernet cards.
I am trying to run a web server on one port (and subsequently one IP), and ssh through port 80 on the other card (and a second IP) .
(reason for port 80 is moot but it must go through 80 or 443; thats where the long story is.. anyway..)

The web server is currently running on both IPs just so I can test forwarding. The server works great over one card, which is connected directly to the internet, see http://trantor.boldlygoingnowhere.org/

The other card has to go into my router, because my roommate needs the internet too. The router is just a switching router I believe; it forwards port 20-22 to his computer just fine, which is really frustrating, because it will forward nothing to me, not port 80 not port 22 (if I turn his off and use the exact setting to my internal IP).

So, basically, for some reason, my computer (or maybe the Linksys router) is rejecting packets for my computer, and mine only. It isn't the server -- if I navigate to my local address I see it fine; it has to be the router, or some setting I have that is rejecting the router's attempt to forward.

Blargh. Hope that clears it up.
 
Old 10-26-2007, 03:16 PM   #6
unknownmosquito
Member
 
Registered: Dec 2005
Distribution: Fedora 8
Posts: 57

Original Poster
Rep: Reputation: 15
Also doesn't forward the ports if the other ethernet port is disconnected.

So.. anybody...?
 
  


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
Linksys cable router setup Linux box no net access Phebes Linux - Networking 19 09-17-2004 11:53 PM
Linksys router- forwarding ports glore Linux - Networking 1 06-01-2004 11:00 PM
Linksys Router Blocking Ports BrianW Linux - Networking 2 03-03-2004 12:37 AM
SSH into Third box behind a linksys router. donk3 Linux - Networking 1 09-05-2003 01:02 PM
Linux box can't see linksys router mjohns63 Linux - Networking 0 07-23-2003 11:51 PM

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

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