No account yet? Create one
Forgot your Username or Password?

Welcome to the Voxilla VoIP Forum.

Voxilla has been a trusted source for accurate, up-to-date information on the IP Communications industry since 2002. A dedicated staff of reporters and engineers produce feature articles and product reviews to keep industry watchers abreast of the people, companies, and trends driving a fast moving market.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.





Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old August 27th, 2007, 08:02 AM
swapan.roy2 swapan.roy2 is offline
Junior Member
 
Join Date: Aug 2007
Posts: 3
swapan.roy2 is on a distinguished road
Default Need help to setup asterisk inside firewall protected LAN

Hi I am new to asterisk.I am trying to configure Asterisk-1.4.9 inside a Firewall protected LAN(Asymmetric NAT) only for internal communication inside the office/LAN,but without any luck so far.My aim is to connect all the users inside my office,who can talk to each other,not outside world for the time being.

I want a very basic setup to connect all the users inside offfice/LAN.Can anyone provide me detailed steps how to configure extensions.conf & sip.conf etc file in firewall scenario.

Also i want to inform that my ASTERISK server and sjphone/SIP clietns are all inside same LAN & my asterisk server has static ip but it doesn't have a public domain name/public IP. Is it necessary to have a public IP for the asterisk server?

Can anyone put some light on
1.What is outbound sip proxy? why it is needed?
2.what is ougoing sip provider & DID?
3.Do i need to install asterisk on a public ip server and keep it outside firewall?
4.What is externip actualy,can i put my asterisk server's static ip address there?
5.If it is not static how can i configure it as static?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old August 29th, 2007, 11:09 AM
rejil.rajan rejil.rajan is offline
Junior Member
 
Join Date: Jul 2007
Location: India
Posts: 8
rejil.rajan is on a distinguished road
Default Re: Need help to setup asterisk inside firewall protected LAN

Hi Swapan

When you say that your LAN is firewall enabled. Please could you explain your network infrastructure. All i would like to know is that is your asterisk server and users seperated by a firewall. If they are not as i saw in your post they are in the same LAN, then there is no issues in configuring the system. You do not need an external IP for Asterisk to work. It can work with an internal IP
__________________
Rejil Rajan
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old August 30th, 2007, 06:52 AM
swapan.roy2 swapan.roy2 is offline
Junior Member
 
Join Date: Aug 2007
Posts: 3
swapan.roy2 is on a distinguished road
Default Re: Need help to setup asterisk inside firewall protected LAN

Hi Rajan Thanks a lot for your reply..

As you guessed is right,we kept all the 3 systems( 1 asterisk server + 2 sj phone clients) in the same LAN,but we kept all the 3 systems outside firewall and tested it yesterday, it worked...although the sjphone main screen still showing
NAT/Firewall : Asymmetric NAT detected
i think it is just detecting the nat setup in our LAN.
Now one question: if everything (asterisk server + phone clients) are inside a firewall
protected LAN,then also our sjphone display showing this line :NAT/Firewall : Asymmetric NAT detected
Are you sure it works ??? if we are trying to talk only inside LAN

I am using Asterisk-1.4.9.i have attached the sip.conf and extensions.conf file here (which are working), i have a question next.
sip.conf file below:
[general]
bindport =5060 ; Port to bind to
bindaddr = 192.168.1.207;Address to bind to
context = sip;
srvlookup=yes
externip=192.168.1.207 ; internal ip of our asterisk server
localnet=192.168.1.0/255.255.255.0
registerattempts=0
registertimeout=3600; working is 3600
canreinvite=no
nat=no
qualify=yes ;
disallow=all
allow=ulaw
allow=alaw
allow=all



register => mysjphone:mysjphone@192.168.1.207/1000
register => mysjphone1:mysjphone1@192.168.1.207/2000
;register => smita:smita@192.168.1.207/3000


[192.168.1.207]
type=user
host=192.168.1.207


