Restrict selenium 2 port - localhost only - no external IP access

a 夏天 提交于 2019-12-13 05:52:00

问题


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


回答1:


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.



来源:https://stackoverflow.com/questions/16206491/restrict-selenium-2-port-localhost-only-no-external-ip-access

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!