我热切希望有人能帮我解决我遇到的问题。我是一名程序员,对 Linux 系统管理员术语/概念了解甚少。我正在尝试解决我的网站的问题。这是一个 Facebook 应用程序,每当我尝试使用 Chrome 连接时,都会收到一条错误消息,提示“连接已重置”。我已经连续四天在 Google 上搜索这个问题的解决方案,但毫无进展。问题很大一部分在于我不理解所使用的术语,而且许多引用的工具的输出对我来说同样难以理解。
我正在运行装有 CentOS 5、apache、PHP 和 MySQL 的 VPS。
我可以用来自我的 iptables、apache 等的大量信息来轰炸这个帖子,但如果有人需要来自我的服务器的信息,请告诉我如何获取,我会将其发布在这里。
感谢您提供的任何帮助!
Apache 访问日志:
199.195.214.49 - - [10/Sep/2012:07:03:25 -0600] "GET / HTTP/1.1" 200 248 "-" "Mozilla/5.0 (Windows NT 5.1) AppleWebKit/535.11 (KHTML, like Gecko) Chrome/17.0.963.56 Safari/535.11"
199.195.214.49 - - [10/Sep/2012:07:03:30 -0600] "GET / HTTP/1.1" 200 248 "-" "Mozilla/5.0 (Windows NT 5.1) AppleWebKit/535.11 (KHTML, like Gecko) Chrome/17.0.963.56 Safari/535.11"
199.195.214.49 - - [10/Sep/2012:07:03:44 -0600] "GET / HTTP/1.1" 200 248 "-" "Mozilla/5.0 (Windows NT 5.1) AppleWebKit/535.11 (KHTML, like Gecko) Chrome/17.0.963.56 Safari/535.11"
199.195.214.49 - - [10/Sep/2012:07:03:44 -0600] "GET / HTTP/1.1" 200 248 "-" "Mozilla/5.0 (Windows NT 5.1) AppleWebKit/535.11 (KHTML, like Gecko) Chrome/17.0.963.56 Safari/535.11"
199.195.214.49 - - [10/Sep/2012:07:03:44 -0600] "GET / HTTP/1.1" 200 248 "-" "Mozilla/5.0 (Windows NT 5.1) AppleWebKit/535.11 (KHTML, like Gecko) Chrome/17.0.963.56 Safari/535.11"
199.195.214.49 - - [10/Sep/2012:08:24:49 -0600] "GET / HTTP/1.1" 200 248 "-" "Mozilla/5.0 (Windows NT 5.1) AppleWebKit/535.11 (KHTML, like Gecko) Chrome/17.0.963.56 Safari/535.11"
199.195.214.49 - - [10/Sep/2012:08:24:55 -0600] "GET / HTTP/1.1" 200 248 "-" "Mozilla/5.0 (Windows NT 5.1) AppleWebKit/535.11 (KHTML, like Gecko) Chrome/17.0.963.56 Safari/535.11"
199.195.214.49 - - [10/Sep/2012:08:24:55 -0600] "GET / HTTP/1.1" 200 248 "-" "Mozilla/5.0 (Windows NT 5.1) AppleWebKit/535.11 (KHTML, like Gecko) Chrome/17.0.963.56 Safari/535.11"
199.195.214.49 - - [10/Sep/2012:08:24:57 -0600] "GET / HTTP/1.1" 200 248 "-" "Mozilla/5.0 (Windows NT 5.1) AppleWebKit/535.11 (KHTML, like Gecko) Chrome/17.0.963.56 Safari/535.11"
199.195.214.49 - - [10/Sep/2012:08:24:57 -0600] "GET / HTTP/1.1" 200 248 "-" "Mozilla/5.0 (Windows NT 5.1) AppleWebKit/535.11 (KHTML, like Gecko) Chrome/17.0.963.56 Safari/535.11"
199.195.214.49 - - [10/Sep/2012:08:24:57 -0600] "GET / HTTP/1.1" 200 248 "-" "Mozilla/5.0 (Windows NT 5.1) AppleWebKit/535.11 (KHTML, like Gecko) Chrome/17.0.963.56 Safari/535.11"
64.251.28.71 - - [10/Sep/2012:12:01:55 -0600] "GET / HTTP/1.1" 200 248 "-" "Mozilla/5.0 (Windows NT 5.1) AppleWebKit/535.11 (KHTML, like Gecko) Chrome/17.0.963.56 Safari/535.11"
64.251.28.71 - - [10/Sep/2012:12:01:57 -0600] "GET / HTTP/1.1" 200 248 "-" "Mozilla/5.0 (Windows NT 5.1) AppleWebKit/535.11 (KHTML, like Gecko) Chrome/17.0.963.56 Safari/535.11"
64.251.28.71 - - [10/Sep/2012:12:01:48 -0600] "GET / HTTP/1.1" 200 248 "-" "Mozilla/5.0 (Windows NT 5.1) AppleWebKit/535.11 (KHTML, like Gecko) Chrome/17.0.963.56 Safari/535.11"
64.251.28.71 - - [10/Sep/2012:12:01:59 -0600] "GET / HTTP/1.1" 200 248 "-" "Mozilla/5.0 (Windows NT 5.1) AppleWebKit/535.11 (KHTML, like Gecko) Chrome/17.0.963.56 Safari/535.11"
64.251.28.71 - - [10/Sep/2012:12:02:00 -0600] "GET / HTTP/1.1" 200 248 "-" "Mozilla/5.0 (Windows NT 5.1) AppleWebKit/535.11 (KHTML, like Gecko) Chrome/17.0.963.56 Safari/535.11"
64.251.28.71 - - [10/Sep/2012:12:02:01 -0600] "GET / HTTP/1.1" 200 248 "-" "Mozilla/5.0 (Windows NT 5.1) AppleWebKit/535.11 (KHTML, like Gecko) Chrome/17.0.963.56 Safari/535.11"
76.251.107.143 - - [10/Sep/2012:12:18:07 -0600] "POST /?fb_source=bookmark_apps&ref=bookmarks&count=0&fb_bmpos=2_0 HTTP/1.1" 200 5088 "http://apps.facebook.com/railsmp/?fb_source=bookmark_apps&ref=bookmarks&count=0&fb_bmpos=2_0" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.1 (KHTML, like Gecko) Chrome/21.0.1180.89 Safari/537.1"
76.251.107.143 - - [10/Sep/2012:12:18:25 -0600] "GET /style/bgdesert.jpg HTTP/1.1" 404 2391 "http://railsmp.us/?fb_source=bookmark_apps&ref=bookmarks&count=0&fb_bmpos=2_0" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.1 (KHTML, like Gecko) Chrome/21.0.1180.89 Safari/537.1"
76.251.107.143 - - [10/Sep/2012:12:18:30 -0600] "POST /index/difficulty-level?user_id=100000818220013 HTTP/1.1" 200 4155 "http://apps.facebook.com/railsmp/index/difficulty-level?user_id=100000818220013" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.1 (KHTML, like Gecko) Chrome/21.0.1180.89 Safari/537.1"
76.251.107.143 - - [10/Sep/2012:12:18:35 -0600] "POST /index/new-game HTTP/1.1" 302 - "http://railsmp.us/index/difficulty-level?user_id=100000818220013" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.1 (KHTML, like Gecko) Chrome/21.0.1180.89 Safari/537.1"
76.251.107.143 - - [10/Sep/2012:12:18:36 -0600] "GET /turn/start-select-city HTTP/1.1" 200 58315 "http://railsmp.us/index/difficulty-level?user_id=100000818220013" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.1 (KHTML, like Gecko) Chrome/21.0.1180.89 Safari/537.1"
Apache 错误日志:
[Tue Sep 04 14:31:35 2012] [error] [client 76.251.107.143] CSRF state token does not match one provided., referer: http://railsmp.us/turn/start-select-city
[Tue Sep 04 14:32:20 2012] [error] [client 76.251.107.143] CSRF state token does not match one provided., referer: http://railsmp.us/turn/start-select-city
[Tue Sep 04 14:32:30 2012] [error] [client 76.251.107.143] CSRF state token does not match one provided., referer: http://railsmp.us/turn/start-select-city
[Tue Sep 04 14:36:59 2012] [error] [client 76.251.107.143] CSRF state token does not match one provided., referer: http://railsmp.us/turn/start-select-city
[Tue Sep 04 14:39:13 2012] [error] [client 76.251.107.143] CSRF state token does not match one provided., referer: http://railsmp.us/turn/start-select-city
[Tue Sep 04 14:39:44 2012] [error] [client 76.251.107.143] CSRF state token does not match one provided., referer: http://railsmp.us/turn/start-select-city
[Tue Sep 04 14:39:51 2012] [error] [client 76.251.107.143] CSRF state token does not match one provided., referer: http://railsmp.us/turn/start-select-city
[Tue Sep 04 14:39:58 2012] [error] [client 76.251.107.143] CSRF state token does not match one provided., referer: http://railsmp.us/turn/start-select-city
[Tue Sep 04 14:40:06 2012] [error] [client 76.251.107.143] CSRF state token does not match one provided., referer: http://railsmp.us/turn/start-select-city
[Tue Sep 04 16:17:43 2012] [error] [client 76.251.107.143] CSRF state token does not match one provided., referer: http://railsmp.us/turn/start-select-city
[Tue Sep 04 16:23:35 2012] [error] [client 76.251.107.143] CSRF state token does not match one provided., referer: http://railsmp.us/turn/start-select-city
[Tue Sep 04 23:14:57 2012] [error] [client 76.251.107.143] CSRF state token does not match one provided., referer: http://railsmp.us/turn/start-select-city
[Tue Sep 04 23:15:05 2012] [error] [client 76.251.107.143] CSRF state token does not match one provided., referer: http://railsmp.us/turn/start-select-city
[Tue Sep 04 23:15:12 2012] [error] [client 76.251.107.143] CSRF state token does not match one provided., referer: http://railsmp.us/turn/start-select-city
[Tue Sep 04 23:15:25 2012] [error] [client 76.251.107.143] CSRF state token does not match one provided., referer: http://railsmp.us/turn/start-select-city
[Tue Sep 04 23:24:47 2012] [error] [client 76.251.107.143] CSRF state token does not match one provided., referer: http://railsmp.us/turn/start-select-city
[Wed Sep 05 17:09:04 2012] [error] [client 208.127.18.112] CSRF state token does not match one provided., referer: http://railsmp.us/turn/start-select-city
[Wed Sep 05 17:09:13 2012] [error] [client 208.127.18.112] CSRF state token does not match one provided., referer: http://railsmp.us/turn/start-select-city
[Wed Sep 05 17:09:25 2012] [error] [client 208.127.18.112] CSRF state token does not match one provided., referer: http://railsmp.us/turn/start-select-city
[Wed Sep 05 17:17:57 2012] [error] [client 208.127.18.112] CSRF state token does not match one provided., referer: http://railsmp.us/turn/start-select-city
[Thu Sep 06 00:11:49 2012] [error] [client 76.251.107.143] CSRF state token does not match one provided., referer: http://railsmp.us/turn/start-select-city
[Thu Sep 06 00:12:44 2012] [error] [client 76.251.107.143] CSRF state token does not match one provided., referer: http://railsmp.us/turn/start-select-city
答案1
看起来您使用/实施的用于防止跨站点请求伪造的令牌未通过验证。这可能是您的连接被重置,作为一项预防措施,以防止攻击者发出非法请求。