I'm trying to get a script to work that will drop all p2p traffic between certain times every day.
So far I can enable a rule from a script but I can't disable it. Has anyone done this before and is willing to share the answer?
TC
/system scheduler add name=enable interval=24h start-date=8/05/2004 disabled=no on-event=en
/system script add name=ed source={
/ip firewall rule forward enable [/ip firewall rule forward find comment=p2p]
}
/system scheduler add name=disable interval=24h start-date=9/05/2004 disabled=no on-event=dis
/system script add name=dis source={
/ip firewall rule forward disable [/ip firewall rule forward find comment=p2p]
}
not possible. There shoud be a new connection made in order to block it by firewall. There is no possibility to block already established connection.and after scheduler successfully enable rule for P2P lock, hotspot user's still to conitinue p2p-download.
How to block this?
I want to kill all estabilisced connection with p2p IP because filter rule:
chain=forward p2p=all-p2p action=drop
not work!
Is possible?
10x
/ip firewall mangle add p2p=all-p2p mark-connection=p2p-con disabled=no
/ip firewall filter add connection=p2p-con action=drop disabled=yes comment="Lock P2P"
...