Welcome to City-Data.com Forum!
U.S. CitiesCity-Data Forum Index
Go Back   City-Data Forum > General Forums > Science and Technology > Internet
 [Register]
Please register to participate in our discussions with 2 million other members - it's free and quick! Some forums can only be seen by registered members. After you create your account, you'll be able to customize options and access all our 15,000 new posts/day with fewer ads.
View detailed profile (Advanced) or search
site with Google Custom Search

Search Forums  (Advanced)
 
Old 06-14-2009, 06:12 PM
 
Location: Tyler, TX
23,861 posts, read 24,125,811 times
Reputation: 15135

Advertisements

I'm working on replacing our linux pbx system with a cisco 2621 as our border router. It needs to do nat, and also has to allow and forward incoming connections on certain ports. Primarily, these have to do with the phones, but I'm also forwarding ssh and will be doing more later, after I get this problem worked out.

The standard nat functionality is working fine - we can browse the 'net, check our mail, etc. The phone system seems to be doing fine, too. We can make and receive calls, and everyone can hear each other.

The problem I'm having is with phone registrations from outside our network. When I try connecting by using a softphone on my PC that's connected to the net via my cellphone (local network cable disconnected), I get a "port unreachable" response back from the cisco. I thought that maybe Sprint was blocking SIP on their data network (wouldn't want those pesky customers using free data time & voip instead of costly cellular minutes!), so I connected to a VPN elsewhere on the 'net and tried it from there, with the same result.

The really odd thing is that the other ports, e.g. ssh, work as expected. The only thing that seems to be borken is SIP registrations. I'm quite befuddled...

Here's the relevant config from the cisco, with the stuff that shouldn't be posted in a forum masked out. The public facing interface is FastEthernet0/0, and the LAN interface is FastEthernet0/1. Access-list 111 shows what needs to get through and forwarded to the pbx machine.

Quote:
version 12.3
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname Router
!
boot-start-marker
boot-end-marker
!
enable secret 5 *************
!
memory-size iomem 20
no aaa new-model
ip subnet-zero
ip cef
!
!
!
!
!
!
!
!
interface FastEthernet0/0
ip address dhcp
ip access-group 101 in
ip nat outside
duplex auto
speed auto
!
interface FastEthernet0/1
ip address 172.31.0.254 255.255.255.0
ip nat inside
speed auto
full-duplex
!
ip nat pool voip 172.31.0.1 172.31.0.1 netmask 255.255.255.0 type rotary
ip nat inside source list 1 interface FastEthernet0/0 overload
ip nat inside destination list 111 pool voip
no ip http server
ip classless
!
!
logging facility news
logging source-interface FastEthernet0/1
logging 172.31.0.1
access-list 1 permit 172.31.0.0 0.0.0.255
access-list 101 deny tcp any any eq telnet
access-list 101 permit ip any any
access-list 111 permit tcp any any range 5060 5089
access-list 111 permit udp any any range 5060 5089
access-list 111 permit udp any any range 10000 20000
access-list 111 permit tcp any any eq 22
!
line con 0
line aux 0
line vty 0 4
password *********
login
!
!
end
I know, the 101 acl is too loose - I'll tighten it down later. Right now I'm more concerned about getting the external phones to register. If I don't get this resolved today, I probably won't be able to work on it again until next weekend and I'll have to undo all the reconfiguring I did today.

It's also worth noting that I tried a static 1:1 mapping, forwarding all traffic that wasn't part of an existing nat session on to the pbx system, and had the exact same issue.

Any idears?
Reply With Quote Quick reply to this message

 
Old 06-15-2009, 01:35 PM
 
16,294 posts, read 28,543,062 times
Reputation: 8384
Nothing jumps out at me.

Have you ran "debug ip nat sip" or are you not wanting to run debug on a production router?
Reply With Quote Quick reply to this message
 
Old 06-15-2009, 01:53 PM
 
Location: Tyler, TX
23,861 posts, read 24,125,811 times
Reputation: 15135
I have, and nothing shows at all when a registration from outside the LAN is attempted.

I'm thinking that IOS just isn't the right tool for the job in this scenario. It's supposed to be able to be done, either this way or with route maps, but both are hacks to get it to do something it wasn't designed to do, and neither are working for me.

I'm looking at PIXs on eBay right now... Wanna buy a router?
Reply With Quote Quick reply to this message
 
Old 06-16-2009, 06:04 AM
 
Location: The DMV
6,591 posts, read 11,296,324 times
Reputation: 8658
Ok - I've not worked on routing/switching in years... and never on VoIp implementations... but:

Try adding static routes just to see if that works....
i.e.

ip nat inside source static udp 172.16.31.1 <port> interface Ethernet0 <port>

I'd also log the ACL's just to see what's being hit....
Reply With Quote Quick reply to this message
Please register to post and access all features of our very popular forum. It is free and quick. Over $68,000 in prizes has already been given out to active posters on our forum. Additional giveaways are planned.

Detailed information about all U.S. cities, counties, and zip codes on our site: City-data.com.


Reply
Please update this thread with any new information or opinions. This open thread is still read by thousands of people, so we encourage all additional points of view.

Quick Reply
Message:


Over $104,000 in prizes was already given out to active posters on our forum and additional giveaways are planned!

Go Back   City-Data Forum > General Forums > Science and Technology > Internet

All times are GMT -6.

© 2005-2024, Advameg, Inc. · Please obey Forum Rules · Terms of Use and Privacy Policy · Bug Bounty

City-Data.com - Contact Us - Archive 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37 - Top