开发者

how to simulate firwalls and proxies when developing code? [closed]

开发者 https://www.devze.com 2023-03-18 02:04 出处:网络
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references,or expertise, but this question will likely solicit debate, a
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, argumen开发者_如何学Pythonts, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 10 years ago.

I am writing code that often has to work in restricted environment. I sometimes code at home, where it works nicely and the moment I put it to test at work, McAfee or some other firewall blocks it. Sometimes it is not possible to disable such protection.

I need a test suite for my home development environment where I can simulate all these restrictions without having to install all of them myself (for instance it is my experience that it is very hard/impossible to clean all traces of mcafee once you have installed it). I also need to simulate proxy servers.

I am writing code in Java if it helps.

[EDIT: so some Java library for this would be great]


You could use VMware (or VirtualBox) with different test-setups.


Try node.js. Also have a look at a sample proxy implementation

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号