Web server on Raspberry Pi between cable/ADSL ISP modem and firewall/router

Line One
Line One used Ask the Experts™
on
I want to build a software Web server on a Raspberry Pi running Linux and then place it directly between an existing firewall and a cable/ADSL ISP modem.  The idea is that if via my dynamic IP I could access the Web server on my Pi but otherwise all traffic would flow through to the existing firewall and then through to my home system. I do not want to have to open any ports/make any modification in the existing firewall.  The Raspberry will have two NIC's - the on-board one and then one that works through the USB.  Is this possible and if so how would I do it? I know there are lots of firewall apps for Linux - not sure if that would be necessary here but if it is then I would be willing to implement it. Again, I do not want to make any changes to the current firewall, the only traffic I want to interrupt is to my Web Server and if it has to be on some strange port not usually associated with a Web Server so be it. Also if there is a 'Linux software appliance' distribution that I could install on the Pi that would also let me add a Web Server that would be ok as well.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
IT Business Systems Analyst / Software Developer
Top Expert 2015
Commented:
My impression is that you could get this to work, but I wouldn't be confident with the speeds that you might get, considering all your traffic needs to go through the PI. For one, the PI's internal NIC is connected (internally) via USB and so adding a second USB NIC means that they will both be competing for USB bandwidth. I was originally going to say that it possibly wouldn't work suitably at all, but I found some threads that might indicate that you can get some reasonable speed out of it (https://github.com/raspberrypi/linux/issues/301), it just looks like it depends on getting the right USB NIC.

I can't help you with the software side. A long time ago, I setup a Linux box as a firewall/router, but I did this just using the basic Linux tools available, ie. iptables, etc. I'm not sure what distro's are around at the moment that a) works on the PI and b) might help save time setting it up.

Author

Commented:
Thanks.
mccarlIT Business Systems Analyst / Software Developer
Top Expert 2015

Commented:
You're welcome!

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial