Community discussions

MUM Europe 2020

Search found 83 matches

by infidel
Fri Nov 14, 2014 12:02 pm
Forum: RouterBOARD hardware
Topic: Groove 52HPn Dead?
Replies: 2
Views: 1291

Groove 52HPn Dead?

Just got a Groove 52HPn from a friend to test and play with. The unit was configured by me 6 month ago to work as a CPE at my friends summer house. It was used for a month indoors with no problems. I plugged it in at my premises, backed up the configuration and connected it to my House's wifi for st...
by infidel
Wed Nov 13, 2013 3:17 pm
Forum: General
Topic: Mark packets by interface IP
Replies: 7
Views: 960

Re: Mark packets by interface IP

Thanx, i will try it and get back.
by infidel
Tue Nov 12, 2013 7:04 pm
Forum: General
Topic: Mark packets by interface IP
Replies: 7
Views: 960

Re: Mark packets by interface IP

No, i need them on the same subnet.
by infidel
Tue Nov 12, 2013 6:57 pm
Forum: General
Topic: Mark packets by interface IP
Replies: 7
Views: 960

Re: Mark packets by interface IP

Could i use vlans perhaps? (just a thought)

Or even better create virtual interfaces
http://wiki.mikrotik.com/wiki/Manual:In ... l-ethernet
by infidel
Tue Nov 12, 2013 6:44 pm
Forum: General
Topic: Mark packets by interface IP
Replies: 7
Views: 960

Re: Mark packets by interface IP

Because i want to select the route from the client (by changing the gateway)
by infidel
Tue Nov 12, 2013 3:49 pm
Forum: General
Topic: Mark packets by interface IP
Replies: 7
Views: 960

Mark packets by interface IP

Hi, I am trying to add 2 ip addresses on the lan interface and route packages based on the ip address. In effect i would like to be able to change the gateway on a client pc and route packages through a different wan connection. The ip addresses must be sequential e.g. 192.168.0.100 & 192.168.0.101....
by infidel
Fri Nov 30, 2012 10:49 am
Forum: General
Topic: Nth Load Balancing does not work in a dual WAN set-up
Replies: 3
Views: 1548

Re: Nth Load Balancing does not work in a dual WAN set-up

Are you using check gateway=ping on your routes? If you are usind dsl modem/router and have the account username/password, you could switch them to bridge mode and ppoe clients on mikrotik, it works better and detects disconnects
by infidel
Sun Nov 25, 2012 9:58 am
Forum: General
Topic: Routing packets according to gateway IP used
Replies: 1
Views: 498

Routing packets according to gateway IP used

Anyone? Perhaps use vlans and assign the secondary gateway ip there?
by infidel
Thu Nov 22, 2012 7:57 pm
Forum: General
Topic: is my pcc config correct?
Replies: 5
Views: 963

Re: is my pcc config correct?

I see in all the examples they add NAT. NAT is already being done on the ADSL routers so i was wondering if I can leave out the following: add chain=srcnat out-interface=WAN1 action=masquerade add chain=srcnat out-interface=WAN2 action=masquerade add chain=srcnat out-interface=WAN3 action=masquerad...
by infidel
Thu Nov 22, 2012 7:32 pm
Forum: General
Topic: Routing packets according to gateway IP used
Replies: 1
Views: 498

Routing packets according to gateway IP used

Something came up and I would like your knowledge. I would like to assign multiple ips on the lan interface (e.g. 192.168.0.1 & 192.168.0.2) and route traffic depending on the ip that client pc will use as gateway. How do I mark packets that enter from the same interface but different ip? Any though...
by infidel
Tue Feb 22, 2011 10:16 am
Forum: General
Topic: winbox for windows mobile - minBox
Replies: 29
Views: 14606

Re: winbox for windows mobile - minBox

