Overclock.net banner

1 - 12 of 12 Posts

·
Registered
Joined
·
3,531 Posts
Discussion Starter · #1 ·
So I'm setting up a Minecraft server and I need to forward some ports through two routers.

My set up:

Server --> Router #2 --> Router #1 --> Modem -->Interwebs!!!!

Both routers are running DD-WRT btw.

I have done a bit of research but I'm kind of lost on a few things.

1. How to set up a static IP address under Linux, Ubuntu 11.10 desktop to be specific.

2. Correctly forwards through two routers. If I under stand correctly I have to forward the server through Router #2 then forward Router #2 through Router #1 somehow.

Thanks for any help.
 

·
Registered
Joined
·
1,723 Posts
My suggestion would be to disable DHCP server and routing on the second router and turn on forwarding. Then you will just have to forward ports through the first router and would only have one subnet for the whole house.

I don't worry about the DHCP server changing the IP address with DD-WRT because it handles it in such a way, machines rarely have their ip's changed. But if you want to reserve the ip for your server check this out: http://www.dd-wrt.com/wiki/index.php/Static_DHCP

Let me (us?) know how it goes

EDIT: Almost forgot! change the IP address of the second router to an IP outside of the range of the first DHCP router. That way you can still get to it once all this is said and done.

And, not a part of my suggestion, but for the sake of completeness for your questions:
http://ubuntuguide.org/wiki/Ubuntu:Oneiric#Set_a_static_IP_address
 

·
Premium Member
Joined
·
14,051 Posts
Port forward on router 1 to a destination of router 2's IP
Port forward on router 2 to a destination of the server's IP

As stated, why do you have double NAT?
It would be more convenient to disable the routing/dhcp functions of router 2 (and plug into network using LAN ports instead of WAN port). This would put everything in the same subnet and you would only have to port forward on your WAN facing device.
 

·
Registered
Joined
·
3,531 Posts
Discussion Starter · #5 ·
Quote:
Originally Posted by Fir3Chi3f View Post

My suggestion would be to disable DHCP server and routing on the second router and turn on forwarding. Then you will just have to forward ports through the first router and would only have one subnet for the whole house.
I don't worry about the DHCP server changing the IP address with DD-WRT because it handles it in such a way, machines rarely have their ip's changed. But if you want to reserve the ip for your server check this out: http://www.dd-wrt.com/wiki/index.php/Static_DHCP
Let me (us?) know how it goes
EDIT: Almost forgot! change the IP address of the second router to an IP outside of the range of the first DHCP router. That way you can still get to it once all this is said and done.
And, not a part of my suggestion, but for the sake of completeness for your questions:
http://ubuntuguide.org/wiki/Ubuntu:Oneiric#Set_a_static_IP_address
Will look into that.

Quote:
Originally Posted by killabytes View Post

My first question is...
Why do you have 2 routers?
Too many computers for one router to handle

Quote:
Originally Posted by beers View Post

Port forward on router 1 to a destination of router 2's IP
Port forward on router 2 to a destination of the server's IP
As stated, why do you have double NAT?
It would be more convenient to disable the routing/dhcp functions of router 2 (and plug into network using LAN ports instead of WAN port). This would put everything in the same subnet and you would only have to port forward on your WAN facing device.
I just plugged it in and called it good. Never thought anything of it cause it worked.
 

·
Premium Member
Joined
·
4,947 Posts
Unless your router's DHCP has reached the maximum about of IPs it's able to hand out...

You don't need a second router/NAT/DHCP. Like the post above me said, get a switch.
 

·
Registered
Joined
·
1,723 Posts
Well, a switch would serve the purpose here, but the fact is that he has two routers. Maybe from upgrading the first one then more computers came into the house or maybe one of the routers isn't his. We don't know and none of us likely care to hear about it.

The point of the post is, "I have this setup, how do I make it work?" and I would hope that he doesn't need to buy even more hardware, when what he has should be sufficient.
 

·
Premium Member
Joined
·
4,947 Posts
Quote:
Originally Posted by Fir3Chi3f View Post

Well, a switch would serve the purpose here, but the fact is that he has two routers. Maybe from upgrading the first one then more computers came into the house or maybe one of the routers isn't his. We don't know and none of us likely care to hear about it.
The point of the post is, "I have this setup, how do I make it work?" and I would hope that he doesn't need to buy even more hardware, when what he has should be sufficient.
OK but if you brought your car in cause it was making a funny noise and the mechanic noticed that it was missing 3 wheels.....

You'd just say "Hey! I'm only here for the noise!!"

rolleyes.gif
 

·
Registered
Joined
·
1,723 Posts
Quote:
Originally Posted by killabytes View Post

OK but if you brought your car in cause it was making a funny noise and the mechanic noticed that it was missing 3 wheels.....
You'd just say "Hey! I'm only here for the noise!!"
rolleyes.gif
I would say something like that! I drive a Jeep Cherokee Chief that is older than me!
 

·
Registered
Joined
·
3,531 Posts
Discussion Starter · #11 ·
Quote:
Originally Posted by killabytes View Post

OK but if you brought your car in cause it was making a funny noise and the mechanic noticed that it was missing 3 wheels.....
You'd just say "Hey! I'm only here for the noise!!"
rolleyes.gif
Well if I am concerned about the fact that the car is making a funny noise more than missing three wheels, Then yes, I would say that.

Side note: I also drive a Jeep so I'm worried if it doesn't make noises.

Quote:

Originally Posted by MrX00 View Post

There is this new thing called a network switch. You should check it out.
Quote:
Originally Posted by killabytes View Post

Unless your router's DHCP has reached the maximum about of IPs it's able to hand out...
You don't need a second router/NAT/DHCP. Like the post above me said, get a switch.
Quote:
Originally Posted by Fir3Chi3f View Post

Well, a switch would serve the purpose here, but the fact is that he has two routers. Maybe from upgrading the first one then more computers came into the house or maybe one of the routers isn't his. We don't know and none of us likely care to hear about it.
The point of the post is, "I have this setup, how do I make it work?" and I would hope that he doesn't need to buy even more hardware, when what he has should be sufficient.
Yes I have heard of these magical devices called switches. But I don't have the money nor desire to buy one if I my current set up can be configured properly.
 

·
Premium Member
Joined
·
4,947 Posts
Then just disable the DHCP and use the switch that's built into every single residential router.
 
1 - 12 of 12 Posts
Top