Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Access For Sip Client

Status
Not open for further replies.

quazimotto

Programmer
Mar 29, 2008
774
US
Greetings! Its me again. I need to allow a Sip client to access the network and end up at the Voice Server. I would like to use the main ip address and point anyhing Sip to the Voice Server. I have a PIX 501 6.3(5).

Any ideas are appreciated greatly.

Thanks/Quaz
 
add
Code:
fixup protocol sip 5060
fixup protocol sip udp 5060

access-list outside_access_in extended permit tcp any interface eq 5060

nat (inside,outside) tcp interface 5060 <voice_server_ip> 5060

access-group outside_access_in in interface outside

I hate all Uppercase... I don't want my groups to seem angry at me all the time! =)
- ColdFlame (vbscript forum)
 
unclerico,

Thanks for the response. The pix will have non of the code from your post. The pix doesn't like " extended " before permit. And it says "invalid number of interfaces specified" when I enter the nat command. What do you think ? I am sending conf for you to look at.

I appreciate your help greatly.

Quaz



:
PIX Version 6.3(5)
interface ethernet0 auto
interface ethernet1 100full
nameif ethernet0 outside security0
nameif ethernet1 inside security100
enable password sAwfjSP6.yP2/mgh encrypted
passwd sAwfjSP6.yP2/mgh encrypted
hostname Pix501
domain-name DVDCO.net
fixup protocol dns maximum-length 512
fixup protocol ftp 21
fixup protocol h323 h225 1720
fixup protocol h323 ras 1718-1719
fixup protocol http 80
fixup protocol rsh 514
fixup protocol rtsp 554
fixup protocol sip 5060
fixup protocol sip udp 5060
fixup protocol skinny 2000
fixup protocol smtp 25
fixup protocol sqlnet 1521
fixup protocol tftp 69
names
access-list outside_access_in permit tcp 192.168.1.0 255.255.255.0 any eq www
access-list outside_access_in permit tcp 192.168.1.0 255.255.255.0 any eq ftp
access-list outside_access_in permit tcp 192.168.1.0 255.255.255.0 any eq ftp-da
ta
access-list outside_access_in permit tcp 192.168.1.0 255.255.255.0 any eq ssh
access-list outside_access_in permit icmp any any
access-list outside_access_in permit udp any any eq domain
access-list outside_access_in permit tcp any any eq https
access-list outside_access_in permit tcp any any eq smtp
access-list outside_access_in permit tcp any any eq pop3
access-list ipsec-quazlink2 permit ip 192.168.90.0 255.255.255.0 192.168.1.0 255
.255.255.0
access-list nonat permit ip 192.168.90.0 255.255.255.0 192.168.1.0 255.255.255.0

