Community discussions

MikroTik App
 
namo
Long time Member
Long time Member
Topic Author
Posts: 530
Joined: Sat Oct 03, 2009 4:44 pm

Web server

Sat Oct 01, 2011 7:24 am

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?
 
User avatar
omega-00
Forum Guru
Forum Guru
Posts: 1167
Joined: Sat Jun 06, 2009 4:54 am
Location: Australia
Contact:

Re: Web server

Tue Oct 11, 2011 11:37 pm

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.
 
User avatar
cbrown
Trainer
Trainer
Posts: 1839
Joined: Thu Oct 14, 2010 8:57 pm
Contact:

Web server

Wed Oct 12, 2011 2:35 am

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.
 
namo
Long time Member
Long time Member
Topic Author
Posts: 530
Joined: Sat Oct 03, 2009 4:44 pm

Re: Web server

Sat Oct 15, 2011 12:26 am

how to do this?
 
fewi
Forum Guru
Forum Guru
Posts: 7717
Joined: Tue Aug 11, 2009 3:19 am

Re: Web server

Sat Oct 15, 2011 2:11 am

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
 
namo
Long time Member
Long time Member
Topic Author
Posts: 530
Joined: Sat Oct 03, 2009 4:44 pm

Re: Web server

Sat Oct 15, 2011 8:35 am

it worked . thank you

Who is online

Users browsing this forum: kristovskis, lubeda and 43 guests