Hi all
I wish to send private messages to the users through the mikrotik.
For example…
One user had been delayed payment of his monthly
I want to inform him that his monthly has ended and must be paid for the participation of a new monthly
How can I do that with the Mikrotik
pardon me for my bad english
I should be clear idea
pardon me for my bad english
Greetings to all
you can make a DST-NAT rule to redirect all browsing attempts to a specific webserver, which will inform this client that he has not paid.
good idea to me work very well
you can make a DST-NAT rule to redirect all browsing attempts to a specific webserver, which will inform this client that he has not paid.
i’m didn’t uderstand the idea
can you explain it …
any one had been understand it can explain…
thanks for all
if you want send a message to your client that not paid using the browser you use this rule
if you want send a message to your client that not paid using the browser you use this rule
I know that…
but i had no idea about using this rule
how can i send the massage after i make this rule
and using what exactly
can you help me with some explain
i will be appreciated
thanx for all
some one can answer me
i’m really need it
please…
This is what we do.
I give the customer a static IP.
I have a web server running on port 82 on one of our servers.
a.b.c.d = Customers IP address that I need to notify that they have not payed there bill or have a virus.
e.f.g.h = The server that I host the page that they get when they try to get onto the web.
/ip firewall nat
add chain=dstnat src-address=a.b.c.d protocol=tcp dst-port=80 action=dst-nat to-addresses=e.f.g.h to-ports=82 comment=“Customers Name” disabled=no
This method is not perfect. But it gets the point across that they need to take care of the bill/virus or we will be picking up the equipment.
-Louis
Dear ihsanway,
you can not send message through MT OS, but you can tell them any thing you want with a web page uploaded in a web server, like normis said. you have to have a web server and have to make a web page with your notice like(your link is disconnected temporarely due to non payment, please pay your bill and activate your Internet link ASAP) then make a DST-NAT rule to redirect all browsing attempts to that specific webserver. Like all other said here.
Hope you get my point.
Take care
thanx for all
and i have a special thank to ''Letni ‘’ and ‘‘hulk_bd’’ for there interest and there help
i appreciate all the ideas for my question and i hope you keep the good work
Dear all,
All of you told that you can send message via a webserever and redirect all http trafic to webserver:80. Have you tested??
yes!
Dear normis,
can you please tel me the rules you have tested of dst-nat?
suppose one user want to browse http://www.yahoo.com then via the rule
all traffic of http can be send to a specific webserver:80, is it right?
(and user no need to be a hotspot user and there is no proxy setting on user’s browsers).
Thanks.
0 chain=srcnat out-interface=Public src-address=192.168.30.0/24
action=masquerade
1 chain=srcnat out-interface=Public src-address=192.168.1.0/24
action=masquerade
2 chain=dstnat src-address=192.168.1.0/24 protocol=tcp dst-port=80
action=dst-nat to-addresses=192.168.30.2 to-ports=80
[admin@MikroTik] ip firewall nat>
I have applied above rule to all http request will go to 192.168.30.2:80 but it is not working.
I have tested from a user (192.168.1.10) pc and browse http://www.yahoo.com then it shows yahoo pages.
Thanks.
When a connection goes through the rules you have listed, it does them in order until it finds a match.
Your number 1 rule is matching before you get to number 2.
You should move rule number 2 too number 1. Then it will work as expected.
Then what you will have is… all port 80 requests will be redirected but things like sip, AOL, messengers will still work.
-Louis
There are one floppy distributions of linux that will hold a static web page on a 386 min class machine. You can put a webserver in it, with thttpd. It’s so small you won’t notice it’s in. ![]()
You can make a web server with a static page out of that. Even multiple pages, with different addresses. ( say for late customer, for cut-off customer, for "tomorow we are servicing the network between 5.00 am and 5.30am, or for important anouncements - eg. your uplink is down for “service”
)
Or you can, i did it a while ago, to modify the hotspot login page of your MT, and bypass the hotspot for all but the non-paying customer. That would be more complicated …
Of course, any of the two, would use dst-nat redirects.
cia.
Perhaps your user using proxy or other port than 80.
Its impossible the rule is missed.
Its the same like you apply transparent proxy.
Have it check with your rule and make sure your client didnt use other port than 80.
If you want to make sure all the rules will work, use dst-port=1-65535, instead of port 80 only.
- Rio.Martin -
Ym: riomartinz