wasn't aware of it. Nice. But a few things. 1. website has lots of 404 errors 2. once I create a device I can not change the user/pwd unless I delete and reenter it 3. website seems to indicate more than one version yet one version in the app store/? thanks leon 1. No 404 errors for me. Maybe a reg...
by infidel
Mon Feb 21, 2011 8:49 pm
Forum: Scripting
Topic: how to use public ip and local ip in same ethernet ?
Replies: 2
Views: 1020

Re: how to use public ip and local ip in same ethernet ?

Make sure that you customer always gets the same ips and then map each of his ips with a real one. add action=src-nat chain=srcnat comment="Static IPs Outgoing Nat" disabled=\ yes out-interface=ether2-pppoe src-address=192.168.0.100 to-addresses=\ 202.xx.xx.20 add action=dst-nat chain=dstnat comment...
by infidel
Mon Feb 21, 2011 8:38 pm
Forum: General
Topic: winbox for windows mobile - minBox
Replies: 29
Views: 14606

Re: winbox for windows mobile - minBox

any chance of an iPhone port?

Leon
Why not support a ready app? http://tikbox.mx/
by infidel
Tue Jan 25, 2011 7:45 pm
Forum: General
Topic: Login with dns not ip
Replies: 9
Views: 891

Re: Login with dns not ip

Maybe try another browser? (longshot)
by infidel
Tue Jan 25, 2011 6:23 pm
Forum: General
Topic: How can Hotspot see private addresses behind customer NAT..?
Replies: 16
Views: 3663

Re: How can Hotspot see private addresses behind customer NA

It looks to me (with my limited knowledge) as SurferTeam said that the customer's routers are not natting properly, or they are set up not to do so. If you torch the interface I bet you will see packets coming from that ip. Why not just drop every packet with source different than you dhcp pool. Tha...
by infidel
Wed Jan 19, 2011 9:07 am
Forum: Beginner Basics
Topic: What do Red Highlights mean (in Winbox)
Replies: 5
Views: 5438

Re: What do Red Highlights mean (in Winbox)

Or a pppoe client not connected.
by infidel
Wed Jan 19, 2011 9:04 am
Forum: General
Topic: Winbox for Android OS?
Replies: 25
Views: 36312

Re: Winbox for Android OS?

Maybe you should switch to iphone :D I use this and it works great! http://tikbox.mx/
by infidel
Mon Jan 17, 2011 10:04 am
Forum: The User Manager
Topic: problem with clock
Replies: 2
Views: 959

Re: problem with clock

Use NTP client to sync the date/time of mikrotik?
by infidel
Sat Jan 15, 2011 6:11 pm
Forum: Beginner Basics
Topic: routerOS level ?
Replies: 4
Views: 1258

Re: routerOS level ?

According to this http://wiki.mikrotik.com/wiki/Manual:License_levels you need level 5 ( 500 pppoe and 500 HotSpot active users)
by infidel
Sat Jan 08, 2011 11:42 pm
Forum: General
Topic: internal web server
Replies: 2
Views: 725

Re: internal web server

You will also have to port fortward port 80 from your dsl modem to the wan interface of the mikrotik. If your modem has DMZ just put the 192.168.1.254 ip there so you only have to deal with port forwarding on the mikrotik from now on. Or better yet, change your dsl modem to bridge mode and add a ppp...
by infidel
Sat Jan 08, 2011 4:18 pm
Forum: General
Topic: Secondary interface not pingable when first is active
Replies: 3
Views: 477

Re: Secondary interface not pingable when first is active

No, i do not use it. I would be happy to answer here if I know. I warn you though, my knowledge on mikrotik (and networks in general) is extremely limited
by infidel
Fri Jan 07, 2011 7:20 pm
Forum: General
Topic: Odd Xbox360 Issue.
Replies: 2
Views: 644

Re: Odd Xbox360 Issue.

by infidel
Fri Jan 07, 2011 3:56 pm
Forum: RouterBOARD hardware
Topic: Buy an RB or just licence x86?
Replies: 16
Views: 2150

