Forums

Resolved
0 votes
Hi

I am trying to put a linux gateway server (clearos) in between my home clients and hardware gateway. reasons qos, bandwidth monitoring etc. My vdsl router functionality is crap in regards to bandwidth. I could put the dsl router in bridge mode and have clearos dial its own connection but for now I do not want to do that.

internet ----- vsdsl dialup (x.x.x.1) ------
clearos (x.x.x.2 / x.x.x3) ------ clients

Network work topo..

192.168.5.1 ( pace router vdsl gateway )
192.168.5.2 and 192.168.5.3 ( clearos setup as gateway with 2 nics )

5.2 is the LAN card eth1
5.3 is a WAN static ip which points to 5.1 eth0

routes
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.5.0 * 255.255.255.0 U 0 0 0 eth1
192.168.5.0 * 255.255.255.0 U 0 0 0 eth0
link-local * 255.255.0.0 U 1002 0 0 eth0
link-local * 255.255.0.0 U 1003 0 0 eth1
default 192.168.5.1 0.0.0.0 UG 0 0 0 eth0


Now I am trying to point my subnet clients to clearos using 5.2 as the gateway, however it fails. I am assuming it has something to do with the routes.

IP-forwarding is on and firewall is turned off


how can I get this to work
thanks
Friday, April 08 2016, 02:28 PM
Share this post:
Responses (2)
  • Accepted Answer

    Friday, April 08 2016, 04:01 PM - #Permalink
    Resolved
    0 votes
    Tony has a good eye here. And he is correct. You cannot NAT between two networks with the same subnet.

    Perhaps you can make eth1 be on 192.168.6.x?
    The reply is currently minimized Show
  • Accepted Answer

    Friday, April 08 2016, 02:58 PM - #Permalink
    Resolved
    0 votes
    You cannot have the WAN and LAN connections in the same sub-net.
    Pick something different for your LAN such as 192.168.6.0 mask 255.255.255.0
    The reply is currently minimized Show
Your Reply