<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
Thank you so much for taking the time to type that out. Unfortunately for me, it is Win XP<br><br>> Date: Thu, 29 Oct 2009 11:30:59 -0400<br>> From: abalashov@evaristesys.com<br>> To: asterisk-biz@lists.digium.com<br>> Subject: Re: [asterisk-biz] Bypass Hotel hotspot login page for IP Phone<br>> <br>> (Works if your laptop is Linux:)<br>> <br>> I would connect the IP phone to your laptop via a switch. Plug your <br>> laptop into same switch. Plug cable going into hotel jack into switch <br>> as well.<br>> <br>> Set up a virtual subinterface (i.e. eth0:1) on a /30 with your phone <br>> on the other side, i.e. 192.168.200.1/30 (laptop) and 192.168.200.2/30 <br>> (phone). Set 192.168.200.1 to be your phone's default gateway.<br>> <br>> Then, set up other interface on laptop (eth0) as per normal to connect <br>> to hotel, e.g. acquire a DHCP lease on it.<br>> <br>> Enable IP forwarding:<br>> <br>> echo 1 > /proc/sys/net/ipv4/ip_forward<br>> <br>> Then, NAT your phone's traffic out of your laptop. From the hotel <br>> router's point of view, it will appear to be coming out of your laptop:<br>> <br>> iptables -A POSTROUTING -o eth0 -s 192.168.200.0/30 -j MASQUERADE<br>> <br>> This will put you behind two layers of NAT from the point of view of <br>> your service provider/PBX/whatever, but if the reregistration <br>> intervals are frequent enough, OPTIONS pings are turned on <br>> (qualify=yes if Asterisk is the UAS), and the upstream NAT gateway <br>> isn't ridiculous, it should work - certainly enough to reliably make <br>> calls out.<br>> <br>> -- <br>> Alex Balashov - Principal<br>> Evariste Systems<br>> Web : http://www.evaristesys.com/<br>> Tel : (+1) (678) 954-0670<br>> Direct : (+1) (678) 954-0671<br>> <br>> _______________________________________________<br>> --Bandwidth and Colocation Provided by http://www.api-digital.com--<br>> <br>> asterisk-biz mailing list<br>> To UNSUBSCRIBE or update options visit:<br>> http://lists.digium.com/mailman/listinfo/asterisk-biz<br>                                            <br /><hr />Windows 7: It helps you do more. <a href='http://www.microsoft.com/Windows/windows-7/default.aspx?ocid=PID24727::T:WLMTAGL:ON:WL:en-US:WWL_WIN_evergreen3:102009' target='_new'>Explore Windows 7.</a></body>
</html>