Last active
August 24, 2017 21:18
-
-
Save Aglezabad/95c07e4c884ecbd5c79ec5eaa2eb8259 to your computer and use it in GitHub Desktop.
Configuración Mikrotik Jazztel Fibra (VoIP en centralita ATA independiente)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #Based on Mikrotik Jazztel configuration made by Malosa at adslzone.net | |
| #Descomentar para configurar frecuencia procesador (RB450G) | |
| #/system routerboard settings set cpu-frequency=800MHz | |
| #Cambiar por el hostname personalizado | |
| /system identity set name=RB450G | |
| /interface ethernet | |
| #Cambiar mac address por la dirección MAC del F660 que tengas. | |
| set 0 name=eth0-gw mac-address=78:31:2b:xx:xx:xx | |
| set 1 name=eth1-lan | |
| set 2 master-port=eth1-lan name=eth2-lan | |
| set 3 master-port=eth1-lan name=eth3-lan | |
| set 4 master-port=eth1-lan name=eth4-lan | |
| /interface vlan | |
| add interface=eth0-gw name=vlan-jazztel vlan-id=1074 | |
| add interface=eth1-lan name=vlan-jazztel-lan vlan-id=1074 | |
| /ip pool | |
| add name=dhcp ranges=10.0.0.2-10.0.0.254 | |
| add name=voip ranges=10.1.0.5-10.1.0.7 | |
| /ip dhcp-server | |
| add address-pool=dhcp disabled=no interface=eth1-lan lease-time=1d name=dhcp-main | |
| add address-pool=voip disabled=no interface=vlan-jazztel-lan lease-time=1d name=dhcp-voip | |
| /ip address | |
| add address=10.0.0.1/24 interface=eth1-lan | |
| add address=192.168.100.10/24 interface=eth0-gw | |
| add address=10.1.0.1/24 interface=vlan-jazztel-lan | |
| /ip dhcp-client | |
| add add-default-route=yes disabled=no interface=vlan-jazztel use-peer-ntp=no | |
| /ip dhcp-server network | |
| add address=10.0.0.1/24 dns-server=10.0.0.1 gateway=10.0.0.1 | |
| add address=10.1.0.1/24 dns-server=10.1.0.1 gateway=10.1.0.1 | |
| /ip dns | |
| set allow-remote-requests=yes | |
| /ip dns static | |
| add address=10.0.0.1 name=router | |
| add address=10.1.0.1 name=routervlan | |
| /ip firewall filter | |
| add chain=input comment="default configuration" protocol=icmp | |
| add chain=input comment="default configuration" connection-state=established | |
| add chain=input comment="default configuration" connection-state=related | |
| add chain=input disabled=yes dst-port=23,80 in-interface=vlan-jazztel protocol=\ | |
| tcp | |
| add chain=input disabled=yes dst-port=8291 in-interface=vlan-jazztel protocol=tcp | |
| add chain=input disabled=yes dst-port=1723 in-interface=vlan-jazztel protocol=tcp | |
| add action=drop chain=input comment="default configuration" in-interface=\ | |
| vlan-jazztel | |
| add chain=forward comment="default configuration" connection-state=\ | |
| established | |
| add chain=forward comment="default configuration" connection-state=related | |
| add action=drop chain=forward comment="default configuration" \ | |
| connection-state=invalid | |
| /ip firewall nat | |
| add action=masquerade chain=srcnat comment="default configuration" \ | |
| out-interface=vlan-jazztel | |
| add action=masquerade chain=srcnat comment="default configuration" \ | |
| out-interface=eth0-gw | |
| add action=masquerade chain=srcnat disabled=yes out-interface=vlan-jazztel-lan | |
| add action=masquerade chain=srcnat disabled=yes out-interface=\ | |
| eth1-lan | |
| #Redireccionamiento personalizado. | |
| add action=dst-nat chain=dstnat disabled=yes dst-port=80 in-interface=\ | |
| vlan-jazztel protocol=tcp to-addresses=192.168.1.125 | |
| add action=dst-nat chain=dstnat disabled=yes dst-port=21 in-interface=\ | |
| vlan-jazztel protocol=tcp to-addresses=192.168.1.125 | |
| /ip route | |
| add distance=255 gateway=255.255.255.255 | |
| /ip upnp | |
| set enabled=yes | |
| /ip upnp interfaces | |
| add interface=eth1-lan type=internal | |
| add interface=vlan-jazztel type=external | |
| /system clock | |
| set time-zone-name=Europe/Madrid | |
| /system ntp client | |
| set enabled=yes primary-ntp=163.117.202.33 secondary-ntp=89.248.104.162 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment