banner0

วันจันทร์ที่ 7 กรกฎาคม พ.ศ. 2557

ddns noip mikrotik

การตั้งค่า ddns no-ip จาก mikrotik
   ผมไม่รู้จะพูดอะไรมาก แค่อยากทำเก็บไว้ เผื่อวันหลังจะได้นำมาใช้งานได้ หลักการทำงานของสคริปคือ มีสคริปที่ใช้เพื่อให้ mikrotik เชื่อมต่อกับ no-ip ได้ เริ่มเลยแล้วกัน

1.เข้าไปที่ System --> Scripts --> คลิก เครืองหมาย + ดังรูป แล้วใส่สคริป ดังนี้


MySQL Config ยังไงดี?


MySQL Config ยังไงดี?

MySQL นับว่าเป็นหัวใจของ Web Server อีกตัวหนึ่งเลยก็ว่าได้เพราะว่า MySQL นั้นเป็นแหล่งข้อมูลที่สามารถเรียกใช้งานได้อย่างรวดเร็ว วันนี้ผมจะเอาประสบการณ์เกี่ยวกับการ Config MySQL มาให้อ่านกัน

ผมอิงตามรุ่น 4.1 โดยใช้กับ Server ที่ใช้ tis620 เป็น Default นะครับ

loadbaland 2 wan from mikrotik

loadbaland 2 wan from mikrotik


interface1, interface2 ต่อกับ MODEM (Bridge) Connect แบบ PPPoE Client Name = pppoe-out1, pppoe-out2

/ ip route
add dst-address=0.0.0.0/0 gateway=pppoe-out1,pppoe-out2 check-gateway=ping

/ ip firewall nat
add chain=srcnat out-interface=pppoe-out1 action=masquerade
add chain=srcnat out-interface=pppoe-out2 action=masquerade

Mikrotik : หยุด Bittorent 100%

Mikrotik : หยุด Bittorent 100%
/ip firewall layer7-protocol
add name=.Bittorrent regexp="^(\\x13bittorrent protocol|azver\\x01\$|get /scra\
    pe\\\?info_hash=get /announce\\\?info_hash=|get /client/bitcomet/|GET /dat\
    a\\\?fid=)|d1:ad2:id20:|\\x08'7P\\)[RP]"

เมื่อเน็ตหลุด....ท่านไม่ต้องโทรมานะครับ เดี๋ยวมันก็มาเอง

เมื่อเน็ตหลุด....ท่านไม่ต้องโทรมานะครับ เดี๋ยวมันก็มาเอง

==================================
/ip firewall nat
add action=redirect chain=dstnat comment="Redirect to Proxy" disabled=yes dst-port=80 protocol=tcp to-ports=8080
/ip proxy
set always-from-cache=no cache-administrator=webmaster cache-hit-dscp=4 cache-on-disk=yes enabled=yes max-cache-size=unlimited max-client-connections=600 \
max-fresh-time=3d max-server-connections=600 parent-proxy=0.0.0.0 parent-proxy-port=0 port=8080 serialize-connections=no src-address=0.0.0.0
/ip proxy access
add action=deny disabled=no dst-port="" redirect-to=192.168.88.1/hotspot/netdown.html
/tool netwatch
add disabled=no down-script=":log error \"ISP Link seems to be DOWN , ENABLING redirection to proxy so users will see mainteneace page / zaib\"\r\
\n/ip firewall nat enable [find comment=\"Redirect to Proxy\"]" host=8.8.8.8 interval=5s timeout=1s up-script=":log error \"ISP Link seems to be UP again , Disa\
bling redirection to proxy so users internet will start work again. / zaib\"\r\
\n/ip firewall nat disable [find comment=\"Redirect to Proxy\"]\r\
\n"
ที่มา : เปียโน ไร้คอร์ด