Perintah CLI Mikrotik @Maskhay1922

Perintah CLI Mikrotik @Maskhay1922


interface wireless set wlan1 ssid=khayat@proxy mode=ap-bridge disabled=no
interface set 0 name=internet
interface set 1 name=lan
ip dhcp-client add interface=internet disable=no
ip address add address=192.168.100.1/24 interface=lan
ip address add address=192.168.200.1/24 interface=wlan1
ip dns set servers=8.8.8.8,8.8.4.4 allow-remote-request=yes
ip dhcp-server network add address=192.168.100.0/24 gateway=192.168.100.1 netmask=32 dns=8.8.8.8 domain=lan
ip dhcp-server network add address=192.168.200.0/24 gateway=192.168.200.1 netmask=32 dns=8.8.8.8 domain=wlan1
ip pool add name=lan range=192.168.100.2-192.168.100.200
ip pool add name=wlan1 range=192.168.200.2-192.168.200.200
ip dhcp-server add name=lan interface=lan  address-pool=lan add-arp=yes disable=no
ip dhcp-server add name=wlan1 interface=wlan1 address-pool=wlan1 add-arp=yes disable=no
ip firewall nat add chain=srcnat action=masquerade out-interface=internet
ip hotspot setup
ip hotspot user profile add name=1jam address-pool=wlan1 session-time-out=01:00:00 shared-user=20 make-cookie-timeout=1d00:00:00
ip hotspot user
ip proxy set enabled=yes port=3128 cache-administrator=khayat@proxy.sch.id
ip proxy access add dst-port=80 dst-host=*www.linux.or.id action=deny
ip proxy access add dst-port=80 path=*.mp3 action=deny
ip proxy access add dst-port=80 path=*mkv action=deny
ip firewall nat add chain=dstnat port=80 protocol=tcp action=redirect to-ports=3128
queue simple add name=lan target=lan max-limit=1M/1M limit-at=512K/512K
queue simple add name=wlan1  target=wlan1 max-limit=1M/1M limit-at=512K/512K
/system scheduler add disabled=no interval=1d name=off on-event="/interface ether disable internet" start-date="feb/18/2017" start-time="00:00:00"
/system scheduler add disabled=no interval=1d name=on on-event="/interface ether enable internet" start-date="feb/18/2017" start-time="00:00:00"

Ayo Gabung Di Maskhay Buiness

MASKHAY BUSINESS

http://www.nmcmobile.com/ Kunjungi  http://bit.ly/2yjElZa   atau  http://bit.ly/2yxOP8g اسلام عليكم ورحمة الله وبر كاته ⭐ Welcome ...