Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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]

like image 301
Jus12 Avatar asked Nov 26 '22 11:11

Jus12


1 Answers

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

like image 155
Juri Robl Avatar answered Dec 05 '22 19:12

Juri Robl