Just to share my way of implementing 'payment reminder' for PPPoE clients. You can setup your own solution similar to this or any other more enhanced version.
I wanted that if the user account have been expired or we want his account blocked and let him know the reason by redirecting his traffic to a local web page showing his account have been expired/blocked, rather then the odd Username/password error.
(In this example I am talking about Mikrotik with Radius Server (In my case its RADIUS MANAGER from DMASOFTLAB, but any radius can be used for this purpose, or it can also be done without the use of Radius)
RADIUS MANAGER CONFIGURATION
The key point is when you create new service plan , there is a option name NEXT MASTER SERVICE, using this option, you can define When the user account service expires, his service plan automatically changes to NEXT MASTER SEVRICE “EXPIRED USERS SERVICE” with expired ip-pool [lets assume 172.16.5.1/24) ,
So when the use account expires , he will still be able to login via dialer but his requests will be redirected by MT firewall rule to MT WEBPROXY which will re-direct request to any local web server page informing "YOUR ACCOUNT HAVE BEEN EXPIRED, PLEASE RENEW AT BLAH BLAH BLAH" and he can only open the self care portal by explicitly allowing them.
MIKROTIK ROS CONFIGURATION
/ip proxy set always-from-cache=no cache-administrator=webmaster cache-hit-dscp=4 cache-on-disk=no enabled=yes max-cache-size=none max-client-connections=600 max-fresh-time=3d max-server-connections=600 parent-proxy=0.0.0.0 parent-proxy-port=0 port=8080 serialize-connections=no src-address=0.0.0.0
/ip proxy access add action=deny disabled=no dst-address=!192.168.2.3 redirect-to=192.168.2.3/policy/deny.htm src-address=172.16.5.0/24
[192.168.2.3 is my local web server, you can change it according to your setup]
/ip firewall nat add action=redirect chain=dstnat disabled=yes dst-address=!192.168.2.3 dst-port=80 protocol=tcp src-address=172.16.5.0/24 to-ports=8080
/ip firewall filter add action=reject chain=forward disabled=yes reject-with=icmp-admin-prohibited src-address=172.16.5.0/24
Please read
http://wiki.mikrotik.com/wiki/Payment_Reminders for further enhancements and general ideas.
As we all love Screenshots
, the result of 'Payment reminder' at client end can be seen here. All internet traffic will be blocked for the expired users, only port 80 traffic is allowed which will be redirected to MT webproxy, and afterwards all http traffic will be denied by webproxy and redirect it to my local webpage
Account-expired-info-for-pppoe-user-zaib.png
A little tiny tony guide on how I achieved this, can be viewed here.
http://aacable.wordpress.com/2011/07/22 ... ler-users/
You do not have the required permissions to view the files attached to this post.