Overclock.net › Forums › Software, Programming and Coding › Networking & Security › Dual router port forwarding and a minecraft server
New Posts  All Forums:Forum Nav:

Dual router port forwarding and a minecraft server

post #1 of 12
Thread Starter 

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.

post #2 of 12
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
Edited by Fir3Chi3f - 1/11/12 at 9:51pm
Neckpain
(12 items)
 
LAN rig
(8 items)
 
 
CPUMotherboardGraphicsRAM
i7 4930k Sabertooth x79 Nvidia 650ti Corsair Vengeance 
CoolingOSMonitorKeyboard
H100 Linux Mint ASUS 21.5" CMSTORM Quick Fire 
PowerCaseMouseAudio
Enermax 1050W Corsair Vengeance Series C70 Logitech Performance MX Xonar DX 
CPUMotherboardGraphicsRAM
AMD A10 5800K ASRock FM2A75M-ITX AMD Radeon HD 7660D samsung wonder ram 
Optical DriveCoolingOSOS
None Stock Linux Mint 14 64bit Windows Server 2012 
  hide details  
Reply
Neckpain
(12 items)
 
LAN rig
(8 items)
 
 
CPUMotherboardGraphicsRAM
i7 4930k Sabertooth x79 Nvidia 650ti Corsair Vengeance 
CoolingOSMonitorKeyboard
H100 Linux Mint ASUS 21.5" CMSTORM Quick Fire 
PowerCaseMouseAudio
Enermax 1050W Corsair Vengeance Series C70 Logitech Performance MX Xonar DX 
CPUMotherboardGraphicsRAM
AMD A10 5800K ASRock FM2A75M-ITX AMD Radeon HD 7660D samsung wonder ram 
Optical DriveCoolingOSOS
None Stock Linux Mint 14 64bit Windows Server 2012 
  hide details  
Reply
post #3 of 12
My first question is...

Why do you have 2 routers?
    
CPUMotherboardGraphicsRAM
Intel Overdrive 486DX4 100Mhz Digital Venturis 466 S3 Trio 32 1MB 68MB 72 Pin SIMMs 
Hard DriveOptical DriveOSMonitor
1.2Gb & 270Mb 32X CD-ROM Windows 98 SE LG 23" Flatron 
KeyboardPowerCaseMouse
Microsoft PS/2 Lite-On Digital Venturis 466 Logitech PS/2 
  hide details  
Reply
    
CPUMotherboardGraphicsRAM
Intel Overdrive 486DX4 100Mhz Digital Venturis 466 S3 Trio 32 1MB 68MB 72 Pin SIMMs 
Hard DriveOptical DriveOSMonitor
1.2Gb & 270Mb 32X CD-ROM Windows 98 SE LG 23" Flatron 
KeyboardPowerCaseMouse
Microsoft PS/2 Lite-On Digital Venturis 466 Logitech PS/2 
  hide details  
Reply
post #4 of 12
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.
Das Rig, Ja?
(12 items)
 
  
CPUMotherboardGraphicsRAM
AMD Ryzen 1700 Asus Crosshair VI EVGA 1080Ti SC2 2x16G GSkill RGB 3200 
Hard DriveCoolingOSMonitor
500 GB 960 EVO Enermax T50A-BVT Windows 10 Pro 27" Asus 
KeyboardPowerCaseMouse
Logitech K350 EVGA 1600G2 Fractal Define C Rosewill M55 RGB 
  hide details  
Reply
Das Rig, Ja?
(12 items)
 
  
CPUMotherboardGraphicsRAM
AMD Ryzen 1700 Asus Crosshair VI EVGA 1080Ti SC2 2x16G GSkill RGB 3200 
Hard DriveCoolingOSMonitor
500 GB 960 EVO Enermax T50A-BVT Windows 10 Pro 27" Asus 
KeyboardPowerCaseMouse
Logitech K350 EVGA 1600G2 Fractal Define C Rosewill M55 RGB 
  hide details  
Reply
post #5 of 12
Thread Starter 
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.

post #6 of 12
There is this new thing called a network switch. You should check it out.
post #7 of 12
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.
    
CPUMotherboardGraphicsRAM
Intel Overdrive 486DX4 100Mhz Digital Venturis 466 S3 Trio 32 1MB 68MB 72 Pin SIMMs 
Hard DriveOptical DriveOSMonitor
1.2Gb & 270Mb 32X CD-ROM Windows 98 SE LG 23" Flatron 
KeyboardPowerCaseMouse
Microsoft PS/2 Lite-On Digital Venturis 466 Logitech PS/2 
  hide details  
Reply
    
