01 January 2011

Default Configurations

List of Default Configs

Integrated Indoors


Wan port Lan port Wireless mode ht chain ht extension dhcp-server dhcp-client Firewall NAT Default IP Mac Server
RB750 RB750G ether1 Switched ether2-ether5 - - - on lan port on wan port blocked access to wan port Masquerade wan port 192.168.88.1/24 on lan port Disabled on wan port
RB751-2n ether1 Switched ether2-ether5, bridged wlan1 with switch AP b/g/n 2412MHz 0 above-control on lan port on wan port blocked access to wan port Masquerade wan port 192.168.88.1/24 on lan port Disabled on wan port
RB1100 - - - - - - - - - 192.168.88.1/24 on ether1 -
RB1200 - - - - - - - - - 192.168.88.1/24 on ether1 -
RB2011 - - - - - - - - - 192.168.88.1/24 on ether1 -

Integrated Outdoors


Wan port Lan port Wireless mode ht chain ht extension dhcp-server dhcp-client Firewall NAT Default IP Mac Server
Groove 5Hn wlan1 ether1 station a/n 5300MHz 0 above control on lan port on wan port blocked access to wan port Masquerade wan port 192.168.88.1/24 on lan port Disabled on wan port
Groove A-5Hn - bridged wlan1,ether1 AP a/n 5300MHz 0 - - - - - 192.168.88.1/24 on lan port -
SXT 5D wlan1 ether1 station a/n 5300MHz 0,1 above control on lan port on wan port blocked access to wan port Masquerade wan port 192.168.88.1/24 on lan port Disabled on wan port
OmniTik ether1 Switched ether2-ether5, bridged wlan1 with switch AP a/n 5300MHz 0,1 - on lan port on wan port blocked access to wan port Masquerade wan port 192.168.88.1/24 on lan port Disabled on wan port

Engineered


Wan port Lan port Wireless mode ht chain ht extension dhcp-server dhcp-client Firewall NAT Default IP Mac Server
RB450 RB450G ether1 Switched ether2-ether5 - - - on lan port on wan port blocked access to wan port Masquerade wan port 192.168.88.1/24 on lan port Disabled on wan port
RB711-5 wlan1 ether1 station a/n 5300MHz 0 above control on lan port on wan port blocked access to wan port Masquerade wan port 192.168.88.1/24 on lan port Disabled on wan port
RB711A-5Hn - bridged wlan1,ether1 AP a/n 5300MHz 0 - - - - - 192.168.88.1/24 on lan port -
RB711-2 wlan1 ether1 station b/g/n 2412MHz 0 above control on lan port on wan port blocked access to wan port Masquerade wan port 192.168.88.1/24 on lan port Disabled on wan port
Note: To see exact configuration script that will be applied after system reset use following command /system default-configuration print


Wan Port

When applying configuration WAN port is renamed to "<wan port>-gateway", for example, if wan port is ether1, it will be renamed to "ether1-gateway".

Local Port

Local port can be:
  • single interface
  • ethernets configured in switch group
  • bridged all interfaces that are not WAN and switch slaves.
If ports are switched then master port is renamed to "<ethernet name>-master-local" and slaves to "<ethernet name>-slave-local".
Lets take RB751 as an example. Board has ether1 configured as WAN port, it has switch chip and one pre-configured wireless interface. So in this case all ethernets except ether1 are grouped in switch group and bridged with wireless interface.
Generated config will be:
/interface set ether2 name=ether2-master-local;
/interface set ether3 name=ether3-slave-local;
/interface set ether4 name=ether4-slave-local;
/interface set ether5 name=ether5-slave-local;
/interface ethernet set ether3-slave-local master-port=ether2-master-local;
/interface ethernet set ether4-slave-local master-port=ether2-master-local;
/interface ethernet set ether5-slave-local master-port=ether2-master-local;

/interface bridge add name=bridge-local disabled=no auto-mac=no protocol-mode=rstp;