Re: Buy an RB or just licence x86?

Here in Greece most providers don't know the difference between pppoa and pppoe(In one case I asked for SIP server passwords and ips and they faxed me the web password for their online customer care). So I am looking for a way (if possible) to bond 2 adsl lines with minimal or, better yet, no config...
by infidel
Fri Jan 07, 2011 12:55 pm
Forum: RouterBOARD hardware
Topic: Buy an RB or just licence x86?
Replies: 16
Views: 2150

Re: Buy an RB or just licence x86?

Thanx for the info! I wil have to look at the mlppp option.
by infidel
Thu Jan 06, 2011 10:48 am
Forum: General
Topic: Secondary interface not pingable when first is active
Replies: 3
Views: 477

Re: Secondary interface not pingable when first is active

Most probably mikrotik answers from the first ISP to your pings. You have to creature rules that when a new connection enters a wan interface, it will use the same interface to reply. This works for me for multiple wan interfaces as far as accessing mikrotik from all interfaces. /ip firewall mangle ...
by infidel
Thu Jan 06, 2011 9:59 am
Forum: Beginner Basics
Topic: logging on using console?
Replies: 3
Views: 447

Re: logging on using console?

By disabling addresses you mean you disabled ip addresses of the mikrotik, deleted saved addresses on winbox or disabled interfaces of the mikrotik? If it is 1 and 2 then you can press the ... button on winbox and will show you the mac address of the mikrotik (if you are in a lan).You can connect fr...
by infidel
Thu Jan 06, 2011 9:29 am
Forum: General
Topic: Iphone / Android forum Integration
Replies: 10
Views: 1289

Iphone / Android forum Integration

Is it possible for the moderators to integrate this module to the forum? http://www.tapatalk.com/
by infidel
Wed Jan 05, 2011 6:20 pm
Forum: RouterBOARD hardware
Topic: Buy an RB or just licence x86?
Replies: 16
Views: 2150

Re: Buy an RB or just licence x86?

Off topic, but how did you bond the 2? adsl lines into one? Did the provider provide the configuration or was it only configured from your side only? Sorry to drop in.
by infidel
Thu Dec 23, 2010 6:39 am
Forum: General
Topic: redirect to page for unknown user
Replies: 8
Views: 939

Re: redirect to page for unknown user

by infidel
Wed Dec 22, 2010 7:05 pm
Forum: General
Topic: Load Balancing with 3 wan
Replies: 16
Views: 2817

Re: Load Balancing with 3 wan

Which is exactly what my script does with the only difference that it uses 1 ip address which rotates for all gateway checks. It also checks if the modem is connect before pinging and logs all errors to a seperate log. Anyway, glad you figured it out!
by infidel
Tue Dec 21, 2010 9:17 pm
Forum: General
Topic: Load Balancing with 3 wan
Replies: 16
Views: 2817

Re: Load Balancing with 3 wan

This script will not work in your case...
by infidel
Mon Dec 20, 2010 5:21 pm
Forum: General
Topic: PCC + WEBPROXY + NAT
Replies: 1
Views: 815

Re: PCC + WEBPROXY + NAT

Try exluding your lan interface from the masquerade rule

action=masquerade chain=srcnat disabled=no out-interface=!Lan
by infidel
Mon Dec 20, 2010 3:53 pm
Forum: General
Topic: Load Balancing with 3 wan
Replies: 16
Views: 2817

Re: Load Balancing with 3 wan

:local Gateways "192.168.1.1,192.168.2.254" These are the ips of the modems you want to monitor. Inyour case is only 1. :local Gateways "192.168.1.1" :local pingip [:resolve "sex.com"] This is the domain you will use to check if you have internet. Make sure it is something that replies to pings, is ...
by infidel
Mon Dec 20, 2010 12:04 pm
Forum: General
Topic: There must be solution for this problem
Replies: 2
Views: 455

