本质上,我有一个摄像头设置在家里logging移动,我build立了一个基本的Apache服务器,以便我可以从外部访问存储的video。
服务器正在我的笔记本电脑上运行,我有端口fouarded笔记本电脑的IP端口80,然后我设置dynamic的DNS,所以我可以访问相同的域名,无论我的IP变化。
它已经运行了一天,当我检查访问日志,并看到一些真正的可疑活动: http : //pastebin.com/a8xSALaJ抱歉的长度,我不想删除任何微妙的重要..
我的Apacheconfiguration实际上是默认的,文件根在/ var / www / html
我有3个问题:
1 – 日志中是否有恶意/攻击者试图做什么(在152行有一个非常可疑的日志
access.log:1203:74.217.28.153 - - [19/Feb/2016:05:36:48 +0000] "GET http://pastebin.com/raw.php?i=GNsjKYy5 HTTP/1.1" 404 442 "-" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6"
2 – 我怎样才能防止这种types的攻击
3 – 这个人究竟是怎么find我的ip的? 我当然没有公布…
正如你可以告诉我的networking知识是相当基本的,但我真的想了解更多,所以任何信息将不胜感激!
UPDATE
自发布以来,我注意到一些特别有关 – 不知道如果这是相关的,试图做一个apache2 – 版本:
apache2 --version [Sat Feb 20 18:24:19.273672 2016] [core:warn] [pid 4942] AH00111: Config variable ${APACHE_LOCK_DIR} is not defined [Sat Feb 20 18:24:19.273756 2016] [core:warn] [pid 4942] AH00111: Config variable ${APACHE_PID_FILE} is not defined [Sat Feb 20 18:24:19.273778 2016] [core:warn] [pid 4942] AH00111: Config variable ${APACHE_RUN_USER} is not defined [Sat Feb 20 18:24:19.273796 2016] [core:warn] [pid 4942] AH00111: Config variable ${APACHE_RUN_GROUP} is not defined [Sat Feb 20 18:24:19.273826 2016] [core:warn] [pid 4942] AH00111: Config variable ${APACHE_LOG_DIR} is not defined [Sat Feb 20 18:24:19.276425 2016] [core:warn] [pid 4942:tid 139799541426048] AH00111: Config variable ${APACHE_LOG_DIR} is not defined [Sat Feb 20 18:24:19.276615 2016] [core:warn] [pid 4942:tid 139799541426048] AH00111: Config variable ${APACHE_LOG_DIR} is not defined [Sat Feb 20 18:24:19.276641 2016] [core:warn] [pid 4942:tid 139799541426048] AH00111: Config variable ${APACHE_LOG_DIR} is not defined AH00526: Syntax error on line 74 of /etc/apache2/apache2.conf: Invalid Mutex directory in argument file:${APACHE_LOCK_DIR}
你的第一个问题的答案是,很难说什么样的“攻击”正在发生或攻击者试图完成什么。
如果你看看日志里的条目,就会发现有些东西只是简单地请求一个网页。 如果你去那个网页,它包含文本stringformyproxycheckerandyquezhasabigdick 。
如果我们Google的服务器请求的URL,我们发现许多网站报告看到这个URL被请求。
看来这是用来刮擦和过滤代理。
http://pastebin.com/Qhb1eWXU http://urlquery.net/report.php?id=1453470052748
我会寻求帮助find并删除该计算机上的任何恶意软件。
现在对于第二个问题,看起来这些日志条目与直接运行Apache有关。 当你想启动Apache尝试使用下面的命令。
sudo service apache2 start
Apache2configurationvariables没有定义
你问人怎么能find你的设备。 说实话,如果你有你的网关设备上打开端口有人可能会find它。 如果你从来没有听说过Shodan,那么你应该Google,以便你了解正在发生的事情以及它如何影响你。
除非需要,否则不要打开端口,始终阻止端口扫描,并且不要在连接到Internet的任何设备上保留默认密码。