:local bMACIsSet 0;
:foreach k in=[/interface find] do={
        :local tmpPort [/interface get $k name];
        :if ($bMACIsSet = 0) do={
               :if ([/interface get $k type] = "ether") do={
                      /interface bridge set "bridge-local" admin-mac=[/interface ethernet get $tmpPort mac-address];
                      :set bMACIsSet 1;
                 }
        }
        :if (!($tmpPort~"bridge" || $tmpPort~"ether1" || $tmpPort~"slave")) do={
               /interface bridge port add bridge=bridge-local interface=$tmpPort;
        }
}

Wireless Config

Wireless configuration depends on market segment for which board is designed. It can be configured as AP or station in 2GHz and 5GHz frequencies. Default 2GHz frequency is 2412 and default 5GHz frequency is 5300. SSID is "Mikrotik".
If board has two chains (letter D in the naming of the board), then both chains are enabled. HT Extension is enabled on all CPEs.
For example generated config on RB751:
:if ( $wirelessEnabled = 1) do={
# wait for wireless
       :while ([/interface wireless find] = "") do={ :delay 1s; };

       /interface wireless set wlan1 mode=ap-bridge band=2ghz-b/g/n ht-txchains=0,1 ht-rxchains=0,1 \
               disabled=no country=no_country_set wireless-protocol=any
       /interface wireless set wlan1 channel-width=20/40mhz-ht-above ;
}

Default IP and DHCP Config

Default IP address on all boards is 192.168.88.1/24. Boards without specific configuration has IP address set on ether1, other boards has IP address on LAN interface.
All boards that has WAN port configured, DHCP client is set on WAN port.
Typically on all CPEs DHCP server is set on LAN port, giving out addresses in range from 192.168.88.2-192.168.88.254
As an example RB751 applied DHCP config.
/ip dhcp-client add interface=ether1-gateway disabled=no

/ip pool add name="default-dhcp" ranges=192.168.88.10-192.168.88.254;
/ip dhcp-server 
  add name=default address-pool="default-dhcp" interface=bridge-local disabled=no;

/ip dhcp-server network 
  add address=192.168.88.0/24 gateway=192.168.88.1 dns-server=192.168.88.1 comment="default configuration";

Firewall, NAT and MAC server

All boards with configured WAN port has configured protection on that port. Any traffic leaving WAN port is masqueraded.
Config example:
/ip firewall {
      filter add chain=input action=accept protocol=icmp comment="default configuration"
      filter add chain=input action=accept connection-state=established in-interface=ether1-gateway comment="default configuration"
      filter add chain=input action=accept connection-state=related in-interface=ether1-gateway comment="default configuration"
      filter add chain=input action=drop in-interface=ether1-gateway comment="default configuration"
      nat add chain=srcnat out-interface=ether1-gateway action=masquerade comment="default configuration"
}


/tool mac-server remove [find];
/tool mac-server mac-winbox disable [find];
:foreach k in=[/interface find] do={
       :local tmpName [/interface get $k name];
       :if (!($tmpName~"ether1")) do={
              /tool mac-server add interface=$tmpName disabled=no;
              /tool mac-server mac-winbox add interface=$tmpName disabled=no;
        }
}
/ip neighbor discovery set [find name="ether1-gateway"] discover=no

DNS

Every board allows remote DNS requests and static DNS name is pre-configured.
 /ip dns {
  set allow-remote-requests=yes
  static add name=router address=192.168.88.1
 }

28 September 2010

طريقة عمل load balance لثلاثة خطوط في سيرفر المايكروتك

السلام عليكم ورحمة الله وبركاته



نظرا لطلبات الكثر من الاعضاء على كيفية عمل لود بلنس لـ 3 خطوط انترنت واخراج واحد هذا الشرح مجرب من قبلي على سيرفر مايكروتك اصدار 2.9.20 .. ارجوا من الرغبين في تطبيق الشرح بان ينتبهوا للقيم والايبيات الموجودة .. يجب تغير وتعديل الكودات حسب ايبيات شبكتك .. عدم لصق الكود من دون معرفة .


طريقة العمل مكونة من اربع كروت شبكة .. ثلاث للدخول والرابع للخروج