Re: There must be solution for this problem

If they are sharing their mac address (I think called mac spoofing) then mikrotik cannot distinguish between the two clients. If it is a wired network you will have to use a managed switch that prevents it. That is as far as I know.
by infidel
Mon Dec 20, 2010 11:53 am
Forum: General
Topic: Load Balancing with 3 wan
Replies: 16
Views: 2817

Re: Load Balancing with 3 wan

by infidel
Mon Dec 20, 2010 9:58 am
Forum: General
Topic: redirect to page for unknown user
Replies: 8
Views: 939

Re: redirect to page for unknown user

Did you enable "use IP firewall" in bridge settings?
by infidel
Sun Dec 19, 2010 1:30 pm
Forum: General
Topic: redirect to page for unknown user
Replies: 8
Views: 939

Re: redirect to page for unknown user

Change the interface to your bridge. I think it should work, but I am new too, so test it and report back.
by infidel
Sun Dec 19, 2010 8:54 am
Forum: General
Topic: redirect to page for unknown user
Replies: 8
Views: 939

Re: redirect to page for unknown user

add action=netmap chain=dstnat comment="" disabled=no dst-port=80 \
in-interface=wlan protocol=tcp src-address-list=!allowed_ips to-addresses=\
1.1.1.1 to-ports=80

Replace 1.1.1.1 with the ip of the webserver that has the page. You can create another rule that will drop all other packages
by infidel
Fri Dec 17, 2010 9:50 am
Forum: Beginner Basics
Topic: Question regarding Bridge
Replies: 3
Views: 669

Re: Question regarding Bridge

Thanks for the answer. So, to sum it up. When you add an interface to a bridge, you have to stop using that interface in your mangle rules and use the bridge interface instead. Is that correct?
by infidel
Thu Dec 16, 2010 6:44 pm
Forum: General
Topic: Urgent - restart scheduler every 10 seconds
Replies: 2
Views: 423

Re: Urgent - restart scheduler every 10 seconds

Reseting the mikrotik WILL DELETE everything. Passwords, configurations etc. If it did not, then you did not reset it properly.
http://intellcom.net/docs/Mikrotik_RB433_manual.pdf
by infidel
Thu Dec 16, 2010 1:27 pm
Forum: Beginner Basics
Topic: Question regarding Bridge
Replies: 3
Views: 669

Question regarding Bridge

A quick question. I have bridged the lan interface with the wireless lan. There is a DHCP server on my lan. In which interface do I setup the IP that will be used as a gateway from the clients? It does not seem to make any difference if I set it up on the Lan interface or the bridge interface. In bo...
by infidel
Wed Nov 17, 2010 10:58 am
Forum: Scripting
Topic: Checking and disabling Gateways
Replies: 26
Views: 15931

Re: Checking and disabling Gateways

Right now it is running fine in 4.6. Will test it on another microtik with 4.11 Is the down gateway the default one? maybe it does not work with 1 gateway down because it is the one that resolves the domain name used for pinging. Try to replace the domain name with the ip address. Hi, thanks for yo...
by infidel
Tue Nov 16, 2010 7:29 pm
Forum: Forwarding Protocols
Topic: Https and port forwarding problem (solved)
Replies: 1
Views: 3204

Re: Https and port forwarding problem

Try setting in input interface your wan interface
by infidel
Tue Nov 16, 2010 7:06 pm
Forum: Scripting
Topic: Checking and disabling Gateways
Replies: 26
Views: 15931

Re: Checking and disabling Gateways

Hi, have you tested your script in 4.11? I am trying to use it with 4 gateways and it runs if everything is ok but if one gateway is down or if I change the adress to resolve to one that does not exist it just won't run. Best regards. Right now it is running fine in 4.6. Will test it on another mic...
by infidel
Fri Nov 05, 2010 9:14 pm
Forum: Forwarding Protocols
Topic: Routing SIP over separate ADSL line
Replies: 3
Views: 2104

