<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
Mine is this:<br><br>GatewayID wireless<br>ExternalInterface eth0<br>GatewayInterface eth2<br><br>AuthServer {<br>&nbsp;&nbsp;&nbsp; Hostname wireless.host.name<br>&nbsp;&nbsp;&nbsp; SSLAvailable yes<br>&nbsp;&nbsp;&nbsp; SSLPort 443<br>&nbsp;&nbsp;&nbsp; Path /<br>}<br><br>It's been a while, but I believe I experienced some problems when I had the GatewayAddress uncommented. I just let<br>wifidog pick it up from the interface name.<br><br>-Reggie<br><br>"If you ever find yourself on the side of the majority, it is time to pause, and reflect." -- Mark Twain <br><br><br><br>&gt; Date: Mon, 15 Dec 2008 16:10:54 -0500<br>&gt; From: osvaldo.baires@gmail.com<br>&gt; To: wifidog@listes.ilesansfil.org<br>&gt; Subject: Re: [isf-wifidog] regarding an ubuntu gateway<br>&gt; <br>&gt; Hi:<br>&gt; &gt; On my system, the wifidog.conf is located here:<br>&gt; &gt;<br>&gt; &gt; /usr/local/etc/wifidog.conf<br>&gt; Yes, i did the same thing.<br>&gt; <br>&gt; &gt; In this file, there is an option:<br>&gt; &gt;<br>&gt; &gt; GatewayInterface<br>&gt; &gt;<br>&gt; &gt; You might want to change this to whatever you virtualbox interface is and<br>&gt; &gt; restart the service.<br>&gt; I did it also.<br>&gt; The following is from the /usr/local/etc/wifidog.conf file:<br>&gt; <br>&gt; GatewayID 0<br>&gt; GatewayInterface br1<br>&gt; GatewayAddress 192.168.1.1<br>&gt; AuthServer {<br>&gt;     Hostname wifidog.localhost<br>&gt;     SSLAvailable no<br>&gt;     Path /<br>&gt; }<br>&gt; <br>&gt; <br>&gt; brctl show<br>&gt; bridge name        bridge id                STP enabled        interfaces<br>&gt; br0                8000.001fe182dc1a        no                eth1<br>&gt; br1                8000.00ff59e6bc17        no                tap0<br>&gt;                                                         tap3<br>&gt; <br>&gt; I'm using a wireless connection (eth1). I created a second brigde for<br>&gt; the virtual interfaces. tap0 is my gateway ip and tap3 is the<br>&gt; interface from the virtual machine:<br>&gt;                                                         <br>&gt; root@vostro:/usr/local/etc# ifconfig<br>&gt; br0       Link encap:Ethernet  HWaddr 00:1f:e1:82:dc:1a<br>&gt;           inet addr:192.168.0.216  Bcast:192.168.0.255  Mask:255.255.255.0<br>&gt; br1       Link encap:Ethernet  HWaddr 00:ff:59:e6:bc:17<br>&gt; eth0      Link encap:Ethernet  HWaddr 00:1c:23:5a:c9:0a<br>&gt; eth1      Link encap:Ethernet  HWaddr 00:1f:e1:82:dc:1a<br>&gt; tap0      Link encap:Ethernet  HWaddr 00:ff:dc:ef:0b:44<br>&gt;           inet addr:192.168.1.1  Bcast:0.0.0.0  Mask:255.255.255.255<br>&gt; tap3      Link encap:Ethernet  HWaddr 00:ff:74:1c:d7:0d<br>&gt; <br>&gt; The only two interfaces with IP address are br0 (on behalf of eth1)<br>&gt; and tap0, my gateway for the virtual machine network.<br>&gt; The routes are:<br>&gt; <br>&gt; ip route ls<br>&gt; 192.168.1.0/24 dev br1  scope link<br>&gt; 192.168.1.0/24 dev tap0  scope link<br>&gt; 192.168.0.0/24 dev br0  proto kernel  scope link  src 192.168.0.216<br>&gt; default via 192.168.0.1 dev br0  metric 100<br>&gt; <br>&gt; <br>&gt; <br>&gt; /etc/hosts<br>&gt; 127.0.0.1        localhost<br>&gt; 192.168.1.1        wifidog.localhost wifidog<br>&gt; <br>&gt; &gt; Also, try changing the error reporting set by Wifidog.<br>&gt; &gt; This was set in a lot of the PHP files under /var/www/wifidog-auth/<br>&gt; &gt; error_reporting(E_ALL);<br>&gt; &gt; We changed it to:<br>&gt; &gt; error_reporting(E_ALL ^E_NOTICE);<br>&gt; I'm trying that right now, I'll let you know if I find something.<br>&gt; Regards,<br>&gt; Osvaldo<br>&gt; <br>&gt; &gt;<br>&gt; &gt;&gt; Date: Mon, 15 Dec 2008 13:38:42 -0500<br>&gt; &gt;&gt; From: osvaldo.baires@gmail.com<br>&gt; &gt;&gt; To: wifidog@listes.ilesansfil.org<br>&gt; &gt;&gt; Subject: Re: [isf-wifidog] regarding an ubuntu gateway<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; Hi:<br>&gt; &gt;&gt; &gt; I made some notes here:<br>&gt; &gt;&gt; &gt; http://justuber.com/publicwifi:public_wireless_internet_access<br>&gt; &gt;&gt; &gt;<br>&gt; &gt;&gt; &gt; These are from a year or two ago when I was setting up Wifidog on Ubuntu<br>&gt; &gt;&gt; &gt; and<br>&gt; &gt;&gt; &gt; Debian machines. Feel free to have a read and see if anything is of use<br>&gt; &gt;&gt; &gt; to<br>&gt; &gt;&gt; &gt; you.<br>&gt; &gt;&gt; I had followed the same steps that are shown in that guide. The<br>&gt; &gt;&gt; proxy.sh script is working ok (prevents the client machine from<br>&gt; &gt;&gt; connecting to port 22 of the gateway).<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; Now the wididog daemon is preventing the client machine to access the<br>&gt; &gt;&gt; Internet, but then, it's not doing the redirection of port 80.<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; The rule is there:<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; iptables -nL -t nat | grep 80<br>&gt; &gt;&gt; REDIRECT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp<br>&gt; &gt;&gt; dpt:80 redir ports 2060<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; but it does nothing, if I try to surf, the browser just keeps on<br>&gt; &gt;&gt; trying to connect to the remote server but don't go to the<br>&gt; &gt;&gt; authenticacion server page.<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; Regards,<br>&gt; &gt;&gt; Osvaldo<br>&gt; &gt;&gt;<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; On Mon, Dec 15, 2008 at 1:01 PM, Chris Rowson<br>&gt; &gt;&gt; &lt;christopherrowson@gmail.com&gt; wrote:<br>&gt; &gt;&gt; &gt; Hi:<br>&gt; &gt;&gt; &gt;&gt;<br>&gt; &gt;&gt; &gt;&gt; I just setup wifidog on an ubuntu 8.04 machine. There I setup both,<br>&gt; &gt;&gt; &gt;&gt; the gateway and the auth-server.<br>&gt; &gt;&gt; &gt;&gt; Then, I setup a virtualbox virtual machine which is supposed to use<br>&gt; &gt;&gt; &gt;&gt; the wifidog gateway in order to gain access to Internet.<br>&gt; &gt;&gt; &gt;&gt; The problem is that wifidog starts, setup the iptables rules, but the<br>&gt; &gt;&gt; &gt;&gt; virtual machine keeps on having access to Intenet.<br>&gt; &gt;&gt; &gt;&gt; The setup is something like this:<br>&gt; &gt;&gt; &gt;&gt; &lt;internet&gt; - &lt;ubuntu-gw&gt; - &lt;ubuntu-virtual interface&gt; -<br>&gt; &gt;&gt; &gt;&gt; &lt;virtual-machine interface&gt; - &lt;virtual machine&gt;<br>&gt; &gt;&gt; &gt;&gt; Without wifidog, the virtual machine is able to surf the Internet<br>&gt; &gt;&gt; &gt;&gt; thanks to an iptables MASQUERADE command. As soon as the wifidog is<br>&gt; &gt;&gt; &gt;&gt; started, I asumed the conection between the virtual machine and<br>&gt; &gt;&gt; &gt;&gt; Internet should be interrupted but that's not happening.<br>&gt; &gt;&gt; &gt;&gt; Could anyone point me on what i'm doing wrong?<br>&gt; &gt;&gt; &gt;&gt; I installed wifidog using the cvs version and setup the validation<br>&gt; &gt;&gt; &gt;&gt; grace period to 2 seconds.<br>&gt; &gt;&gt; &gt;&gt; Regards,<br>&gt; &gt;&gt; &gt;&gt; Osvaldo<br>&gt; &gt;&gt; &gt;&gt; _______________________________________________<br>&gt; &gt;&gt; &gt;<br>&gt; &gt;&gt; &gt;<br>&gt; &gt;&gt; &gt; Chris<br>&gt; &gt;&gt; &gt; _______________________________________________<br>&gt; &gt;&gt; &gt; WiFiDog mailing list<br>&gt; &gt;&gt; &gt; WiFiDog@listes.ilesansfil.org<br>&gt; &gt;&gt; &gt; http://listes.ilesansfil.org/cgi-bin/mailman/listinfo/wifidog<br>&gt; &gt;&gt; &gt;<br>&gt; &gt;&gt; _______________________________________________<br>&gt; &gt;&gt; WiFiDog mailing list<br>&gt; &gt;&gt; WiFiDog@listes.ilesansfil.org<br>&gt; &gt;&gt; http://listes.ilesansfil.org/cgi-bin/mailman/listinfo/wifidog<br>&gt; &gt;<br>&gt; &gt; ________________________________<br>&gt; &gt; Send e-mail faster without improving your typing skills. Get your Hotmail(R)<br>&gt; &gt; account.<br>&gt; &gt; _______________________________________________<br>&gt; &gt; WiFiDog mailing list<br>&gt; &gt; WiFiDog@listes.ilesansfil.org<br>&gt; &gt; http://listes.ilesansfil.org/cgi-bin/mailman/listinfo/wifidog<br>&gt; &gt;<br>&gt; _______________________________________________<br>&gt; WiFiDog mailing list<br>&gt; WiFiDog@listes.ilesansfil.org<br>&gt; http://listes.ilesansfil.org/cgi-bin/mailman/listinfo/wifidog<br><br /><hr />You live life online. So we put Windows on the web.  <a href='http://clk.atdmt.com/MRT/go/127032869/direct/01/' target='_new'>Learn more about Windows Live </a></body>
</html>