› Forums › Network Management › ZeroShell › Netbalancer: Routing public IPs behind LAN › Reply To: Netbalancer: Routing public IPs behind LAN
Would look like my scheme, the real Ip replaced by Ip type (1.1.1.2/30, 2.2.2.2/30, etc.).
Real subnetwork get on channel A Real IPs (4.4.4.x/24)
In configuring (Linux) in this case should be turned off NAT and routing is enabled. Further, the interface rl0 should be spelled out two un 192.168.0.254 looking at a subnet (192.168.0.x/24) and real-subnet 4.4.4.254 looking at a subnet (4.4.4.x/24). Further, all is clear for configuring the server (Linux).
We proceed to set up ZS.
We go in (router) and create a rule in our example, they look so :
Destination:192.168.0.0 Netmask: 255.255.255.0 Gateway: 3.3.3.2 Metric 1
Destination:4.4.4.0 Netmask: 255.255.255.0 Gateway: 3.3.3.2 Metric 1
To start off (NAT) with interface (ETH01)
Next, we go in (Net Balantser) create a (Balancing Rules) rule in which we write
(Source IP: 4.4.4.0/24) on
(Destination IP: 0.0.0.0 / 0)
(TARGET GATEVAY: GW-A)
This rule, we have sent all the traffic from the network (4.4.4.x/24) on interface (ET01)
Then go to (Setup–>Startup/Kron–> NAT and Virtual Servers script) and put this rule:
iptables-t nat-A POSTROUTING-s 192.168.0.0/24-o ETH01-j SNAT – to-source 1.1.1.2
It is necessary for that would be a subnet (192.168.0.0/24) could get through this interface.
After the restart ZS !!!
Well, something like this, I do not mostak write instructions can someone will correct me or offer his own version … All thanks for your attention ..