Community discussions

MikroTik App
 
itjazz
just joined
Topic Author
Posts: 5
Joined: Thu Jan 30, 2014 9:00 am

Display error for users using WEB server

Thu Feb 13, 2014 5:14 pm

Hello,

We have a policy to not allow P2P traffic and we wan't to display a message to person who have been blocked which he would see if he tries to surf the net.

I already created an IP alias for that message to show, so if we go to 10.0.0.66, we see message that "internet has been blocked, because of torrent usage".
add action=dst-nat chain=dstnat comment="BLOCKED USERS REDIRECT TO MESSAGE SERVER" !connection-bytes !connection-limit !connection-mark !connection-rate !connection-type !content \
    disabled=no !dscp !dst-address !dst-address-list !dst-address-type !dst-limit dst-port=80 !fragment !hotspot !icmp-options !in-bridge-port !in-interface !ingress-priority \
    !ipv4-options !layer7-protocol !limit !nth !out-bridge-port !out-interface !packet-mark !packet-size !per-connection-classifier !port !priority protocol=tcp !psd !random \
    !routing-mark !routing-table !src-address src-address-list=BLOCKED_FOR_TORRENT_USAGE !src-address-type !src-mac-address !src-port !tcp-mss !time to-addresses=10.0.0.66 to-ports=80 !ttl
This is a exported rule from NAT to forward blocked computers to 10.0.0.66, redirection works, but blocked PC is ignoring HTTP ACK packets from 10.0.0.66, because it waits ACK packet from real server.

Any suggestions?
 
User avatar
rickfrey
Trainer
Trainer
Posts: 609
Joined: Sun Feb 14, 2010 11:41 pm
Location: Van, Texas
Contact:

Re: Display error for users using WEB server

Fri Feb 14, 2014 11:08 pm

Why do you have all of the "not" (!) symbols in the export? The rule looks correct except for the !, which shouldn't be there.
 
SurferTim
Forum Guru
Forum Guru
Posts: 4636
Joined: Mon Jan 07, 2008 10:31 pm
Location: Miramar Beach, Florida

Re: Display error for users using WEB server

Sat Feb 15, 2014 12:57 am

Have you considered using a transparent proxy?
http://wiki.mikrotik.com/wiki/Manual:IP/Proxy
You can redirect to an ip address and page with it. Use "/ip proxy access" to block specific domains or ips and redirect to another site/page.
 
itjazz
just joined
Topic Author
Posts: 5
Joined: Thu Jan 30, 2014 9:00 am

Re: Display error for users using WEB server

Sun Feb 16, 2014 1:13 pm

Thank you very much! This is briliant idea :)
 
itjazz
just joined
Topic Author
Posts: 5
Joined: Thu Jan 30, 2014 9:00 am

Re: Display error for users using WEB server

Sun Feb 16, 2014 1:15 pm

Have you considered using a transparent proxy?
http://wiki.mikrotik.com/wiki/Manual:IP/Proxy
You can redirect to an ip address and page with it. Use "/ip proxy access" to block specific domains or ips and redirect to another site/page.
Thank you very much, this is briliant idea!

Who is online

Users browsing this forum: Fi011 and 200 guests