Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/batch-file/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Selenium webdriver 限制selenium 2端口-仅限本地主机-无外部IP访问_Selenium Webdriver_Firewall - Fatal编程技术网

Selenium webdriver 限制selenium 2端口-仅限本地主机-无外部IP访问

Selenium webdriver 限制selenium 2端口-仅限本地主机-无外部IP访问,selenium-webdriver,firewall,Selenium Webdriver,Firewall,我在VPS中有一个headless设置,selenium服务器可以在没有X服务器的情况下运行。但是,selenium端口可以通过internet上的端口444访问 是否可以只允许localhost:4444,不允许外部访问?无论是selenium命令行选项还是防火墙/ip表选项 在进行测试时,我通常让4444端口打开2-3个小时,我担心在该端口上受到攻击 我正在使用selenium-server-standalone-2.32.0.jar和behat+mink 谢谢为什么不尝试使用iptable

我在VPS中有一个headless设置,selenium服务器可以在没有X服务器的情况下运行。但是,selenium端口可以通过internet上的端口444访问

是否可以只允许localhost:4444,不允许外部访问?无论是selenium命令行选项还是防火墙/ip表选项

在进行测试时,我通常让4444端口打开2-3个小时,我担心在该端口上受到攻击

我正在使用selenium-server-standalone-2.32.0.jar和behat+mink


谢谢

为什么不尝试使用iptables或等效工具关闭WAN接口上的端口?
如果你和只有你,需要使用互联网访问它,考虑安装一个VPN。

我不确定这是否可以:这是我正在使用的,它工作到目前为止,所以是的,它使用的是IPTABLE。