كارت الشبكة الاول الـ WAN1 والمسمى في الشرح con1 يحمل ايبي : 10.111.0.2/24
كارت الشبكة الثاني الـ WAN2 والمسمى في الشرح con2 يحمل ايبي : 10.112.0.2/24
كارت الشبكة الثالث الـ WAN2 والمسمى في الشرح con2 يحمل ايبي : 10.113.0.2/24
كارت الشبكة الرابع الـ LAN والمسمى في الشرح local يحمل ايبي : 192.168.0.1/24


يجيب تسمة الكروت بهذه الاسماء اولا.


كود عمل هذه الايبايت المذكورة


كود PHP:
ip address
add address
=192.168.0.1/24 network=192.168.0.0 broadcast=192.168.0.255 interface=local comment="" disabled=no
add address
=10.111.0.2/24 network=10.111.0.0 broadcast=10.111.0.255 interface=con1 comment="" disabled=no
add address
=10.112.0.2/24 network=10.112.0.0 broadcast=10.112.0.255 interface=con2 comment="" disabled=no
add address
=10.113.0.2/24 network=10.113.0.0 broadcast=10.113.0.255 interface=con3 comment="" disabled=no 
كود عمل اعدادت الجيت وي في الراوت

كود PHP:
ip route
add dst
-address=0.0.0.0/0 gateway=10.111.0.1 scope=255 target-scope=10 routing-mark=mark1 comment="" disabled=no
add dst
-address=0.0.0.0/0 gateway=10.112.0.1 scope=255 target-scope=10 routing-mark=mark2 comment="" disabled=no
add dst
-address=0.0.0.0/0 gateway=10.113.0.1 scope=255 target-scope=10 routing-mark=mark3 comment="" disabled=no
add dst
-address=0.0.0.0/0 gateway=10.113.0.1 scope=255 target-scope=10 comment="" disabled=no
add dst
-address=0.0.0.0/0 gateway=10.111.0.1 scope=255 target-scope=10 comment="" disabled=no 
كود عمل الدي ان اس

كود PHP:
ip dns
set primary
-dns=192.168.1.1 secondary-dns=192.168.0.1 allow-remote-requests=no cache-size=2048KiB cache-max-ttl=1w 
كود عمل الاعدادت في الفايرول - نات

كود PHP:
ip firewall nat
add chain
=srcnat connection-mark=mark1 action=src-nat to-addresses=10.111.0.2 to-ports=0-65535 comment="" disabled=no
add chain
=srcnat connection-mark=mark2 action=src-nat to-addresses=10.112.0.2 to-ports=0-65535 comment="" disabled=no
add chain
=srcnat connection-mark=mark2 action=src-nat to-addresses=10.113.0.2 to-ports=0-65535 comment="" disabled=no 
اخيرا كود عمل الفايرول - مانجل

كود PHP:
ip firewall mangle
add chain
=prerouting in-interface=local src-address-list=mark1 action=mark-connection new-connection-mark=mark1 passthrough=yes
    comment
="" disabled=no
add chain
=prerouting in-interface=local src-address-list=mark1 action=mark-routing new-routing-mark=mark1 passthrough=no comment=""
    
disabled=no
add chain
=prerouting in-interface=local src-address-list=mark2 action=mark-connection new-connection-mark=mark2 passthrough=yes
    comment
="" disabled=no
add chain
=prerouting in-interface=local src-address-list=mark2 action=mark-routing new-routing-mark=mark2 passthrough=no comment=""
    
disabled=no
add chain
=prerouting in-interface=local src-address-list=mark3 action=mark-connection new-connection-mark=mark3 passthrough=yes
    comment
="" disabled=no
add chain
=prerouting in-interface=local src-address-list=mark3 action=mark-routing new-routing-mark=mark3 passthrough=no comment=""
    
disabled=no
add chain
=prerouting in-interface=local connection-state=new nth=1,1,0 action=mark-connection new-connection-mark=mark1
    passthrough
=yes comment="" disabled=no
add chain
=prerouting in-interface=local connection-mark=mark1 action=add-src-to-address-list address-list=mark1
    address
-list-timeout=1d comment="" disabled=no
add chain
=prerouting in-interface=local connection-mark=mark1 action=mark-routing new-routing-mark=mark1 passthrough=no comment=""
    
