问题描述
我在VPS中有一个无头的设置,可以在其中运行Selenium服务器-无需X服务器.但是,可以通过Internet上的端口444访问硒端口.
是否有可能只允许localhost:4444而不允许外部访问?是selenium命令行选项还是防火墙/ip表选项.
在进行测试时,我通常会让端口4444像2-3小时一样打开,我担心会遭到该端口的攻击.
我正在使用selenium-server-standalone-2.32.0.jar和behat + mink.
谢谢
为什么不尝试使用iptables或同等功能在WAN接口上关闭端口?如果只有您自己,需要使用Internet进行访问,请考虑设置VPN.
I have a headless setup in a VPS where selenium server can run - without X server. However, the selenium port is accessible via port 444 across the internet.
Is it possible so that only localhost:4444 is only allowed and external access is not allowed? Be it selenium command line option or firewall/ip table option.
I usually let the port 4444 open like 2-3 hours while doing testing and I'm afraid of being attacked on that port.
I'm using selenium-server-standalone-2.32.0.jar and behat+mink.
Thanks
Why not trying to close port on WAN interface using iptables or equivalent ?If you and only you, need to access it using internet, consider setup a VPN.
这篇关于限制selenium 2端口-仅本地主机-无外部IP访问的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!