Practical IT Tips and Tricks from my Personal, Real World Experiences out here in the heart of Silicon Valley
Showing posts with label Cisco IOS. Show all posts
Showing posts with label Cisco IOS. Show all posts
Friday, August 24, 2012
Cisco CME with ATA186 using FAX Pass Through mode
This finally worked after getting a bad ATA the first time round that would not respond to https. The first thing you want to do is point your browser to the ATAs IP address (https://IPAddr/dev) and make the following changes:
I configured ATA with static IP address and disabled TFTP.
Network Parameters
UseTFTP=0
DHCP=0
StaticIP=172.17.100.9
StaticRoute=172.17.100.1
StaticNetMask=255.255.255.0
Audio Parameters
LBRCodec=3
AudioMode=0x00150015
ConnectMode=0x90000404
On the CME I had the fax DID number 5552496501 first get translated to extension 101 using a profile. With the usual suspects of dial-peers and ephones referencing 101, the Fax call is placed to port 1 (determined by the MAC address) of the ATA.
CME Configs
voice service voip
modem passthrough nse codec g711ulaw
voice translation-rule 9
rule 1 /^55522672\(..\)$/ /1\1/
rule 3 /^5552496501/ /101/ <---Fax number. Translates to 101
voice translation-profile SIP_IN
translate calling 3
translate called 9 <--Incoming SIP calls
tftp-server flash:ATA030203SCCP051201A.zup
dial-peer voice 101 voip
destination-pattern 101
modem passthrough nse codec g711ulaw
session target ipv4:172.17.100.9
codec g711ulaw
fax rate disable
no vad
telephony-service
load ata ATA030203SCCP051201A.zup
ephone-dn 101
number 101
ephone 28
device-security-mode none
mac-address 001D.4595.6401 <--MAC Address of Port 1 on ATA
max-calls-per-button 2
type ata
button 1:101
Friday, April 15, 2011
WOL Directed Broadcast Configuration on Cisco Layer 3 Switches
Use directed broadcast to configure the Wake On LAN (WOL) application on Cisco L3 switches. In our case we had the WOL servers connected to VLAN 1 (10.1.20.64 and .65). They are used to wake client computers on all other private VLANs. Here's the working example for our test case with clients on VLAN2:
access-list 180 permit udp host 10.1.20.64 any
access-list 180 permit udp host 10.1.20.65 any
interface Vlan1
ip address 10.1.0.10 255.255.0.0
ip helper-address 10.2.255.255
!
interface Vlan2
ip address 10.2.0.10 255.255.0.0
ip directed-broadcast 180
Note that the helper address sends the WOL broadcast to all destination subnets that are specified there (in our case to the 10.2.0.0/16 subnet) but you control what lands up on the destination VLAN with the directed broadcast command and an acl. It works if you use a supernet in the helper address command to cover all your destination networks.
Monday, April 4, 2011
IOS NAT and VPN
Building NAT (PAT or Static) on a Cisco router is fairly well documented and works well. However, I got tripped up again with an implementation today where the PAT would work but then the VPN tunnel would go down!
Case Study
My client has a site to site VPN tunnel to Cust2 with 6 remote networks. All local networks (192.168.0.0/21) communicate to the remote nets with their private IPs. In addition, the local networks get PAT'd to 39.100.3.68 when routed over to the Internet. There is one static NAT that only gets translated to 39.100.3.67 when communicating with 206.96.88.115 out on the Internet. In all other cases it will remain as it's real IP of 192.168.0.76.
Here is the configuration that I built. The VPN tunnel and static NAT rule using a route map to achieve our goal worked. However, as soon as I applied the PAT pool and overload translation, the tunnel went down.
crypto isakmp policy 10
encr 3des
authentication pre-share
group 2
!
crypto isakmp policy 20
encr aes
authentication pre-share
group 2
crypto isakmp key *** address 209.100.166.20
!
!
crypto ipsec transform-set 3DES-SHA esp-3des esp-sha-hmac
!
crypto map vpnmap 10 ipsec-isakmp
set peer 209.100.166.20
set transform-set 3DES-SHA
match address cust2-vpn
interface GigabitEthernet0/0
description to Inside
ip address 192.168.0.8 255.255.255.0
ip nat inside
!
interface GigabitEthernet0/1
description Internet
ip address 39.105.128.242 255.255.255.252
ip nat outside
crypto map vpnmap
!
ip nat pool natpool 39.100.3.68 39.100.3.68 netmask 255.255.255.0
ip nat inside source list ins_nat_source pool natpool overload
ip nat inside source static 192.168.0.76 39.100.3.67 route-map nat-exempt extendable
!
ip access-list extended cust2-vpn
permit ip 192.168.0.0 0.0.7.255 192.168.16.0 0.0.0.255
permit ip 192.168.0.0 0.0.7.255 70.185.0.0 0.0.255.255
permit ip 192.168.0.0 0.0.7.255 200.106.176.0 0.0.7.255
permit ip 192.168.0.0 0.0.7.255 200.106.184.0 0.0.1.255
permit ip 192.168.0.0 0.0.7.255 206.184.246.0 0.0.0.255
permit ip 192.168.0.0 0.0.7.255 208.134.161.0 0.0.0.255
ip access-list extended ins_nat_source
deny ip any 192.168.16.0 0.0.0.255
deny ip any 70.185.0.0 0.0.255.255
deny ip any 200.106.176.0 0.0.7.255
deny ip any 200.106.184.0 0.0.1.255
deny ip any 206.184.246.0 0.0.0.255
deny ip any 208.134.161.0 0.0.0.255
permit ip any any
access-list 110 permit ip host 192.168.0.76 host 206.96.88.115
access-list 110 deny ip host 192.168.0.76 any
!
!
!
route-map nat-exempt permit 1
match ip address 110
!
The fix is to also include the Internet facing interface into the NAT exempt access rules (ins_nat_source). Even though that interface is on the 'outside', it will get subjected to translation because of the 'permit any any' rule. Here's the fixed access rule:
ip access-list extended ins_nat_source
deny ip any 192.168.16.0 0.0.0.255
deny ip any 70.185.0.0 0.0.255.255
deny ip any 200.106.176.0 0.0.7.255
deny ip any 200.106.184.0 0.0.1.255
deny ip any 206.184.246.0 0.0.0.255
deny ip any 208.134.161.0 0.0.0.255
deny ip host 39.105.128.242 any
permit ip any any
Subscribe to:
Posts (Atom)