Payment Reminder – Mikrotik PPPoE/Vpn Server
# Abubaker Siddiq Lasania
# virtualitsupport.wordpress.com
# virtualitsupport.0fees.net
# facebook.com/virtualitsupportpk
# facebook.com/groups/virtualitsupportpk1
###########################################################################
/ip pool
add name=Expired-Pool ranges=172.16.1.1-172.16.1.255
/ip firewall filter
add action=reject chain=forward dst-port=!80,8080 protocol=tcp src-address=172.16.1.1-172.16.1.255
/ip firewall nat
add
action=redirect chain=dstnat comment="Non Payment Message" dst-port=80
protocol=tcp src-address=172.16.1.0/24 to-addresses=0.0.0.0
to-ports=8080
# 192.168.0.251:8000 is local web server you can define as per your local server ip
/ip proxy access
add action=deny comment="Non Payment" redirect-to=192.168.0.251:8000/nonpayment.html src-address=172.16.1.0/24
/ppp profile
add dns-server=10.0.0.1 local-address=10.0.0.1 name=pppoe-expired rate-limit=128k/128k remote-address=Expired-Pool
#If you are using User Mananer Mikrotik Radius Paste Below script
/tool user-manager profile limitation
add address-list="" download-limit=0B group-name="" ip-pool=Expired-Pool name=\
NonPayment rate-limit-min-rx=131072B rate-limit-min-tx=131072B \
rate-limit-rx=131072B rate-limit-tx=131072B transfer-limit=0B upload-limit=\
0B uptime-limit=0s
/tool user-manager profile
add name=Expired-Pool name-for-users=Expired-Pool override-shared-users=off owner=admin price=0 starts-at=logon validity=20d
Post a Comment