Routing Question

Hi, i have an AP set as ap-bridge
int eth1 ip : 192.168.1.10/24 (public)
int wan1 ip: 192.168.10.1/24 (local)

in my station :
int wan1 ip: 192.168.10.2 (public)
int eth1 ip: 10.0.0.1/24 (local)

i want to connect both wireless devices, so what i did on the station:
1.add gateway to 192.168.10.1 (wan1 int of AP)
2.source nat out int. wlan1 (public) action masquerade

and i did the following in the AP:

  1. add gateway to 192.168.1.254 (internet router ip address)
  2. source nat out int. eth1 (public) action masquerade

so far, AP can see the internet fine, the station also can see the internet ( i ran traceroute from winbox to check and it works fine)
the problem is, when i connect my computer to the lan side of the station, i set ip 10.0.0.2/24 gateway 10.0.0.1, i try to trace any ip address, even on the 192.168.1.0/24 network, i stuck on 10.0.0.1, then time outs comming.

is my setup correct, am i missing something here?

i appreciate any help.

thanks.

try adding this route in the AP

10.0.0.0/24 gateway = 192.168.10.2


also you may have to set up some routes in your router that connects to your AP

10.0.0.0 255.255.255.0 192.168.1.10

Also you may want to set up RIP for each network and neighbors will be the wlan ip of your modems


I set my customers in chunks of 8 , netmask of /29 , I believe you have to add routes for each customer, but I may be wrong

hope this helps

It posted twice :neutral_face:

thanks for the help, i totally forgot that i must do the routing back on the AP, ill do it and let you know, also, do i keep the natting as is?

thanks/

Yep that should do the trick