Robert Rawlinson
2005-Sep-16 12:51 UTC
[Asterisk-Users] How to access * thru router when ip address is not known
I am going to be traveling and I wanted to be able to get on the internet and call thru * to make calls. The problem is I do not have a fixed ip address. How do you make this work? I will be using IAXCOMM. TIA Bob
mike.jennings@charter.net
2005-Sep-16 12:55 UTC
[Asterisk-Users] How to access * thru router when ip address is not known
dyndns.org> > From: Robert Rawlinson <rarawlinson@verizon.net> > Date: 2005/09/16 Fri PM 03:51:56 EDT > To: Asterisk <asterisk-users@lists.digium.com> > Subject: [Asterisk-Users] How to access * thru router when ip address is not > known > > I am going to be traveling and I wanted to be able to get on the > internet and call thru * to make calls. The problem is I do not have a > fixed ip address. How do you make this work? I will be using IAXCOMM. TIA > Bob > _______________________________________________ > --Bandwidth and Colocation sponsored by Easynews.com -- > > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com > http://lists.digium.com/mailman/listinfo/asterisk-users > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >
Colin Anderson
2005-Sep-16 13:27 UTC
[Asterisk-Users] How to access * thru router when ip address is not known
Assuming your Asterisk mail client is set up correctly, cron this twice a day on your Asterisk box: ifconfig eth0 | grep "inet addr" | mail -s "My Asterisk IP address" rarawlinson@verizon.net Check your mail before you call and verify that the IP address has not changed, if it has, modify your client accordingly. -----Original Message----- From: Robert Rawlinson [mailto:rarawlinson@verizon.net] Sent: Friday, September 16, 2005 1:52 PM To: Asterisk Subject: [Asterisk-Users] How to access * thru router when ip address is not known I am going to be traveling and I wanted to be able to get on the internet and call thru * to make calls. The problem is I do not have a fixed ip address. How do you make this work? I will be using IAXCOMM. TIA Bob _______________________________________________ --Bandwidth and Colocation sponsored by Easynews.com -- Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Colin Anderson
2005-Sep-16 13:44 UTC
[Asterisk-Users] How to access * thru router when ip address is not known
whoops, should have prefaced that with the Asterisk box has to be forward of any firewall, otherwise it's going to return a 10.X.X.X or 192.168.X.X IP address. -----Original Message----- From: Colin Anderson [mailto:ColinA@landmarkmasterbuilder.com] Sent: Friday, September 16, 2005 2:28 PM To: 'Asterisk Users Mailing List - Non-Commercial Discussion' Subject: RE: [Asterisk-Users] How to access * thru router when ip address is not known Assuming your Asterisk mail client is set up correctly, cron this twice a day on your Asterisk box: ifconfig eth0 | grep "inet addr" | mail -s "My Asterisk IP address" rarawlinson@verizon.net Check your mail before you call and verify that the IP address has not changed, if it has, modify your client accordingly. -----Original Message----- From: Robert Rawlinson [mailto:rarawlinson@verizon.net] Sent: Friday, September 16, 2005 1:52 PM To: Asterisk Subject: [Asterisk-Users] How to access * thru router when ip address is not known I am going to be traveling and I wanted to be able to get on the internet and call thru * to make calls. The problem is I do not have a fixed ip address. How do you make this work? I will be using IAXCOMM. TIA Bob _______________________________________________ --Bandwidth and Colocation sponsored by Easynews.com -- Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users _______________________________________________ --Bandwidth and Colocation sponsored by Easynews.com -- Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Colin Anderson
2005-Sep-16 15:26 UTC
[Asterisk-Users] How to access * thru router when ip address is not known
Another method comes to mind similar to my last posted method, but for *behind* a firewall if you have a static hostname but dynamic ip (lots of ISP's do this): traceroute -m1 my.statichostname.net | mail -s "My Asterisk IP address" myemail@somewhere.com Yet another method is, a lot of Linksys / SMC bluebox routers also display the external IP in their little management web site that they have. You could use this in a shell script as follows: getmyexternalip.sh rm -f /etc/myexternalip.txt wget --cache=off --http-user=admin --http-passwd=admin --output-document=/etc/myexternalip.txt http://192.168.1.1/status.html grep "WAN IP Address" /etc/myexternalip.txt | mail -s "My Asterisk IP address" myemail@somewhere.com Otherwise, DyDNS.org is the way to go.
Paul
2005-Sep-16 15:31 UTC
[Asterisk-Users] How to access * thru router when ip address is not known
I came up with a solution a few years ago that only required a web browser to get the current IP address. It requires an account with ssh access allowed on a web host. 1) Install your public ssh key on the account where the web pages live. 2) If you are concerned about others getting your IP address create a password protected web directory where dynamic IP host data will be stored. 3) create a script the is executed on the appropriate ip up condition. On debian this script would be installed in /etc/ppp/ip-up.d directory if you wanted it to run whenever a ppp link comes up. The script takes the output of ifconfig and uses scp to update the web host. Just browse and refresh to get the current IP address. This provides the new address right away. No need to wait for dyndns or email propagation. I should mention that I also have cron run the script every 20 minutes. I did this after I had a situation where the dsl at the web host was down for an hour or so. During that time 2 remotes changed address but were unable to update my web host. Now I will get the new address within 20 minutes of recovering from a network outage. Colin Anderson wrote:>Assuming your Asterisk mail client is set up correctly, cron this twice a >day on your Asterisk box: > >ifconfig eth0 | grep "inet addr" | mail -s "My Asterisk IP address" >rarawlinson@verizon.net > >Check your mail before you call and verify that the IP address has not >changed, if it has, modify your client accordingly. > >-----Original Message----- >From: Robert Rawlinson [mailto:rarawlinson@verizon.net] >Sent: Friday, September 16, 2005 1:52 PM >To: Asterisk >Subject: [Asterisk-Users] How to access * thru router when ip address is >not known > > >I am going to be traveling and I wanted to be able to get on the >internet and call thru * to make calls. The problem is I do not have a >fixed ip address. How do you make this work? I will be using IAXCOMM. TIA >Bob >_______________________________________________ >--Bandwidth and Colocation sponsored by Easynews.com -- > >Asterisk-Users mailing list >Asterisk-Users@lists.digium.com >http://lists.digium.com/mailman/listinfo/asterisk-users >To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >_______________________________________________ >--Bandwidth and Colocation sponsored by Easynews.com -- > >Asterisk-Users mailing list >Asterisk-Users@lists.digium.com >http://lists.digium.com/mailman/listinfo/asterisk-users >To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users > >