in

How to route two different internal subnets thru router

Hello!

This is probably very simple to do, but I'm having some difficulty.  I have a HotBrick Dual WAN Firewall Router LB-2 and two servers on different subnets.  I want to have these servers see each other and pass data through the HotBrick firewall.  Here's the setup:

HotBrick static LAN IP = 192.168.10.1
Server1 static IP = 192.168.10.10
Server2 static IP = 192.168.20.10 <-- this server is on a different subnet, obviously

I have Server1 and Server2 plugged into the LAN ports in the back of the HotBrick router.  This is in a test lab environment, so there is no internet connection involved.

What is the easiest was to have Server1 pass data to Server2?  HotBrick specific info would be great, as I don't have much experience with these.  But any help will do!  :-)

Thank you in advance for your time and help!
Movie Stars

Solution: How to route two different internal subnets thru router

The wan ports should connect your network to the internet, better known as the outside interface.
The lan ports should be used to connect your lan, better known as the inside interface.

I do not use the Hotbrick so I'm assuming that you can use the lan interfaces to assign multiple lans.
For example,
hotbrick wan interface --><---internet
hotbrick lan interface1/192.168.10.1---><---Lan ONE switch----><-----server1/192.168.10.10
hotbrick lan interface2/192.168.20.1---><---Lan TWO switch----><-----server1/192.168.20.10

Basically, setup each lan interface on the firewall as seperate lan networks and name them something like lanint1 and lanint2.

The rule would go something like this.
create network objects and name them something like lan1 and lan2.
   lan1 = 192.168.10.0/24
   lan2 = 192.168.20.0/24

defile rule something like this

rule number  -  source interface  -  source  -  destination interface -  destination -  protocol/service/port
       1                   lanint1                  lan1              lanint2                      lan2                  http
       2                   lanint2                  lan2              lanint1                      lan1                  http

The two rules here would allow port 80 (http) traffic to pass between the two interfaces lanint1 and lanint2.


This is basic for any gateway firewall but I am not sure your device supports it.

Donnie