disabled=no
add chain
=prerouting in-interface=local connection-state=new nth=1,1,1 action=mark-connection new-connection-mark=mark2
    passthrough
=yes comment="" disabled=no
add chain
=prerouting in-interface=local connection-mark=mark2 action=add-src-to-address-list address-list=mark2
    address
-list-timeout=1d comment="" disabled=no
add chain
=prerouting in-interface=local connection-mark=mark2 action=mark-routing new-routing-mark=mark2 passthrough=no comment=""
    
disabled=no
add chain
=prerouting in-interface=local connection-state=new nth=1,1,1 action=mark-connection new-connection-mark=mark3
    passthrough
=yes comment="" disabled=no
add chain
=prerouting in-interface=local connection-mark=mark3 action=add-src-to-address-list address-list=mark3
    address
-list-timeout=1d comment="" disabled=no
add chain
=prerouting in-interface=local connection-mark=mark3 action=mark-routing new-routing-mark=mark3 passthrough=no comment=""
    
disabled=no 

مجاناً: صفحة واجهة جميلة للمايكروتك (هوت سبوت)



تصميم جميلاً لصفحة دخول المشتركين في نظام المايكروتك (هوت سبوت hotspot).
الواجهة جذابة وسهلة التركيب والتعديل.

وتتميز بما يلي:
- تصميم خفيف و مميز بنمط ويب 2.
- استخدام تقنية الـ CSS في التصميم والتي تتميز بالخفة و سهولة التعديل على تصميم كافة الصفحات من ملف واحد فقط .
- تعريب كامل لرسائل الأخطاء.
- شمل التصميم كافة صفحات الهوت سبوت.
- أضيفت 4 صفحات إضافية و هي (الأسعار-الشروط-الحسابات-خدمة العملاء).
- إضيفت صفحة أذكار و أدعية متحركة لتذكير المشتركين.
- أضيف إلى التصميم ميزة إظهار اليوم والتاريخ.
- لم يكتب المصمم اسمه ولا حقوقه على الصفحة ويسمح بتعديلها لمن شاء بشرط ألا ينسبها لنفسه.


وفيما يلي لقطات من صفحات الهوت سبوت والصفحات الإضافية:


* الصفحة الرئيسية و تبين تعريب الأخطاء (اضغط الصورة للتكبير)

* صفحة الأسعار مع تصميم لها (اضغط الصورة للتكبير)
*صفحة خدمة العملاء (اضغط الصورة للتكبير)


* صفحة الحسابات البنكية مفرغة من البيانات للتعديل
* صفحة الشروط (وبإمكانكم إزالة الصورة و كتابتة ما يحلوا لكم) اضغط الصورة للتكبير
حجم الملف:
430.5 kb

رابط تحميل الملف:
طريقة التركيب:
- خذ نسخة احتياطية لنظامك قبل التركيب.
- حمل الملف المضغوط.
- فك الضغط عن الملف بعد تحميله.
- عدل على التصميم حسب رغبتك.
- استبدل مجلد "hotspot" في نظامك بالمجلد الظاهر بعد فك الضغط.

01 August 2010

شرح بالصور عمل سيرفر أفلام وبرامج مع سيرفر المايكروتك

أولا :

لازم يكون عندك برنامج hfs وداطبعا اللى هايعملك الجهاذ بتاعك سايت

اللى هوه عليه الوندوز ال xp اللى هايبقى عليه الآفلام والبرامج ..... الخ

لتحميل البرنامج
lj1dg6hbce57.bmp

بعد تنزيل البرنامج افتحه هتلاقيه واخد الأيبي الخاص بالجهاز اللى البرنامج

موجود عليه

on7oro1boxlt.png

بعد كدا هانبدأ نحطله الحاجات اللي احنا عايزينها علي الموقع بتعنا مثل الأفلام

والبرامج .......الخ

v9jgiqbyzdd9.png


3u5px8nn2qjl.png

g53acciuq0p0.png

qav4zdpv7dwk.png

z31ts1hmlkkd.png

nia8uaxw6xe3.png

61wnrr5b0y1k.png

0be3ykcevp6i.png

hitu6cwyodwc.png

d2bu9dbg29k7.png
d50jko893cme.png

uv99rerljra2.png