Page 1 of 1

Web server

Posted: Sat Oct 01, 2011 7:24 am
by namo
My network has the fallowung conpenent:

Hotspot+PPPoE Mikrotik router (intel PC)
Lan 192.168.2.1
WAN 192.168.1.1

RB450 router used to combine 3 lines
lan 192.168.1.50
wan1 192.168.3.1
wan2 192.168.7.1
wan3 192.168.9.1
Server 10.10.10.1 ( the server connected to this port and has ip 10.10.10.10)

Intel pc lan post is connected to the lan port of RB450.

I added i ip--<DNS --> static DNS in the Intel PC
http://www.****.com ----> 10.10.10.10

hotspot user can access the site in the server using the url http://www.***.com but PPPoE user can only access the site using 10.10.10.10. how can I let the PPPoE user access using url too?

Re: Web server

Posted: Tue Oct 11, 2011 11:37 pm
by omega-00
You'll need to add a rule that forces the PPPoE user to use the Mikrotik's DNS server or add it in the PPPoE configuration so they are assigned those DNS servers when they connect.

Otherwise they'll just lookup any external server which won't know about your custom DNS entry on the local Mikrotik.

Web server

Posted: Wed Oct 12, 2011 2:35 am
by cbrown
It would be better to set a redirect rule in your nat to redirect all DNS request from either the pppoe users or all users to the router. This way even if users set their own DNS it will still be redirected to your router for DNS requests. Be sure to enable "allow remote requests".

Both ways would work but this way keeps the user from changing their own DNS and breaking what you are trying to achieve.

Re: Web server

Posted: Sat Oct 15, 2011 12:26 am
by namo
how to do this?

Re: Web server

Posted: Sat Oct 15, 2011 2:11 am
by fewi
Same as any other redirect.
/ip firewall nat
add chain=dstnat protocol=udp dst-port=53 action=redirect
add chain=dstnat protocol=tcp dst-port=53 action=redirect

Re: Web server

Posted: Sat Oct 15, 2011 8:35 am
by namo
it worked . thank you