« Return to Thread: iptables limit speed of SAMBA

iptables limit speed of SAMBA

by yuan shijiang :: Rate this Message:

Reply to Author | View in Thread

iptables  -A OUTPUT -p tcp -o eth0- -s 192.168.1.0/24  --sport 445 -m
hashlimit --hashlimit 20/sec --hashlimit-mode dstip --hashlimit-name
samba -j ACCEPT
iptables  -A OUTPUT -p tcp -o eth0- -s 192.168.1.0/24  --sport 445 -j REJECT

 « Return to Thread: iptables limit speed of SAMBA