Re: Routing SIP over separate ADSL line

Not exactly on topic but, couldn't you just get the sip server's ip and forward ALL trafic to that destination ip through the desired dsl connection?
by infidel
Fri Nov 05, 2010 8:06 pm
Forum: Forwarding Protocols
Topic: Inbound NAT, multiple ISP's traffic flow
Replies: 12
Views: 5533

Re: Inbound NAT, multiple ISP's traffic flow

add action=mark-connection chain=input comment="New connections from Wan Interfaces" disabled=no in-interface=ether2 new-connection-mark="New Incoming Eth2" \ passthrough=yes add action=mark-connection chain=input comment="" disabled=no in-interface=ether4 new-connection-mark="New Incoming Eth4" pas...
by infidel
Fri Nov 05, 2010 7:46 pm
Forum: Forwarding Protocols
Topic: Inbound NAT, multiple ISP's traffic flow
Replies: 12
Views: 5533

Re: Inbound NAT, multiple ISP's traffic flow

Tried that. Seems to work, but:
1. I cannot access the gateway itself. If I exclude the gateway's ip from the first rule, then I can access it. Any thoughts on this?
2. If the default route is down, it stops working.
by infidel
Fri Nov 05, 2010 6:12 pm
Forum: Forwarding Protocols
Topic: Inbound NAT, multiple ISP's traffic flow
Replies: 12
Views: 5533

Re: Inbound NAT, multiple ISP's traffic flow

add action=mark-connection chain=forward comment=\ "New packets from Wan Interfaces" connection-state=new disabled=no \ in-interface=ether2 new-connection-mark="New Incoming Eth2" passthrough=\ no add action=mark-packet chain=prerouting comment="" connection-mark=\ "New Incoming Eth2" disabled=no ne...
by infidel
Fri Nov 05, 2010 5:28 pm
Forum: Forwarding Protocols
Topic: Inbound NAT, multiple ISP's traffic flow
Replies: 12
Views: 5533

Re: Inbound NAT, multiple ISP's traffic flow

you need to mark connections, mark packets, and then mark routing. in your example below you are not marking packets, only connections, which is pretty much just the SYN packets. Where you refering to my post? I just noted that i do not have a rule for each wan interface, i bundled them all togethe...
by infidel
Fri Nov 05, 2010 5:15 pm
Forum: Forwarding Protocols
Topic: Inbound NAT, multiple ISP's traffic flow
Replies: 12
Views: 5533

Re: Inbound NAT, multiple ISP's traffic flow

I have been trying to make this work for ages and have tried the above solution too. It does not seem to work. I can only remote desktop from the default route. If I change the default route to the other wan interface, i can connect but not from the first. The only difference is that i do not masqua...
by infidel
Fri Oct 22, 2010 6:36 am
Forum: Scripting
Topic: Checking and disabling Gateways
Replies: 26
Views: 15931

Re: Checking and disabling Gateways

Ok. We will add another variable to the script The variable's value will be 0 If a gateway is down we will change the variable to 1 At the end of the script, if the variable is 0 (meaning all gateways are up) we will run the first script, else the second add this at start below the other variables l...
by infidel
Tue Oct 19, 2010 11:55 am
Forum: Scripting
Topic: Checking and disabling Gateways
Replies: 26
Views: 15931

Re: Checking and disabling Gateways

