You are on page 1of 1

setting mikrotic - speedy

/ip address add interface=ether1 address = 192.168.1.1 netmask= 255.255.255.0


/ip address add interface=ether2 address = 192.168.0.1 netmask= 255.255.255.0
/interface print
/inteface set 0 name=”Public”
/inteface set 1 name=”Lan”
/ip route add gateway=192.168.0.1
/ip dns set primary-dns=203.130.193.74 secondary-dns=202.134.0.155
/ip dns set allow-remote-requests=yes
/ip firewall nat add chain=srcnat out-inteface=Public action=masquerade
/ip firewall nat add chain=dstnat protocol=tcp dst-port=80 action=redirect to-po
rts=8080
/ip firewall nat add chain=dstnat protocol=tcp dst-port=3128 action=redirect to-
ports=8080
/ip firewall nat add chain=dstnat protocol=tcp dst-port=8080 action=redirect to-
ports=8080
/ip pool add name=”dhcp-pool” ranges=192.168.0.1-192.168.0.29
/ip dhcp-server add name=”dhcp1? inteface=LAN address-pool=”dhcp-pool” lease-tim
e=3d
/ip dns set allow-remote-requests=yes
/ip firewall nat add chain=srcnat out-inteface=Public action=masquerade
/ip firewall nat add chain=dstnat protocol=tcp dst-port=80 action=redirect to-po
rts=8080
/ip firewall nat add chain=dstnat protocol=tcp dst-port=3128 action=redirect to-
ports=8080
/ip firewall nat add chain=dstnat protocol=tcp dst-port=8080 action=redirect to-
ports=8080