Queue tree
Gambar Topologi

Script :
ip
dhcp-client add interface=wlan1 disable=no;
ip dns
set servers=8.8.8.8 allow-remote-requests=yes;
ip
firewall nat add chain=srcnat action=masquerade;
ip
address add address=200.100.10.1/29 interface=ether1;
ip
address add address=200.100.11.1/29 interface=ether2;
ip pool
add name=warnet ranges=200.100.10.2-200.100.10.6;
ip
dhcp-server add name=warnet address-pool=warnet interface=ether1 disabled=no;
ip
dhcp-server network add address=200.100.10.0/29 dns-server=8.8.8.8,8.8.4.4
gateway=200.100.10.1;
ip pool
add name=kantor ranges=200.100.11.2-200.100.11.6;
ip
dhcp-server add name=kantor address-pool=kantor interface=ether2 disabled=no;
ip
dhcp-server network add address=200.100.11.0/29 dns-server=8.8.8.8,8.8.4.4
gateway=200.100.11.1;
ip
firewall mangle add chain=prerouting src-address=200.100.10.2
action=mark-connection passthrough=yes new-connection-mark=warnet-pc1
disable=no comment=warnet;
ip
firewall mangle add chain=prerouting connection-mark=warnet-pc1
action=mark-packet passthrough=yes new-packet-mark=warnet-pc1 disable=no;
ip
firewall mangle add chain=prerouting src-address=200.100.10.3
action=mark-connection passthrough=yes new-connection-mark=warnet-pc2
disable=no;
ip
firewall mangle add chain=prerouting connection-mark=warnet-pc2 action=mark-packet
passthrough=yes new-packet-mark=warnet-pc2 disable=no;
ip
firewall mangle add chain=prerouting src-address=200.100.10.4
action=mark-connection passthrough=yes new-connection-mark=warnet-pc3
disable=no;
ip
firewall mangle add chain=prerouting connection-mark=warnet-pc3
action=mark-packet passthrough=yes new-packet-mark=warnet-pc3 disable=no;
ip
firewall mangle add chain=prerouting src-address=200.100.10.5
action=mark-connection passthrough=yes new-connection-mark=warnet-pc4
disable=no;
ip
firewall mangle add chain=prerouting connection-mark=warnet-pc4
action=mark-packet passthrough=yes new-packet-mark=warnet-pc4 disable=no;
ip
firewall mangle add chain=prerouting src-address=200.100.10.6
action=mark-connection passthrough=yes new-connection-mark=warnet-pc5
disable=no;
ip
firewall mangle add chain=prerouting connection-mark=warnet-pc5
action=mark-packet passthrough=yes new-packet-mark=warnet-pc5 disable=no;
ip
firewall mangle add chain=prerouting src-address=200.100.11.2
action=mark-connection passthrough=yes new-connection-mark=kantor-pc1
disable=no comment=kantor;
ip
firewall mangle add chain=prerouting connection-mark=kantor-pc1
action=mark-packet passthrough=yes new-packet-mark=kantor-pc1 disable=no;
ip
firewall mangle add chain=prerouting src-address=200.100.11.3
action=mark-connection passthrough=yes new-connection-mark=kantor-pc2
disable=no;
ip
firewall mangle add chain=prerouting connection-mark=kantor-pc2
action=mark-packet passthrough=yes new-packet-mark=kantor-pc2 disable=no;
ip
firewall mangle add chain=prerouting src-address=200.100.11.4
action=mark-connection passthrough=yes new-connection-mark=kantor-pc3
disable=no;
ip
firewall mangle add chain=prerouting connection-mark=kantor-pc3
action=mark-packet passthrough=yes new-packet-mark=kantor-pc3 disable=no;
ip
firewall mangle add chain=prerouting src-address=200.100.11.5
action=mark-connection passthrough=yes new-connection-mark=kantor-pc4
disable=no;
ip
firewall mangle add chain=prerouting connection-mark=kantor-pc4
action=mark-packet passthrough=yes new-packet-mark=kantor-pc4 disable=no;
ip
firewall mangle add chain=prerouting src-address=200.100.11.6
action=mark-connection passthrough=yes new-connection-mark=kantor-pc5
disable=no;
ip firewall mangle add chain=prerouting
connection-mark=kantor-pc5 action=mark-packet passthrough=yes
new-packet-mark=kantor-pc5 disable=no;
queue
tree add name=warnet-up max-limit=128k parent=wlan1 priority=8;
queue
tree add name=warnet-down max-limit=128k parent=ether1 priority=8;
queue
tree add name=kantor-up max-limit=150k parent=wlan1 priority=8;
queue
tree add name=kantor-down max-limit=150k parent=ether2 priority=8;
queue
tree add name=warnet-up-pc1 max-limit=128k limit-at=64k packet-mark=warnet-pc1
parent=warnet-up;
queue
tree add name=warnet-down-pc1 max-limit=128k limit-at=64k
packet-mark=warnet-pc1 parent=warnet-down;
queue
tree add name=warnet-up-pc2 max-limit=128k limit-at=64k packet-mark=warnet-pc2
parent=warnet-up;
queue
tree add name=warnet-down-pc2 max-limit=128k limit-at=64k packet-mark=warnet-pc2
parent=warnet-down;
queue
tree add name=warnet-up-pc3 max-limit=128k limit-at=64k packet-mark=warnet-pc3
parent=warnet-up;
queue
tree add name=warnet-down-pc3 max-limit=128k limit-at=64k
packet-mark=warnet-pc3 parent=warnet-down;
queue
tree add name=warnet-up-pc4 max-limit=128k limit-at=64k packet-mark=warnet-pc4
parent=warnet-up;
queue
tree add name=warnet-down-pc4 max-limit=128k limit-at=64k
packet-mark=warnet-pc4 parent=warnet-down;
queue
tree add name=warnet-up-pc5 max-limit=128k limit-at=64k packet-mark=warnet-pc5
parent=warnet-up;
queue
tree add name=warnet-down-pc5 max-limit=128k limit-at=64k
packet-mark=warnet-pc5 parent=warnet-down;
queue
tree add name=kantor-up-pc1 max-limit=150k limit-at=75k packet-mark=kantor-pc1
parent=kantor-up;
queue
tree add name=kantor-down-pc1 max-limit=150k limit-at=75k
packet-mark=kantor-pc1 parent=kantor-down;
queue
tree add name=kantor-up-pc2 max-limit=150k limit-at=75k packet-mark=kantor-pc2
parent=kantor-up;
queue
tree add name=kantor-down-pc2 max-limit=150k limit-at=75k
packet-mark=kantor-pc2 parent=kantor-down;
queue
tree add name=kantor-up-pc3 max-limit=150k limit-at=75k packet-mark=kantor-pc3
parent=kantor-up;
queue
tree add name=kantor-down-pc3 max-limit=150k limit-at=75k
packet-mark=kantor-pc3 parent=kantor-down;
queue
tree add name=kantor-up-pc4 max-limit=150k limit-at=75k packet-mark=kantor-pc4
parent=kantor-up;
queue
tree add name=kantor-down-pc4 max-limit=150k limit-at=75k
packet-mark=kantor-pc4 parent=kantor-down;
queue
tree add name=kantor-up-pc5 max-limit=150k limit-at=75k packet-mark=kantor-pc5
parent=kantor-up;
queue tree add name=kantor-down-pc5
max-limit=150k limit-at=75k packet-mark=kantor-pc5 parent=kantor-down;
Komentar
Posting Komentar