LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   Setting up a Linix Server as a proxy server (http://www.linuxquestions.org/questions/linux-software-2/setting-up-a-linix-server-as-a-proxy-server-284592/)

Bill Fox 01-31-2005 03:05 PM

Setting up a Linix Server as a proxy server
 
I have a Linux Server setup with two NIC cards eth0 is connected to ADSL via DHCP, eth0 is using a fixed IP 192.168.2.200 - I will have three or four other computers hooked into this network connecting to the Server. I want to be able to connect to the internet via the Linux Server from any of the connected clients. I have searched and found a product called Squid that looks like it might do that job.
I'm using Fedora Core 3 is this the best product to do this or are there other better solutions?

jlinkels 01-31-2005 08:47 PM

iptables is your friend.

Browse for documentation on www.netfilter.org

Use one of the example scripts. You want to do masquerading.

If you'd be using Debian, you could have installed ipmasq. This is a fully automatic (yet customizable) installation of iptables and masquerading. Not sure it exists in Fedora as well.

jlinkels

jiml8 01-31-2005 09:38 PM

You can do it with iptables, but you can also use squid, which is a caching proxy server that isn't difficult to set up.

http://www.faqs.org/docs/securing/chap28sec227.html

You can set up a masquerading firewall using this script, which can also be configured to handle your internet connection sharing:

http://freshmeat.net/projects/endoshield/


All times are GMT -5. The time now is 07:13 AM.