Senin, 03 Desember 2007

Enable and Disable P2P Mikrotik

1. disable p2p connections

/ system script
add name="stop_dc1" source="ip firewall rule forward enable \[/ip firewall rule forward find action=drop\]
\n" \
policy=ftp,reboot,read,write,policy,test

for RouterOS v2.9 it looks like this:

/ system script
add name="stop_dc1" source="ip firewall filter enable \[/ip firewall filter find action=drop\]
\n" \
policy=ftp,reboot,read,write,policy,test

2. enable p2p connections

/ system script
add name="start_dc1" source="ip firewall rule forward disable \[/ip firewall rule forward find \
action=drop\]
\n" policy=ftp,reboot,read,write,policy,test

I have to add that for these two scripts you have to have a firewall rule:

/ ip firewall rule forward
add p2p=all-p2p action=drop comment="" disabled=no


ref:www.wiki.mikrotik.com

Tidak ada komentar:

Posting Komentar