|
From: Ilya E. <il...@gl...> - 2008-09-29 17:42:29
|
Make sure you have IP forwarding turned of in the kernel: cat /proc/sys/net/ipv4/ip_forward should return 0. Otherwise, do: echo 0 > /proc/sys/net/ipv4/ip_forward To set host netmask on your inner interface you should do something like this: ifconfig eth1 netmask 255.255.255.255 If these measures do not help, please, let me see the output of: ifconfig -a netstat -rn commands and your sweetspot.conf configuration file. -ilya > I have installed sweetspot in test Centos machine and I can not get the > captive portal part to work. I have set dnat to our public web server > for authentication, but the http traffic still goes straight through the > router and out to the internet. > > My test lab is I have a centos box with an eth0 and eth1 card. Eth0 goes > out to the internet and eth1 is where the private network is that had a > test laptop as a broadband user. I configured (as much as I could > understand for your instructions) the anonymous, sweetspot.conf and > sweetuam.conf files and ran /usr/local/etc/sweetspot. > > The only thing I can see is that I have set host to subnet > (255.255.255.255) netmask on the inner sweetspot interface to force web > server response packets going to external interface. I guess Im not > really sure what you mean by this or how to implement. Are you able to > give me an example how I would implement such a configuration? |