Payment Reminder

Hello Dears!
Me new here. want some help. Sorry for poor english.
I am configuring a pc with mikrotik router os. I have one wan and one lan.
Wan is from isp’s modem dynamically through dhcp client 192.168.20.101/24 with 192.168.20.101 gateway
Lan is 192.168.2.1/24 manualy through ip> address>
then made a firewall rule nat>srcnat > masquerade> srcaddress>192.168.2.0/24
and for web proxy nat>dstnat>redirect>port>8080>srcaddress>192.168.2.0/24 >protocol>6tcp and dst port 80
and further steps like as manage dns then web proxy then queue etc.
Now every thing is okay. my clients are using internet. I only want to add a payment reminder to my clients after a month. so what I should do? I want that when a customer try to brows the webpages he should redirect to a payment reminder page for a while. then he may use internet as usual, this reminder should display after 2 hours randomly.
another thing experienced by my clients is that their messengers (Yahoo, msn etc) are disconnecting randomly. I am doing all above procedure through winbox and not able to use terminal windows. Plz guide me that how can i manage it via winbox and secondly why the messengers drooping the connectivity.
Any Help will be greatly appreciated

http://wiki.mikrotik.com/wiki/Payment_Reminders
Terminal commands translate to Winbox 1:1.

Thanks for your reply fewi. I read the wiki about payment reminder but need some more help

/ip proxy set enabled=yes
/ip proxy access
add action=allow disabled=no dst-address=[IP of server that hosts reminder]
add action=deny disabled=no redirect-to="http://my.server.com/payment-reminder.html"

please tells me that what will the ip address and http address of the server if my router ips are as under
ethernet lan=192.168.2.1
ethernat wan=192.168.20.1
gateway=192.168.20.100
I think that it is a stupid question but I realy have no info about it. Waiting for your reply.

They are specific to whatever server hosts the payment reminder page. That’s unique for your setup. I cannot tell you what those values are as it depends on your web server.

Okay! Thanks for your help. But I think that I could not explain my question. I am using Mikrotik router OS installed on a PC and use it for routing. Can I use this PC for payment reminder. I mean that my router will also work as a server for payment reminder. Can you please guide me or give me some example to configure it.
My complete network details are as under.
My network address is = 192.168.2.0/24
Router’s Local Address is = 192.168.2.1
ISP’s Network Address is = 192.168.20.0/24
Router’s ISP’s address is = 192.168.20.1
DSL Modem Address (gateway for Router) is = 192.168.20.100
My File server Address is = 192.168.2.30/32
Note: My file server is a standerd PC with winxp pro and I just share my files over the network.
Now please tells me that how can I manage the payment reminder.
I hope you will not mind it. If you can help me to configure my mikrotik router completly I will be very thankfull to you. I also can pay via paypal for it if you like. I have no any professional person in my area. Please Please Please provide me help.

I mean that my router will also work as a server for payment reminder.

No, it cannot act as the web server that hosts the payment reminder. You need an external server for that.

Okay! Then what about my file sharing server. Can it used for payment reminder server.

No, it has to be a web server.

Bundle of Thanks for your help. Now I have another problem. I have 2 wans and one lan. I am using nth rule for load balancing. But now when I enable web proxy by adding dstnat > redirect> rule my cleints can not access web pages instead they recieve an error log that contact with your cache administrator. Please guide me to solve this issue.

i tried these rules but not worked.

i have mikrotik server on 11.1.1.1
& have webserver on 11.1.1.5

but when i enter following rule in terminal
add action=allow disabled=no dst-address=11.1.1.5
add action=deny disabled=no redirect-to=“http://11.1.1.5/payment-reminder.html

error occured " invalid argument range"

Please guide to solve this.

What version of RouterOS are you running?

Mikrotik v3.30

waiting for solution.

please suggest me the solution.

That should work on 3.30. Post a screenshot of you pasting the commands into a terminal, and the error message that ensues.

i got these errors on creating rules


/ip firewall nat>> add chain=dstnat connection-mark=payment_reminder action=redirect to-ports=8081
failure: to-ports valid only for tcp/udp

/ip firewall nat
add chain=dstnat connection-mark=payment_reminder action=redirect to-ports=8080
failure: to-ports valid only for tcp/udp


/ip firewall nat>> add chain=input connection-mark=payment_reminder action=add-src-to-address-list add
ress-list=has_seen_reminder address-list-timeout=04:00:00 passthrough=yes
bad argument name passthrough (line 1 column 142)

That doesn’t happen on 4.x. Add protocol=tcp to the first two, I’ve also added that to the wiki.

The third rule is a firewall filter rule, not a NAT rule. You’re trying to add it as a NAT rule, that will not work. The wiki reflects that correctly, you didn’t copy and paste right.

Thanks Fewi

I followed ur wiki.

at last i unable to understand this last error in very last configuration.

i m trying this at 3.30

/ip firewall filter
add chain=input connection-mark=payment_re
minder action=add-src-to-address-list \ address-list=has_seen_reminder address-list-timeout=04:00:00 passthrough=yes
bad argument name passthrough (line 2 column 64)

when i erase (passthrough=yes) this line rule applied but with this line rule gave bad argument error.
any idea?

Hi,

i have micro sd and use web proxy on port 8080.
i’m trying configure Payment Reminders but without result. problem is in address list. i don’t know how can i put this list and where?
i realy need this

pls help me

Hey guys, please share what need to exclude payment reminder. I want to say for example Windows7, Vista uses 80 port for to detect internet connection. When this mechanism works before clients web browser, we can not show to customer our payment reminder. Because this mechanism uses TCP 80 and breaks our plan of payment reminder. So we need to add exclude option into mangle rule.

action=mark-connection chain=prerouting comment=\
    Potential_advertisement_watcher connection-state=new disabled=no \
    dst-address-list=!Excl.Adv dst-port=80 new-connection-mark=\
    potential_adv_watcher passthrough=yes protocol=tcp src-address-list=\
    Advertisement



address=207.46.61.90 disabled=no list=Excl.Adv

For windows7 and Vista only www.msftncsi.com 207.46.61.90.