CPUMotherboardGraphicsRAM
Intel Overdrive 486DX4 100Mhz Digital Venturis 466 S3 Trio 32 1MB 68MB 72 Pin SIMMs 
Hard DriveOptical DriveOSMonitor
1.2Gb & 270Mb 32X CD-ROM Windows 98 SE LG 23" Flatron 
KeyboardPowerCaseMouse
Microsoft PS/2 Lite-On Digital Venturis 466 Logitech PS/2 
  hide details  
Reply
post #8 of 12
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.
Neckpain
(12 items)
 
LAN rig
(8 items)
 
 
CPUMotherboardGraphicsRAM
i7 4930k Sabertooth x79 Nvidia 650ti Corsair Vengeance 
CoolingOSMonitorKeyboard
H100 Linux Mint ASUS 21.5" CMSTORM Quick Fire 
PowerCaseMouseAudio
Enermax 1050W Corsair Vengeance Series C70 Logitech Performance MX Xonar DX 
CPUMotherboardGraphicsRAM
AMD A10 5800K ASRock FM2A75M-ITX AMD Radeon HD 7660D samsung wonder ram 
Optical DriveCoolingOSOS
None Stock Linux Mint 14 64bit Windows Server 2012 
  hide details  
Reply
Neckpain
(12 items)
 
LAN rig
(8 items)
 
 
CPUMotherboardGraphicsRAM
i7 4930k Sabertooth x79 Nvidia 650ti Corsair Vengeance 
CoolingOSMonitorKeyboard
H100 Linux Mint ASUS 21.5" CMSTORM Quick Fire 
PowerCaseMouseAudio
Enermax 1050W Corsair Vengeance Series C70 Logitech Performance MX Xonar DX 
CPUMotherboardGraphicsRAM
AMD A10 5800K ASRock FM2A75M-ITX AMD Radeon HD 7660D samsung wonder ram 
Optical DriveCoolingOSOS
None Stock Linux Mint 14 64bit Windows Server 2012 
  hide details  
Reply
post #9 of 12
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
    
CPUMotherboardGraphicsRAM
Intel Overdrive 486DX4 100Mhz Digital Venturis 466 S3 Trio 32 1MB 68MB 72 Pin SIMMs 
Hard DriveOptical DriveOSMonitor
1.2Gb & 270Mb 32X CD-ROM Windows 98 SE LG 23" Flatron 
KeyboardPowerCaseMouse
Microsoft PS/2 Lite-On Digital Venturis 466 Logitech PS/2 
  hide details  
Reply
    
CPUMotherboardGraphicsRAM
Intel Overdrive 486DX4 100Mhz Digital Venturis 466 S3 Trio 32 1MB 68MB 72 Pin SIMMs 
Hard DriveOptical DriveOSMonitor
1.2Gb & 270Mb 32X CD-ROM Windows 98 SE LG 23" Flatron 
KeyboardPowerCaseMouse
Microsoft PS/2 Lite-On Digital Venturis 466 Logitech PS/2 
  hide details  
Reply
post #10 of 12
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!
Neckpain
(12 items)
 
LAN rig
(8 items)
 
 
CPUMotherboardGraphicsRAM
i7 4930k Sabertooth x79 Nvidia 650ti Corsair Vengeance 
CoolingOSMonitorKeyboard
H100 Linux Mint ASUS 21.5" CMSTORM Quick Fire 
PowerCaseMouseAudio
Enermax 1050W Corsair Vengeance Series C70 Logitech Performance MX Xonar DX 
CPUMotherboardGraphicsRAM
AMD A10 5800K ASRock FM2A75M-ITX AMD Radeon HD 7660D samsung wonder ram 
Optical DriveCoolingOSOS
None Stock Linux Mint 14 64bit Windows Server 2012 
  hide details  
Reply
Neckpain
(12 items)
 
LAN rig
(8 items)
 
 
CPUMotherboardGraphicsRAM
i7 4930k Sabertooth x79 Nvidia 650ti Corsair Vengeance 
CoolingOSMonitorKeyboard
H100 Linux Mint ASUS 21.5" CMSTORM Quick Fire 
PowerCaseMouseAudio
Enermax 1050W Corsair Vengeance Series C70 Logitech Performance MX Xonar DX 
CPUMotherboardGraphicsRAM
AMD A10 5800K ASRock FM2A75M-ITX AMD Radeon HD 7660D samsung wonder ram 
Optical DriveCoolingOSOS
None Stock Linux Mint 14 64bit Windows Server 2012 
  hide details  
Reply
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Networking & Security
Overclock.net › Forums › Software, Programming and Coding › Networking & Security › Dual router port forwarding and a minecraft server