[mysjphone] ;1st phone client
nat=no
type=friend
host=dynamic
username=mysjphone
secret=mysjphone
dtmfmode=rfc2833 ;Choices are inband, rfc2833, or info
context=sip
callgroup=1
pickupgroup=1

[mysjphone1] ; 2nd phone client
nat=no
type=friend
host=dynamic
username=mysjphone1
secret=mysjphone1
dtmfmode=rfc2833 ;Choices are inband, rfc2833, or info
context=sip
callgroup=1
pickupgroup=1


Here is extensions.conf file

[sip]
exten => 1000,1,Dial(SIP/mysjphone,20)
exten => 1000,2,Playback(vm-unknown-caller)
exten => 1000,3,Hangup()

exten => 2000,1,Dial(SIP/mysjphone1,20)
exten => 2000,2,Playback(vm-unknown-caller)
exten => 2000,3,Hangup()

1.now if i want to connect all the 3 systems inside firewall , what changes i have to make in the above files?
2.how can i register to this asterisk server (which is inside office LAN/Firewall) from outside office (e.g home or cyber cafe) and be able to make call to people in office.
In that case do i need a public ip for asterisk server? will the register command register any outside user seperted by firewall if i configure nat =yes,canreinvite=no?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old August 30th, 2007, 08:25 AM
rejil.rajan rejil.rajan is offline
Junior Member
 
Join Date: Jul 2007
Location: India
Posts: 8
rejil.rajan is on a distinguished road
Default Re: Need help to setup asterisk inside firewall protected LAN

Hi

I have a similar setup in my test lab, but we have not used SJ phone, we use Xlite. We have not faced this issue.Please can you show me the configuration done in the SJ phone.

One more thing if trying to access the Asterisk server from outside. This server has to be natted with a public IP and preferred to use an IAX client like Idefisk, else you will need a SIP proxy in the external.
__________________
Rejil Rajan
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old August 30th, 2007, 08:53 AM
swapan.roy2 swapan.roy2 is offline
Junior Member
 
Join Date: Aug 2007
Posts: 3
swapan.roy2 is on a distinguished road
Default Re: Need help to setup asterisk inside firewall protected LAN

Well i think the most important mention for sjphone setting is :
1.Under sip proxy menu i just set proxy domain=192.168.1.207 bindport:5060 i.e the internal ip and udp port of our asterisk server,i kept all other setting to default like.... proxy for nat=nothing set,stun server
setting kept default and just initialized one username and password and set the audio codec to ulaw.. In the sjphone no client ip address initialized anywhere since it is dynamic(dhcp)..


And to be able to use IAX i have to configure one more asterisk server at the other end and register the outside client to that, then two asterisk server can communicate through iax in....Am i right or wrong???

can u provide me your config files for various scenario, it will help me a lot..
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old August 30th, 2007, 08:53 AM
Linksys SPA3102-NA (Unlocked)
Includes VoIP/PSTN gateway, FXO/FXS ports, and router.
Sale Price: $76.95
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:



Similar Threads for: Need help to setup asterisk inside firewall protected LAN
Thread Thread Starter Forum Replies Last Post
Asterisk and clients inside LAN/NAT, can call sip url outside? huy.banh Asterisk Support Forum 3 March 8th, 2007 09:30 PM
configure Linksys pap2t inside LAN EvilGod Linksys (Sipura) VoIP Support Forum 7 January 8th, 2007 06:44 AM
SPA2100 and LAN setup binro Linksys (Sipura) VoIP Support Forum 11 November 13th, 2006 10:03 AM
Simple LAN PSTN setup? sigipa Linksys (Sipura) VoIP Support Forum 2 October 22nd, 2006 03:36 AM
Asterisk inside NAT Pap2 inside a different NAT ygator Asterisk Support Forum 2 July 11th, 2006 07:16 PM


Advertise Here

All times are GMT. The time now is 02:36 PM.


vBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd. SEO by vBSEO 3.0.0 ©2007, Crawlability, Inc. Logos and trademarks are the property of Voxilla or their respective owner. All other content © 2003-2007 by Voxilla, Inc.