douyun1860 2013-04-28 07:54
浏览 51
已采纳

使用其他功能在linux中设计Hotspot

I am doing my B.tech Major project and designing a hotspot s/w for linux server . It includes following features : 1. Bandwidth monitoring : I have to monitor how much bandwidth a particular user is using.I have taken help for this from Easy Hot spot.

  1. Block the particular Website to the user
  2. Keep Tracking of the log on the user side : It shows which websites user have accessed and what data he has uploaded on which website.

First feature I have done using Free Radius and chilliSpot but I need your help for remaining two that which technology I should use for the remaining features?

  • 写回答

1条回答 默认 最新

  • douba4933 2013-04-29 03:02
    关注

    For blocking, you can just add their IP to iptables.

    # drop any packets from this guy.
    iptables -A INPUT --src 99.99.99.99 -j DROP
    # Change the -A to a -D to delete
    

    For tracking data, you could use iptables too, but that might be too low level. Instead, you could have iptables re-direct their packets to a transparent squid/varnish/whatever proxy. The proxy can do the logging.

    # transparent redirect all NAT traffic to our local squid proxy on 8080.
    iptables -t nat -A PREROUTING --src 99.99.99.99 -p tcp -j REDIRECT --to-ports 8080
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 乘性高斯噪声在深度学习网络中的应用
  • ¥15 运筹学排序问题中的在线排序
  • ¥15 关于docker部署flink集成hadoop的yarn,请教个问题 flink启动yarn-session.sh连不上hadoop,这个整了好几天一直不行,求帮忙看一下怎么解决
  • ¥30 求一段fortran代码用IVF编译运行的结果
  • ¥15 深度学习根据CNN网络模型,搭建BP模型并训练MNIST数据集
  • ¥15 C++ 头文件/宏冲突问题解决
  • ¥15 用comsol模拟大气湍流通过底部加热(温度不同)的腔体
  • ¥50 安卓adb backup备份子用户应用数据失败
  • ¥20 有人能用聚类分析帮我分析一下文本内容嘛
  • ¥30 python代码,帮调试,帮帮忙吧