You cannot run the script line by line in a terminal. You have to create a script (with write access) and run it using the scheduler, or manually. Unfortunately this makes debugging the script very difficult because you cannot see what is happening. Changing :if ($pingresult=0) do={:log info ("Gatew...
by infidel
Tue Oct 19, 2010 11:47 am
Forum: Scripting
Topic: Checking and disabling Gateways
Replies: 26
Views: 15931

Re: Checking and disabling Gateways

You can replace [:resolve "sex.com"] with the ip of your preferred test server. If you are using one isp you can probably find out on of his ip's (like mail server) that will always be up. This will take care of any dns issues. I just went with [:resolve "xxx.com"] because it was easier to change it...
by infidel
Tue Oct 19, 2010 11:42 am
Forum: Scripting
Topic: Checking and disabling Gateways
Replies: 26
Views: 15931

Re: Checking and disabling Gateways

Use the final script and add as many gateways as you like, seperated with comma (,). Yes if sex.com (or any other site you use) is down, then the gateways will be disabled. You can use any site you want, just remember that this site will be constantly changing gateways, so do not use e.g facebook.co...
by infidel
Thu Oct 14, 2010 8:06 am
Forum: General
Topic: Routing traffic to the correct interface
Replies: 4
Views: 621

Re: Routing traffic to the correct interface

No, I would like to use it for marking customer's traffic. What should I do in this case? Mark packets and not connections?
by infidel
Wed Oct 13, 2010 7:59 pm
Forum: General
Topic: Routing traffic to the correct interface
Replies: 4
Views: 621

Re: Routing traffic to the correct interface

Any help would be greatly appriciated.
by infidel
Tue Oct 12, 2010 5:49 pm
Forum: General
Topic: Routing traffic to the correct interface
Replies: 4
Views: 621

Routing traffic to the correct interface

I could not find a relative thread although it must have been asked before. Anyway. I would like to mark traffic coming from a wan interface and reroute it back using the same one. I am using masqurade for the wan interfaces. will this work? /ip firewall mangle add action=mark-connection chain=input...
by infidel
Thu Sep 23, 2010 5:54 pm
Forum: Scripting
Topic: Checking and disabling Gateways
Replies: 26
Views: 15931

Re: Checking and disabling Gateways

The onlu solution I can think of to your problem is to create default routes with all the possible combinations. For example, if you have 3 modems you will create route #1 (1-2-3), route#2 (1-2), route#3 (1-3), route#4 (2-3), route#5 (1), route#6 (2), route#7 (3) Route #1 will have distance 1 Routes...
by infidel
Thu Sep 23, 2010 5:48 pm
Forum: Scripting
Topic: Checking and disabling Gateways
Replies: 26
Views: 15931

Re: Checking and disabling Gateways

If you are planning on creating a mangle rule that marks the packets sent to the host you are pinging, remember that you will have to use one host for each gateway you will test, and then, when that gateway is down noone will be able to access that host. So do not use google ot something popular. Th...
by infidel
Thu Sep 23, 2010 5:37 pm
Forum: Scripting
Topic: Checking and disabling Gateways
Replies: 26
Views: 15931

Re: Checking and disabling Gateways

I see your problem. Unfortunately, the script was not made for that scenario, although I myself use multiple gateways for one route. I will think about it and reply here. I too started with the wiki but either I could not get it to work or it did not suite my needs. That is why I created this script.
by infidel
Thu Sep 23, 2010 5:33 pm
Forum: Scripting
Topic: Checking and disabling Gateways
Replies: 26
Views: 15931

Re: Checking and disabling Gateways

No, this script does not add and remove gateways, it disables and enables them. But in order to check every gateway I had to create a static route that forces the ping data through each gateway. So I create a static route, use it to ping a site, then delete it. Then I create another static route, us...
by infidel
Thu Sep 16, 2010 1:24 pm
Forum: General
Topic: Simple Queues and multiple gateways
Replies: 6
Views: 1304

Re: Simple Queues and multiple gateways

anyone?
by infidel
Thu Sep 09, 2010 7:50 pm
Forum: General
Topic: Simple Queues and multiple gateways
Replies: 6
Views: 1304

Re: Simple Queues and multiple gateways

I can post my configuration but it is kinda big so i think it will create more problems. anyway, marking the packets in the forward chain with source and destination interface seems to work (if you have no objections). I want users to be able to utilise the full speed if they are alone so, do I have...
by infidel
Thu Sep 09, 2010 7:36 pm
Forum: General
Topic: Simple Queues and multiple gateways
Replies: 6
Views: 1304

Re: Simple Queues and multiple gateways

Another question. Why use global-in and out and not the lan interface and the wan interfaces?
by infidel
Thu Sep 09, 2010 7:26 pm
Forum: General
Topic: Simple Queues and multiple gateways
Replies: 6
Views: 1304

Re: Simple Queues and multiple gateways

I did what you suggest before your post but with some changes. I used forward to mark the packets with source interface the wan and destination the lan (and vice versa) i even added the ip range for the source ip (and destination) to make the packet marking more to the point. Now that I read you pos...
by infidel
Thu Sep 02, 2010 5:24 pm
Forum: General
Topic: Simple Queues and multiple gateways
Replies: 6
Views: 1304

Simple Queues and multiple gateways

We have a mikrotik with one lan interface and multiple dsl routers connected to the other interfaces. Traffic is directed to each gateway depending on the destination port. The lan network is 192.168.0.xx and the dsl routers are 192.168.1.254, 192.168.2.254 etc. We would like to limit availiable ban...
by infidel
Tue Mar 16, 2010 4:27 pm
Forum: Scripting
Topic: Get name of script from inside script
Replies: 9
Views: 2233

Re: Get name of script from inside script

I thought so, just wanted to make sure. Thanx for the input.
by infidel
Mon Mar 15, 2010 5:17 pm
Forum: Scripting
Topic: Get name of script from inside script
Replies: 9
Views: 2233

Re: Get name of script from inside script

That is a step closer but what if the user changes the actual name of the script? I want my script to work under all circumstances, if that is possible.
by infidel
Fri Mar 12, 2010 3:13 pm
Forum: Scripting
Topic: Get name of script from inside script
Replies: 9
Views: 2233

Re: Get name of script from inside script

Yes but how will I know if and which of the scripts currently running is the one I want? To be more specific, i don't want the script to start (or exit immediately) if there is another script with the same name already running. Right know I count the number of scripts running and if the number is bi...
by infidel
Wed Mar 10, 2010 7:33 pm
Forum: Scripting
Topic: Get name of script from inside script
Replies: 9
Views: 2233

Get name of script from inside script

I want to check if a script is already running from within the script. Is there a way to get the name of the script and check if it already running? On the sidenote, when i print script jobs I alway see a script with no name. Does anyone know what it does? [admin@MikroTik] > system script job print ...
by infidel
Wed Mar 10, 2010 6:38 pm
Forum: Scripting
Topic: Problem with /ip route remove command
Replies: 1
Views: 1094

Problem with /ip route remove command

As you can see from the script i posted a while back: http://forum.mikrotik.com/viewtopic.php?f=9&t=39365 The last command of the script is /ip route remove [find dst-address="$pingip/32"] After some testing I discovered the following: Although the route is removed, the script seems to hang. I can s...
by infidel
Tue Mar 02, 2010 4:44 pm
Forum: Scripting
Topic: Checking and disabling Gateways
Replies: 26
Views: 15931

Re: Checking and disabling Gateways

And this is a revised script that checks if the modem is actually present before checking for internet connection #set variables :local pingcount 3 :local pingip [:resolve "sex.com"] :local Gateways "192.168.1.1,192.168.2.254" :local Gateway [:toarray $Gateways] #Setup Log File :if ([/system logging...
by infidel
Fri Feb 19, 2010 5:44 pm
Forum: Scripting
Topic: Checking and disabling Gateways
Replies: 26
Views: 15931

Re: Checking and disabling Gateways

Thanx! This is the final script #set variables :local pingcount 3 :local pingip [:resolve "sex.com"] :local Gateways "192.168.1.1,192.168.2.254" :local Gateway [:toarray $Gateways] #Setup Log File :if ([/system logging action print count-only where name=GatewaysCheck]=0) do={/system logging action a...
by infidel
Fri Feb 19, 2010 12:28 pm
Forum: Scripting
Topic: Checking and disabling Gateways
Replies: 26
Views: 15931

Re: Checking and disabling Gateways

I would have to create three netwatch profiles (each for every gateway) and use three different ip addresses for monitoring each gateway. Then I would have to create a script to route each ip address through each gateway and THEN call the netwatch to check the gateway. Trust me, this is the easiest ...
by infidel
Fri Feb 19, 2010 11:06 am
Forum: Scripting
Topic: Checking and disabling Gateways
Replies: 26
Views: 15931

Re: Checking and disabling Gateways

Because as you can see the gateways are 192.168.1.1, 192.168.2.254 etc which are actually Adsl routers. With check gateway=ping I will only check if the router is turned on, not if it actually has internet.
by infidel
Thu Feb 18, 2010 9:03 pm
Forum: Scripting
Topic: Checking and disabling Gateways
Replies: 26
Views: 15931

Checking and disabling Gateways

I have finally created a script for checking and disabling gateways. It is working ok but I want to optimise it a bit. Here is the script. #set variables :local pingcount 3 :local pingip [:resolve "google.com"] :local GatewayA 192.168.1.1 :local GatewayB 192.168.2.254 :local GatewayC 192.168.3.254 :...
by infidel
Thu Feb 18, 2010 6:21 pm
Forum: Scripting
Topic: Help with script not working
Replies: 1
Views: 494

Re: Help with script not working

I found it! It needed one more } at the end
:if ($pingresultA!=0) do={:foreach i in=[/ip route find gateway=$GatewayA] do={:if ([/ip route get $i disabled]) do={/ip route set $i disabled=no}}}
by infidel
Thu Feb 18, 2010 6:07 pm
Forum: Scripting
Topic: Help with script not working
Replies: 1
Views: 494

Help with script not working

I am trying to create a script for failover with multiple gateways (based on one I found) . This command works: :if ($pingresultA!=0) do={:foreach i in=[/ip route find gateway=$GatewayA] do={/ip route set $i disabled=no}} This one works too (of course only when the result of find gateway=$GatewayA i...
by infidel
Fri Feb 12, 2010 4:10 pm
Forum: General
Topic: Routing mikrotik's own traffic
Replies: 6
Views: 895

Re: Routing mikrotik's own traffic

I am using Ros 4.4. Sorry for the misunderstanding ICMP is the same in both. The actual configuration is a little big so i don't want to paste it. Ping does support src-address but it doesn't force the ping through the interface the address is assigned on.(at least not in my case) I have also tried ...
by infidel
Thu Feb 11, 2010 8:57 pm
Forum: General
Topic: Routing mikrotik's own traffic
Replies: 6
Views: 895

Re: Routing mikrotik's own traffic

My mistake, it is actually 0.0.0.0/0. Any other tips?
by infidel
Wed Feb 10, 2010 3:16 pm
Forum: General
Topic: Routing mikrotik's own traffic
Replies: 6
Views: 895

Routing mikrotik's own traffic

I am trying to route mikrotik's dns request's (using DNS server) through a specific gateway but with no luck. I am using action=mark-routing chain=output comment="" disabled=no dst-port=53 \ new-routing-mark=ICMP passthrough=yes protocol=udp comment="ICMP" disabled=no distance=1 dst-address=0.0.0.0/...
by infidel
Wed Oct 07, 2009 5:35 pm
Forum: General
Topic: Transparent proxy mikrotik 3.10
Replies: 0
Views: 367

Transparent proxy mikrotik 3.10

I am using the transparent proxy feature of mikrotik. I have redirected port 80 to port 8080 and enabled transparent proxy. Everything works fine, i can disable the web pages I want but a have a small problem. Some web pages refuse to load. If I disable the proxy they load fine. This happens on 2 di...