Community discussions

MikroTik App
 
NikitaPlotnikov
just joined
Topic Author
Posts: 9
Joined: Mon Sep 25, 2017 5:19 pm

access to internet from mikrotik host

Mon Mar 26, 2018 5:26 pm

hi to all.
i have 2 wans and default routes 0.0.0.0/0 through GW1. how can i configure access for mikrotik (127.0.0.1) through GW2 for DNS access or firmware upgrade?
 
User avatar
anav
Forum Guru
Forum Guru
Posts: 19363
Joined: Sun Feb 18, 2018 11:28 pm
Location: Nova Scotia, Canada
Contact:

Re: access to internet from mikrotik host

Mon Mar 26, 2018 6:12 pm

Okay so lets reset.
(If only interested in knowing how to move traffic out a specific WAN go to 4. below)

I also have two WANs. It is not clear how you have set them up??
I have them setup to use WAN2 for failover only

wan1
dest: 0.0.0.0/0
gateway (an actual IP number and not an interface name).
ping gateway
distance 1

wan2
dest: 0.0.0.0/0
gateway (an actual IP number and not an interface name).
distance 2

I unchecked "add default route" on the appropriate DHCP Client tabs for these connections.

1. How many LANs do you have?
2. What is their purpose?
3. Do you want to force certain traffic out a certain WAN?

For example I have two lans and I put them on two bridges.
bridgehome ether2,3
bridgeDMZ ether4

The home bridge is used for all users
the DMZ bridge is used because I have to open some devices to the external world (septic and solar)

4. In terms of OUTGOING traffic I force the router, in a two-step process to use WAN2 for my email and use port (TCP25) WAN2 ISP email address xx.xxx.xx.xx

a. MARK TRAFFIC IP fw MANGLE Rule
b. ROUTE TRAFFIC IP Route rule

I hope this is helpful for you.
In general, the DNS servers of the ISps are available depending what network a user is being sent out on.
To get more specific need more details on your setup and what you are trying to accomplish.
 
User avatar
CZFan
Forum Guru
Forum Guru
Posts: 2098
Joined: Sun Oct 09, 2016 8:25 pm
Location: South Africa, Krugersdorp (Home town of Brad Binder)
Contact:

Re: access to internet from mikrotik host

Mon Mar 26, 2018 6:21 pm

Have not tested, but maybe:

chain as output, action mark routing and routing mark GW2
Then select the routing mark in route
 
NikitaPlotnikov
just joined
Topic Author
Posts: 9
Joined: Mon Sep 25, 2017 5:19 pm

Re: access to internet from mikrotik host

Wed Apr 11, 2018 11:44 pm

hi to all.
again i have trouble with this issue. and i cant understand why.
first - i have mangle rule with chain=output and have route rule with that mark distance=3 to 0.0.0.0/0
second - i have route rule distance=2 to x.x.x.x IP without any mark
why mikrotik send traffic to x.x.x.x through distance=3?

Who is online

Users browsing this forum: Amazon [Bot], GoogleOther [Bot], Kanzler, Majestic-12 [Bot] and 46 guests