i need your help to configure router board mikrotik,
i have a database server, its connect to switch and all computer can access to database directly, i have another building should access to database too, so i use P2P with mikrotik RB433,
{exactly i use wireless bridge (AP) and station bridge (station)}.
I want the client in the other building(station) should connect with broadband (AP) before access to database.
i mean broadband server in the server side.
can you help me please check the attached
What you have posted should do exactly as described. If it is not working I suspect there is possibly some configuration issue with the ptp link.
If you are using AP bridge and station bridge, you simply need to create a bridge interface on each routerboard and add both the WLAN and Ethernet interfaces as ports on the bridge.
IP addresses 192.168.1.20 (and 1.30) should be on the bridge interface of each router
If this is how you have it configured, perhaps post wireless and bridge configurations
thank your for your reply.
the connection is work, and i can access to the database server with out any problem,
but what i want to do is “no one can access the server until he connect broadband”
Can you give more inforation on this? Are you saying nobody can currently connect to the server unless they first access the Broadband, or you want clients to connect to Broadband before the server???
Do you have 192.168.1.30 bound to an Ethernet or bridge interface - looking at your drawing it should be bound to the bridge port that includes eth1 eth2 and wlan AP.
it is a bit difficult to sea any other reason why you can’t get to the server without the wireless connection running.
can you please post bridge config, route config, ip config.
If I understand you - all interfaces are passing traffic, but you want to stop clients plugged into eth2 from accessing the server on eth1 until the wireless link to the station unit is established?
On way you could do this is by using netwatch to monitor the ip address of the station unit and execute small script to enable/disable eth1 as requested
set the host ip to watch as 192.168.1.20 (the station router)
set timeout to say 5000 (5 seconds)
set up action to turn on ether1 (where the server is plugged into) interface ethernet set 0 disabled=no
set down action to turn off ether1 interface ethernet set 0 disabled=yes
Assuming that ether1 where your server is connected is interface 0 on your router
you could do this at cli with something like this
tool netwatch add host=192.168.1.20 timeout=5s interval=20s up-script=interface ethernet set 0 disabled=no
down-script=interface ethernet set 0 disabled=yes