SINTAK DASAR MIKROTIK
[admin@MikroTik]
> interface set 0 name=public
[admin@MikroTik]
> interface set 1 name=local
[admin@MikroTik]
> interface set 2 name=wlan
[admin@MikroTik]
> ip address add
address=192.168.137.50/24 interface=public
[admin@MikroTik]
> ip address add address=192.168.10.1/24 interface=local
[admin@MikroTik]
> ip address add address=192.168.100.1/24 interface=wlan
[admin@MikroTik]
> ip route add gateway=192.168.137.1
[admin@MikroTik]
> ip dns set servers=8.8.8.8
[admin@MikroTik]
> ip proxy set enabled=yes port=3128 cache-administrator=hermawan
[admin@MikroTik]
> ip firewall nat add chain=srcnat action=masquerade out-interface=public
[admin@MikroTik]
> ip firewall nat add chain=dstnat in-interface=local
src-address=192.168.10.0/24 protocol=tcp dst-port=80 action=redirect
to-ports=3128
[admin@MikroTik]
> ip firewall nat add chain=dstnat in-interface=wlan
src-address=192.168.100.0/24 protocol=tcp dst-port=80 action=redirect
to-ports=3128
[admin@MikroTik]
> ip proxy access add action=deny dst-host=www.4shared.com
[admin@MikroTik]
> ip proxy access add action=deny path=*.mp3*
SINTAK HOTSPOT
[admin@MikroTik]
> ip hotspot setup
hotspot interface:
wlan
local address of
network: 192.168.100.1/24
masquerade network:
yes
address pool of
network: 192.168.100.2-192.168.100.254
Select hotspot SSL
certificate select certificate:
none
ip address of smtp
server: 0.0.0.0
dns servers: 8.8.8.8
dns name: kusuma.com
name of local hotspot
user: admin
password for the
user: 123
SINTAK DHCP-SERVER
[admin@MikroTik] > ip pool add
name=dhcp-her ranges=192.168.100.2-192.168.100.254
[admin@MikroTik] > ip
dhcp-server network add address=192.168.100.0/24 gateway=192.168.100.1
[admin@MikroTik] > ip
dhcp-server add address-pool=dhcp-her interface=wlan
[admin@MikroTik] > ip
dhcp-server enable 0
SINTAK BANDWITH
[admin@MikroTik]
> ip hotspot user profile add advertise=no idle-timeout=none name=vip keepalive-timeout=2m open-status-page=always
rate-limit=1m/1m status-autorefresh=1m shared-users=1 transparent-proxy=yes
[admin@MikroTik]
> ip hotspot user profile add advertise=no idle-timeout=none name=silver keepalive-timeout=2m open-status-page=always
rate-limit=256K/256K status-autorefresh=1m shared-users=1 transparent-proxy=yes
USER HOTSPOT
[admin@MikroTik]
> ip hotspot user add disabled=no name=guru password=guru profile=vip
server=hotspot1
[admin@MikroTik]
> ip hotspot user add disabled=no name=siswa password=siswa profile=silver
server=hotspot1
BYPASS MIKROTIK
[admin@MikroTik]
> ip hotspot walled-garden add action=allow dst-host=www.mikrotik.com
server=hotspot
SINTAK MEMATIKAN
COKIES
[admin@MikroTik]
>ip hotspot profil set 1 login-by=http-chap
Tidak ada komentar:
Posting Komentar