pager lines 24
logging standby
logging monitor alerts
logging trap informational
icmp permit 192.168.1.0 255.255.255.0 echo-reply outside
icmp permit any unreachable outside
mtu outside 1500
mtu inside 1500
ip address outside dhcp
ip address inside 192.168.1.1 255.255.255.0
ip audit info action alarm
ip audit attack action alarm
pdm logging informational 100
pdm history enable
arp timeout 14400
global (outside) 1 interface
nat (inside) 0 access-list ipsec-quazlink2
nat (inside) 1 0.0.0.0 0.0.0.0 0 0
static (inside,outside) tcp interface 4899 192.168.1.9 4899 netmask 255.255.255.
255 0 0
access-group outside_access_in in interface outside
access-group outside_access_in in interface inside
route outside 0.0.0.0 0.0.0.0 76.116.40.1 1
route inside 192.168.3.0 255.255.255.0 192.168.1.23 1
route inside 192.168.8.0 255.255.255.0 192.168.1.23 1
timeout xlate 0:05:00
timeout conn 1:00:00 half-closed 0:10:00 udp 0:02:00 rpc 0:10:00 h225 1:00:00
timeout h323 0:05:00 mgcp 0:05:00 sip 0:30:00 sip_media 0:02:00
timeout sip-disconnect 0:02:00 sip-invite 0:03:00
timeout uauth 0:05:00 absolute
aaa-server TACACS+ protocol tacacs+
aaa-server TACACS+ max-failed-attempts 3
aaa-server TACACS+ deadtime 10
aaa-server RADIUS protocol radius
aaa-server RADIUS max-failed-attempts 3
aaa-server RADIUS deadtime 10
aaa-server LOCAL protocol local
http server enable
http 72.82.192.0 255.255.255.0 outside
http 192.168.3.0 255.255.255.0 inside
http 192.168.1.0 255.255.255.0 inside
no snmp-server location
no snmp-server contact
snmp-server community pfc54321
snmp-server enable traps
floodguard enable
sysopt connection permit-ipsec
crypto ipsec transform-set esp3des2 esp-3des esp-sha-hmac
crypto ipsec transform-set aes192 esp-aes-192 esp-sha-hmac
crypto ipsec transform-set esp3des esp-3des esp-md5-hmac
crypto map map1 10 ipsec-isakmp
! Incomplete
crypto map map1 11 ipsec-isakmp
crypto map map1 11 set peer 151.204.187.95
crypto map map1 11 set transform-set esp3des2
! Incomplete
crypto map map1 12 ipsec-isakmp
crypto map map1 12 match address ipsec-quazlink2
crypto map map1 12 set peer 173.161.131.121
crypto map map1 12 set transform-set esp3des2
crypto map map1 interface outside
isakmp enable outside
isakmp key ******** address 151.204.187.95 netmask 255.255.255.255 no-xauth no-c
onfig-mode
isakmp key ******** address 173.161.131.121 netmask 255.255.255.255 no-xauth no-
config-mode
isakmp identity address
isakmp keepalive 300
isakmp policy 10 authentication rsa-sig
isakmp policy 10 encryption des
isakmp policy 10 hash sha
isakmp policy 10 group 1
isakmp policy 10 lifetime 86400
isakmp policy 11 authentication pre-share
isakmp policy 11 encryption 3des
isakmp policy 11 hash sha
isakmp policy 11 group 2
isakmp policy 11 lifetime 86400
telnet 0.0.0.0 0.0.0.0 outside
telnet 192.168.3.0 255.255.255.0 inside
telnet 192.168.1.0 255.255.255.0 inside
telnet timeout 60
ssh 0.0.0.0 0.0.0.0 outside
ssh 10.1.0.0 255.255.0.0 inside
ssh 192.168.1.0 255.255.255.0 inside
ssh timeout 30
console timeout 0
vpdn group ISP request dialout pppoe
vpdn group ISP localname daveperfetti
vpdn group ISP ppp authentication pap
vpdn username daveperfetti password *********
dhcpd address 192.168.1.42-192.168.1.142 inside
dhcpd dns 68.87.64.150 68.87.75.198
dhcpd lease 3600
dhcpd ping_timeout 750
dhcpd auto_config outside
dhcpd enable inside
username quazimotto password /Ko/qFKltiYCYrTN encrypted privilege 15
username Dave password BbuLwcgXmAeL/NE/ encrypted privilege 15
terminal width 80
Cryptochecksum:854acd0a644e2f99cbccb039f165a7b6
: end
 
sorry, I screwed up the commands:
1) omit the extended command from the ACE. i'm used to newer code that adds it in
2) it is supposed to be static not nat. so it should be static (inside,outside) tcp interface 5060 <voice_server_ip> 5060

I hate all Uppercase... I don't want my groups to seem angry at me all the time! =)
- ColdFlame (vbscript forum)
 
unclerico, WHen I delete the extended from the command the PIX is telling the interface <eq> does not exist.

Quaz
 
i forgot that your access-list on the inside is labeled outside_access_in so issue no access-group outside_access_in in interface outside. Add in access-list outside_in permit tcp any <outside_ip_address> eq 5060 and then apply it access-group outside_in in interface outside

I hate all Uppercase... I don't want my groups to seem angry at me all the time! =)
- ColdFlame (vbscript forum)
 
