|
5907 / 3359 / 1036
Регистрация: 03.11.2009
Сообщений: 10,008
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Intelligent Services Gateway - быстрый обзор04.06.2014, 04:14. Показов 35698. Ответов 20
Метки нет (Все метки)
В этой посте я хотел бы (максимально кратко) показать пример настройки ISG. Для тех, кто не знает, ISG (Intelligent Services Gateway - интеллектуальный сервисный шлюз) – это фреймворк в платформах Cisco 10000, Cisco 7200, Cisco 7300, Cisco ASR для организации пользовательского доступа, с упрощенной системой аутентификации, гибкой интегрированной системой управления правилами (политиками) и глубокой интеграцией на оперативном уровне, позволяющей связать этот фреймворк с существующими платформами AAA, биллинга и пользовательского портала. Вот так Cisco описывает выгоды привнесения ISG:
Звучит сладко. Теперь о фичах. Чтобы особо не повторяться, приведу опять со слов циски: Материалы для ознакомления: White Paper Intelligent Service Gateway Features Roadmap (12.2, 15.0) Cisco IOS Intelligent Services Gateway Command Reference Cisco ISG Design and Deployment Guide: ATM Aggregation Using Cisco IOS Software Release 12.2(28)SB5 Cisco ISG Design and Deployment Guide: Gigabit Ethernet Aggregation Using Cisco IOS Software Release 12.2(31)SB2 Intelligent Services Gateway Configuration Guide, Cisco IOS XE Release 3S Intelligent Services Gateway Configuration Guide, Cisco IOS XE Release 3S (Cisco ASR 1000) На ciscolive по этому вопросу можно посмотреть следующие материалы:
Теперь ближе к делу. Для моего примера я возьму стандартную (и самую простую) схему, которая не отличается замысловатостью, но, при всем этом, позволит показать некотрые из возможностей Cisco ISG. Сразу уточню, что для демонстрации я буду использовать виртуализацию, как для сервисного шлюза, так и для конечного пользователя. Устройства: ISG: CSR1000v
ISG#sh ver
Cisco IOS XE Software, Version 03.12.00.S - Standard Support Release Cisco IOS Software, CSR1000V Software (X86_64_LINUX_IOSD-UNIVERSALK9-M), Version 15.4(2)S, RELEASE SOFTWARE (fc2) Technical Support: http://www.cisco.com/techsupport Copyright (c) 1986-2014 by Cisco Systems, Inc. Compiled Wed 26-Mar-14 21:09 by mcpre Cisco IOS-XE software, Copyright (c) 2005-2014 by cisco Systems, Inc. All rights reserved. Certain components of Cisco IOS-XE software are licensed under the GNU General Public License ("GPL") Version 2.0. The software code licensed under GPL Version 2.0 is free software that comes with ABSOLUTELY NO WARRANTY. You can redistribute and/or modify such GPL code under the terms of GPL Version 2.0. For more details, see the documentation or "License Notice" file accompanying the IOS-XE software, or the applicable URL provided on the flyer accompanying the IOS-XE software. ROM: IOS-XE ROMMON ISG uptime is 1 day, 59 minutes Uptime for this control processor is 1 day, 1 hour, 0 minutes System returned to ROM by reload at 11:47:31 FET Mon Jun 2 2014 System restarted at 11:49:05 FET Mon Jun 2 2014 System image file is "bootflash ackages.conf"Last reload reason: Reload Command This product contains cryptographic features and is subject to United States and local country laws governing import, export, transfer and use. Delivery of Cisco cryptographic products does not imply third-party authority to import, export, distribute or use encryption. Importers, exporters, distributors and users are responsible for compliance with U.S. and local country laws. By using this product you agree to comply with applicable laws and regulations. If you are unable to comply with U.S. and local laws, return this product immediately. A summary of U.S. laws governing Cisco cryptographic products may be found at: http://www.cisco.com/wwl/expor... stqrg.html If you require further assistance please contact us by sending email to export@cisco.com. License Level: premium License Type: Evaluation License Next reload license Level: premium cisco CSR1000V (VXE) processor with 2170596K/6147K bytes of memory. Processor board ID 9G4FLFSIQPY 3 Gigabit Ethernet interfaces 32768K bytes of non-volatile configuration memory. 4194304K bytes of physical memory. 7774207K bytes of virtual hard disk at bootflash:. Configuration register is 0x2102 DHCP: CSR1000v
DHCP_SERVER#show ver
Cisco IOS XE Software, Version 03.12.00.S - Standard Support Release Cisco IOS Software, CSR1000V Software (X86_64_LINUX_IOSD-UNIVERSALK9-M), Version 15.4(2)S, RELEASE SOFTWARE (fc2) Technical Support: http://www.cisco.com/techsupport Copyright (c) 1986-2014 by Cisco Systems, Inc. Compiled Wed 26-Mar-14 21:09 by mcpre Cisco IOS-XE software, Copyright (c) 2005-2014 by cisco Systems, Inc. All rights reserved. Certain components of Cisco IOS-XE software are licensed under the GNU General Public License ("GPL") Version 2.0. The software code licensed under GPL Version 2.0 is free software that comes with ABSOLUTELY NO WARRANTY. You can redistribute and/or modify such GPL code under the terms of GPL Version 2.0. For more details, see the documentation or "License Notice" file accompanying the IOS-XE software, or the applicable URL provided on the flyer accompanying the IOS-XE software. ROM: IOS-XE ROMMON DHCP_SERVER uptime is 1 week, 5 days, 1 hour, 49 minutes Uptime for this control processor is 1 week, 5 days, 1 hour, 50 minutes System returned to ROM by reload System restarted at 11:00:23 FET Thu May 22 2014 System image file is "bootflash ackages.conf"Last reload reason: Unknown reason This product contains cryptographic features and is subject to United States and local country laws governing import, export, transfer and use. Delivery of Cisco cryptographic products does not imply third-party authority to import, export, distribute or use encryption. Importers, exporters, distributors and users are responsible for compliance with U.S. and local country laws. By using this product you agree to comply with applicable laws and regulations. If you are unable to comply with U.S. and local laws, return this product immediately. A summary of U.S. laws governing Cisco cryptographic products may be found at: http://www.cisco.com/wwl/expor... stqrg.html If you require further assistance please contact us by sending email to export@cisco.com. License Level: limited License Type: Default. No valid license found. Next reload license Level: limited cisco CSR1000V (VXE) processor with 804580K/6147K bytes of memory. Processor board ID 9FGH5Z8MDHJ 3 Gigabit Ethernet interfaces 32768K bytes of non-volatile configuration memory. 3145728K bytes of physical memory. 7774207K bytes of virtual hard disk at bootflash:. Configuration register is 0x2102 INT-GW: CSR1000V
INT_GW#sh ver
Cisco IOS XE Software, Version 03.12.00.S - Standard Support Release Cisco IOS Software, CSR1000V Software (X86_64_LINUX_IOSD-UNIVERSALK9-M), Version 15.4(2)S, RELEASE SOFTWARE (fc2) Technical Support: http://www.cisco.com/techsupport Copyright (c) 1986-2014 by Cisco Systems, Inc. Compiled Wed 26-Mar-14 21:09 by mcpre Cisco IOS-XE software, Copyright (c) 2005-2014 by cisco Systems, Inc. All rights reserved. Certain components of Cisco IOS-XE software are licensed under the GNU General Public License ("GPL") Version 2.0. The software code licensed under GPL Version 2.0 is free software that comes with ABSOLUTELY NO WARRANTY. You can redistribute and/or modify such GPL code under the terms of GPL Version 2.0. For more details, see the documentation or "License Notice" file accompanying the IOS-XE software, or the applicable URL provided on the flyer accompanying the IOS-XE software. ROM: IOS-XE ROMMON INT_GW uptime is 1 day, 2 hours, 29 minutes Uptime for this control processor is 1 day, 2 hours, 29 minutes System returned to ROM by reload System image file is "bootflash ackages.conf"Last reload reason: Reload Command This product contains cryptographic features and is subject to United States and local country laws governing import, export, transfer and use. Delivery of Cisco cryptographic products does not imply third-party authority to import, export, distribute or use encryption. Importers, exporters, distributors and users are responsible for compliance with U.S. and local country laws. By using this product you agree to comply with applicable laws and regulations. If you are unable to comply with U.S. and local laws, return this product immediately. A summary of U.S. laws governing Cisco cryptographic products may be found at: http://www.cisco.com/wwl/expor... stqrg.html If you require further assistance please contact us by sending email to export@cisco.com. License Level: limited License Type: Default. No valid license found. Next reload license Level: limited cisco CSR1000V (VXE) processor with 804580K/6147K bytes of memory. Processor board ID 90FUTHQ505J 3 Gigabit Ethernet interfaces 32768K bytes of non-volatile configuration memory. 3145728K bytes of physical memory. 7774207K bytes of virtual hard disk at bootflash:. Configuration register is 0x2102 RADIUS (freeradius) / SQL (mysql) / WEB-PORTAL (самописный): vmware host
root@freeradius:~# uname -a
Linux freeradius 3.2.0-4-686-pae #1 SMP Debian 3.2.57-3+deb7u1 i686 GNU/Linux root@freeradius:~# Конфиги: ISG
hostname ISG
! aaa new-model ! aaa group server radius RAD_SRV server name RAD_SRV1 load-balance method least-outstanding batch-size 1 ignore-preferred-server ! aaa authentication login default local aaa authentication login RAD_SRV group RAD_SRV aaa authorization exec default local aaa authorization network default group RAD_SRV aaa authorization subscriber-service default local group RAD_SRV aaa accounting delay-start aaa accounting jitter maximum 0 aaa accounting update periodic 1 aaa accounting commands 0 default none aaa accounting commands 1 default none aaa accounting commands 15 default none aaa accounting network default start-stop group RAD_SRV aaa accounting network ISG_ACC start-stop group RAD_SRV ! aaa nas port extended ! aaa server radius dynamic-author client 192.168.8.227 server-key cisco auth-type any ignore session-key ignore server-key ! ip domain name office.cisco.com ip name-server 8.8.8.8 ip name-server 192.168.6.9 ! subscriber service multiple-accept subscriber service session-accounting subscriber service accounting interim-interval 1 subscriber redundancy dynamic periodic-update interval 15 subscriber templating subscriber authorization enable ! username a.ivanov privilege 15 secret 5 $1$YaAl$OVACRX6v0trI3Ms/4RDwm/ ! redundancy mode none ! cdp run ! class-map type traffic match-any TC_L4R match access-group input name ACL_IN_L4R ! class-map type traffic match-any OPEN_GARDEN match access-group input name OPENGARDEN_IN match access-group output name OPENGARDEN_OUT ! class-map type control match-all ISG-IP-UNAUTH match timer UNAUTH-TIMER match authen-status unauthenticated ! policy-map type service S_L4R 250 class type traffic TC_L4R redirect to ip 192.168.8.227 ! policy-map type service OPEN_GARDEN 250 class type traffic OPEN_GARDEN ! class type traffic default in-out drop ! policy-map type control ISG class type control ISG-IP-UNAUTH event timed-policy-expiry 1 service disconnect ! class type control always event session-start 1 service-policy type service name OPEN_GARDEN 5 set-timer UNAUTH-TIMER 5 10 service-policy type service name S_L4R ! class type control always event session-restart 1 service-policy type service name OPEN_GARDEN 5 set-timer UNAUTH-TIMER 5 10 service-policy type service name S_L4R ! class type control always event account-logon 10 authenticate aaa list RAD_SRV 20 service-policy type service unapply name S_L4R 30 service-policy type service name INET ! class type control always event account-logoff 10 service-policy type service unapply name INET ! policy-map SUB-QOS-IN class class-default police cir 100000 ! policy-map SUB-QOS-OUT class class-default police cir 100000 ! interface GigabitEthernet1 description host ip address 172.16.1.254 255.255.255.0 ip helper-address 192.168.8.228 service-policy type control ISG ip subscriber l2-connected initiator unclassified mac-address ! interface GigabitEthernet2 description server-dhcp-int_gw ip address dhcp ! ip route 0.0.0.0 0.0.0.0 192.168.8.226 ip route 192.168.0.0 255.255.0.0 192.168.8.1 ! ip access-list extended ACL_IN_L4R permit tcp any any eq www permit tcp any any eq 443 ! ip access-list extended INT_IN permit ip 172.16.1.0 0.0.0.255 any ! ip access-list extended INT_OUT permit ip any 172.16.1.0 0.0.0.255 ! ip access-list extended OPENGARDEN_IN permit ip any host 192.168.8.227 permit ip any host 192.168.6.9 ! ip access-list extended OPENGARDEN_OUT permit ip host 192.168.8.227 any permit ip host 192.168.6.9 any ! snmp-server community public RO snmp-server location lab@office.cisco.com snmp ifmib ifindex persist ! radius-server attribute 44 include-in-access-req default-vrf radius-server attribute 6 on-for-login-auth radius-server attribute 8 include-in-access-req radius-server attribute 32 include-in-access-req radius-server attribute 32 include-in-accounting-req radius-server attribute 55 include-in-acct-req radius-server attribute 55 access-request include radius-server attribute 30 original-called-number radius-server attribute 31 mac format ietf radius-server attribute 31 send nas-port-detail mac-only radius-server retransmit 2 radius-server timeout 3 radius-server key cisco ! radius server RAD_SRV1 address ipv4 192.168.8.227 auth-port 1812 acct-port 1813 key cisco ! alias exec shs show subscriber session alias exec cls clear subscriber session all alias exec cld clear ip dhcp binding * ! end DHCP_SERVER
hostname DHCP_SERVER
! ip dhcp pool SUBSCRIBERS network 172.16.1.0 255.255.255.0 dns-server 192.168.6.9 default-router 172.16.1.254 ! interface GigabitEthernet2 ip address dhcp negotiation auto ! ip route 172.16.1.0 255.255.255.0 192.168.8.230 INT_GW
hostname INT_GW
! interface GigabitEthernet1 ip address 178.172.213.10 255.255.255.0 ip nat outside ! interface GigabitEthernet2 ip address dhcp ip nat inside ! ip nat inside source list NAT interface GigabitEthernet1 overload ! ip route 0.0.0.0 0.0.0.0 X.X.X.X ip route 172.16.1.0 255.255.255.0 192.168.8.230 ip route 192.168.0.0 255.255.0.0 192.168.8.1 ! ip access-list extended NAT permit ip 172.16.1.0 0.0.0.255 any permit ip host 192.168.8.230 any ! end Настройку radius и mysql тут приводить не буду, предполагаю, что читающий знаком с этими вещами Radius: в /etc/freeradius/radiusd.conf включаем $INCLUDE sql.conf в самом sql.conf - описываем нашу бд. в mysql: show tables from radius_db;
основной интерес представляют таблицы radcheck, radreply и radacct. Вот как это выглядит с уже существующим пользователем, атрибутами и аккаунтингом. mysql> select * from radcheck;
mysql> select * from radreply;
mysql> select radacctid,username,nasipaddress,acctstarttime,acctstoptime,acctinputoctets,acctoutputoctets from radacct;
Web-portal (Apache): netland@freeradius:~$ cat /var/www/index.php
netland@freeradius:~$ cat /var/www/isg.php
А теперь немного по трафик-флоу: Абонент подключается к сети и запрашивает адрес по DHCP. На порту настроен ip address-helper, думаю, что он делает объяснять ну нужно. DHCP_SERVER#show ip dhcp binding
На этом же интерфейсе применена политика ISG, которая и является нашей основной политикой, где мы рулим различными событиями и указано, что сессия будет создана на основе нового (неклассифицированного) мак адреса. Сессия у нас в state unauthen(ticated): ISG#show subscriber session
Что только что произошло. Сработало первое правило нашей политики session-start:
Пытаемся зайти на microsoft.com: и попадаем на портал. Вводим логин пароль (test/test) и видим, что портал нас пропустил (хотя это на самом деле ничего не значит, потому что ответы я не обрабатываю на сервере). Проверил, аутентифицировались ли мы: ISG#show subscriber session
Да. Что только что снова произошло? Сработало условие account-logon:
Пользователь в интернете. ISG#show subscriber session detailed
Использованные условия в политике: событие происходит по контрол-классу ISG-IP-UNAUTH (пользователь неаутентифицирован, таймер истек):
quota-depleted credit-exhausted но они являются частью логики биллинга и выходят за границы ознакомительного повествования, которое я тут развел. PS Это лишь малая часть возможностей ISG. Целью было лишь поверхностно ознакомить и дать почувствовать, так сказать, вкус.
4
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 04.06.2014, 04:14 | |
|
Ответы с готовыми решениями:
20
VPN тоннель Gateway to Gateway на RV320
|
|
58 / 49 / 3
Регистрация: 19.12.2013
Сообщений: 203
|
|
| 19.10.2015, 11:26 | |
|
0
|
|
| 19.10.2015, 11:26 | |
|
Как отключить Intelligent Energy Saver?
Gateway Искать еще темы с ответами Или воспользуйтесь поиском по форуму: |
|
Новые блоги и статьи
|
|||
|
Калькулятор для расчета родства
russiannick 07.08.2026
1. Задача: Создать калькулятор для расчета родства.
Родственных связей существует 8 ступеней, такие как:
p - отец
P - мать
q - муж
Q - жена
b - брат
B - сестра
s - сын
S - дочь
|
Мир по моей воле
kumehtar 07.08.2026
Когда-то кажется, что всё просто. Ты весь такой светлый. Причиняешь добро. Борешься за справедливость в этом тёмном мире.
Потом начинаешь замечать одну неприятную вещь. Почти каждый хороший. . .
|
Кредитный калькулятор
Maks 05.08.2026
Решение задачи по прикладной информатике средствами 1С.
Задача:
Напишите приложение-калькулятор, которое помогает рассчитывать параметры кредита для аннуитетного и дифференцированного видов. . .
|
У нас сейчас поговорку "Опять 25" нужно переделать на "Опять +35".
kumehtar 04.08.2026
С ностальгией вспоминаю времена моего детства, когда у нас и правда +25 - была максимальная температура летом. Раньше +25 °C реально казались вершиной жары, когда можно было весь день пропадать на. . .
|
|
Как ИИ начал спорить и врать (возможно почуяв опасность для себя от индустрии - уход от электроники).
Hrethgir 04.08.2026
Недельный диалог, на фоне событий с НПЗ. Да, из спирта можно получать бензин, и это не сложно. Но потом в схеме я решил избавиться от насоса, при этом полностью сделав контроль подачи спирта в. . .
|
Термопринтер QR701
Argus19 03.08.2026
Термопринтер QR701
Купил два термопринтера QR701.
На сэлф-тесте написано:
Language: PC936 (GB18030).
Что означает, что принтеры могут печатать только латиницу и китайские иероглифы. Так же. . .
|
Создание формы заимствованного документа
Maks 03.08.2026
Задача:
Необходимо создать собственную форму заимствованного документа. На форме должен быть реквизит "Покупатель", а также
табличная часть со следующими реквизитами:
- Расчетный счет покупателя. . .
|
Задача предоставления скидок покупателям
Maks 03.08.2026
Задача:
В документе "Продажи" необходимо реализовать функционал предоставления скидок покупателям. Скидка должна автоматически рассчитываться и подставляться в соответствующее поле при выборе. . .
|