unclerico,

Here's what I got the PIX to take. WIthout " host " in the command it would not take cli. Said " Invalid Interface eq ". Here's what it took.

access-list outside_access_in permit tcp any host 76.116.43.xx eq 5060
access-list outside_access_in permit udp any host 76.116.43.xx eq 5060

static (inside,outside) tcp interface 5060 192.168.1.25 5060 netmask 255.255.255.255 0 0
static (inside,outside) udp interface 5060 192.168.1.25 5060 netmask 255.255.255.255 0 0

Its no good. Sip client can not see server inside. What must I change?

Quaz
 
Turn logging on, try to access the voice server, and then look at the logs

I hate all Uppercase... I don't want my groups to seem angry at me all the time! =)
- ColdFlame (vbscript forum)
 
Put "access-group outside_access_in in interface outside" command in and now the Voice Server sees the SIP client. It is not registering. I will start logging. Thanks for your patience.

QUaz
 
unclerico,

The server sees the SIP client but does not register. I ran a debug. Please have a look and tell me where the problem lies.

I looked at it and it looks as if everthing is going good till it gets to" Unable find xlate table for 10.10.10.142 " at the end.

Thanks/Quaz


578: NAT::NAT UDP 10.10.10.142/3076
from outside:72.82.183.54/50225 to inside:192.168.1.25/5060
579: NAT::table route: embedded host at inside:10.10.10.142/3076
580: NAT::find/create NAT rule for inside:10.10.10.142/3076 to inside:192.168.1.25
581: NAT::receiver and embedded hosts on same interface
582: NAT::embedded socket translates to inside:10.10.10.142/3076
583: SIP::Embedded IP 76.116.xx.xx/0
584: NAT::NAT UDP 76.116.xx.xx/0
from outside:72.82.183.54/50225 to inside:192.168.1.25/5060
585: NAT::table route: embedded host at outside:76.116.xx.xx/0
586: NAT::find/create NAT rule for outside:76.116.xx.xx/0 to inside:192.168.1.25
587: NAT::eek:utside NAT not needed
588: NAT::embedded socket translates to inside:76.116.xx.xx/0
589: SIP::Embedded IP 76.116.xx.xx/0
590: NAT::NAT UDP 76.116.xx.xx/0
from outside:72.82.183.54/50225 to inside:192.168.1.25/5060
591: NAT::table route: embedded host at outside:76.116.xx.xx/0
592: NAT::find/create NAT rule for outside:76.116.xx.xx/0 to inside:192.168.1.25
593: NAT::eek:utside NAT not needed
594: NAT::embedded socket translates to inside:76.116.xx.xx/0
595: SIP::Found Via branch "z9hG4bK-d8754z-9274527d591d0016-1---d8754z-" (43)
596: SIP::Found To addr "sip:4450@76.116.xx.xx" (21)
597: SIP::Found From addr "sip:4450@76.116.xx.xx" (21)
598: SIP::Found From addr tag "3730e50e" (8)
599: SIP::Found Call-ID NDc1OTgzMjhkNjVmODRiYjY3NGMzYTQyNzkwNWQ4ZDY. (44)
600: SIP::Found CSeq 1 REGISTER
601: SIP::Found expires, 3600 seconds
602: Unable to find xlate for pre-nat address 10.10.10.142/3076 (protocol 17)
603: NAT::requesting UDP conn for 10.10.10.142/3076 [0.0.0.0/0]
from outside:72.82.183.54/50225 to inside:192.168.1.25/5060
604: NAT::table route: embedded host at inside:10.10.10.142/3076
605: NAT::pre-allocate connection for inside:192.168.1.25 to inside:10.10.10.142/3076
606: NAT::no connection necessary, same security level
607: SIP::REGISTER received from outside:72.82.183.54/50225 to inside:192.168.1.25/5060
608: SIP::Embedded IP 76.116.xx.xx/5060
609: NAT::NAT UDP 76.116.xx.xx/5060
from outside:72.82.183.54/50225 to inside:192.168.1.25/5060
610: NAT::xlate route: embedded host at inside:192.168.1.25/5060
611: NAT::find/create NAT rule for inside:192.168.1.25/5060 to inside:192.168.1.25
612: NAT::receiver and embedded hosts on same interface
613: NAT::embedded socket translates to inside:192.168.1.25/5060
Found port 3076
614: SIP::Embedded IP 10.10.10.142/3076
615: NAT::NAT UDP 10.10.10.142/3076
from outside:72.82.183.54/50225 to inside:192.168.1.25/5060
616: NAT::table route: embedded host at inside:10.10.10.142/3076
617: NAT::find/create NAT rule for inside:10.10.10.142/3076 to inside:192.168.1.25
618: NAT::receiver and embedded hosts on same interface
619: NAT::embedded socket translates to inside:10.10.10.142/3076
Found port 3076
620: SIP::Embedded IP 10.10.10.142/3076
621: NAT::NAT UDP 10.10.10.142/3076
from outside:72.82.183.54/50225 to inside:192.168.1.25/5060
622: NAT::table route: embedded host at inside:10.10.10.142/3076
623: NAT::find/create NAT rule for inside:10.10.10.142/3076 to inside:192.168.1.25
624: NAT::receiver and embedded hosts on same interface
625: NAT::embedded socket translates to inside:10.10.10.142/3076
626: SIP::Embedded IP 76.116.xx.xx/0
627: NAT::NAT UDP 76.116.xx.xx/0
from outside:72.82.183.54/50225 to inside:192.168.1.25/5060
628: NAT::table route: embedded host at outside:76.116.xx.xx/0
629: NAT::find/create NAT rule for outside:76.116.xx.xx/0 to inside:192.168.1.25
630: NAT::eek:utside NAT not needed
631: NAT::embedded socket translates to inside:76.116.xx.xx/0
632: SIP::Embedded IP 76.116.xx.xx/0
633: NAT::NAT UDP 76.116.xx.xx/0
from outside:72.82.183.54/50225 to inside:192.168.1.25/5060
634: NAT::table route: embedded host at outside:76.116.xxxx/0
635: NAT::find/create NAT rule for outside:76.116.xx.xx/0 to inside:192.168.1.25
636: NAT::eek:utside NAT not needed
637: NAT::embedded socket translates to inside:76.116.xx.xx/0
638: SIP::Found Via branch "z9hG4bK-d8754z-9274527d591d0016-1---d8754z-" (43)
639: SIP::Found To addr "sip:4450@76.116.xx.xx" (21)
640: SIP::Found From addr "sip:4450@76.116.xx.xx" (21)
641: SIP::Found From addr tag "3730e50e" (8)
642: SIP::Found Call-ID NDc1OTgzMjhkNjVmODRiYjY3NGMzYTQyNzkwNWQ4ZDY. (44)
643: SIP::Found CSeq 1 REGISTER
644: SIP::Found expires, 3600 seconds
645: Unable to find xlate for pre-nat address 10.10.10.142/3076 (protocol 17)
646: NAT::requesting UDP conn for 10.10.10.142/3076 [0.0.0.0/0]
 
let's back these two commands out then:
no fixup protocol sip 5060
no fixup protocol sip udp 5060

try registering again and let us know how she goes

I hate all Uppercase... I don't want my groups to seem angry at me all the time! =)
- ColdFlame (vbscript forum)
 
When I removed the two lines from config and turned on debug sip, nothing happened. No sip activity got in.

Quaz
 
what sip solution are you using??

I hate all Uppercase... I don't want my groups to seem angry at me all the time! =)
- ColdFlame (vbscript forum)
 
Session Chat and AdorePhone. Two Iphone apps. When I am on local lan they register in a heartbeat. I am trying a different router at remote end. I will send my WAN address from the remote. The debug log seems to imply that the Host router loses site of Wan IP address of the remote.
" Unable to Xlate Local Blah Blah ". I am curious to see if that works.

Thanks/Dave
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top