<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Proxy server setup in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/proxy-server-setup/m-p/2690263#M89956</link>
    <description>Ok if RedHat 7.2 doesn't come out of the box with iptables set up that may be my problem. I'll try all the suggestions all of you have made. Thanks; now I have to figure out how to recompile the kernel with iptables enabled. Maybe a trip to the book store will help.</description>
    <pubDate>Tue, 26 Mar 2002 13:45:45 GMT</pubDate>
    <dc:creator>Vernon Brown_2</dc:creator>
    <dc:date>2002-03-26T13:45:45Z</dc:date>
    <item>
      <title>Proxy server setup</title>
      <link>https://community.hpe.com/t5/operating-system-linux/proxy-server-setup/m-p/2690257#M89950</link>
      <description>I'm trying to set up a proxy server for my home network of 3 Windose computers. The proxy is running RedHat 7.2 and is a HP 8500. I have the network set up and working locally and I can get to the internet from the proxy server. Have not been able to configure it so that the local network can get to the internet.&lt;BR /&gt;&lt;BR /&gt;I had this set up once before but have lost the instructions. I think I used an application called "pump". Haven't been able to find the internet location where I got the instructions.&lt;BR /&gt;&lt;BR /&gt;Can anyone give me a clue.</description>
      <pubDate>Mon, 25 Mar 2002 20:55:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/proxy-server-setup/m-p/2690257#M89950</guid>
      <dc:creator>Vernon Brown_2</dc:creator>
      <dc:date>2002-03-25T20:55:01Z</dc:date>
    </item>
    <item>
      <title>Re: Proxy server setup</title>
      <link>https://community.hpe.com/t5/operating-system-linux/proxy-server-setup/m-p/2690258#M89951</link>
      <description>Some additional info:&lt;BR /&gt;&lt;BR /&gt;My proxy server has two eithernet cards one connected to my local LAN and the other to the internet through a StarBand 360 dish modem. I can duel boot the proxy between Windows 98 and RedHat Linux 7.2. Proxy works with windows WinProxy, not yet with Linux.</description>
      <pubDate>Mon, 25 Mar 2002 21:36:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/proxy-server-setup/m-p/2690258#M89951</guid>
      <dc:creator>Vernon Brown_2</dc:creator>
      <dc:date>2002-03-25T21:36:27Z</dc:date>
    </item>
    <item>
      <title>Re: Proxy server setup</title>
      <link>https://community.hpe.com/t5/operating-system-linux/proxy-server-setup/m-p/2690259#M89952</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;I think your question needs an explanation.&lt;BR /&gt;&lt;BR /&gt;Using your hardware configuration (2 lan cards), there are 2 ways to do what you want :&lt;BR /&gt;&lt;BR /&gt;1. Proxy configuration&lt;BR /&gt;&lt;BR /&gt;With this method, your Linux box runs a special software that is specifically designed to relay requests from the "intranet" (your windows boxes) to the "internet".&lt;BR /&gt;There are many proxy softwares, depending on what you want to relay. For example, "squid" (&lt;A href="http://www.squid-cache.org)" target="_blank"&gt;http://www.squid-cache.org)&lt;/A&gt; is the best proxy software for http/ftp requests.&lt;BR /&gt;&lt;BR /&gt;2. Simple router&lt;BR /&gt;&lt;BR /&gt;In this configuration, your Linux box with 2 lan cards acts as a router (a gateway). Therefore, it relays IP packets from one world to another (from internet to intranet and vice-versa).&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Both methods are secure and also both methods can be unsecure if you don't know how to do things the right way, and at last both methods can get very complex depending on what level of security you want to reach.&lt;BR /&gt;&lt;BR /&gt;For the 1st method, the best way is to read the documentation of the proxy software (in case of squid : &lt;A href="http://www.squid-cache.org)." target="_blank"&gt;www.squid-cache.org).&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;To get the 2nd method working well, you need some network security basic knowledge.&lt;BR /&gt;&lt;BR /&gt;Quick'n dirty : suppose that eth0 is connected to "intranet" and "eth1" is on "internet" :&lt;BR /&gt;&lt;BR /&gt;=&amp;gt; Use this (optional) firewall rule to prevent incoming connctions&lt;BR /&gt;&lt;BR /&gt;iptables -t filter -A INPUT -i eth1 -m state --state NEW,INVALID -j DROP&lt;BR /&gt;&lt;BR /&gt;=&amp;gt; Use this (mandatory) firewall rule to "translate" your internal IP addresses into IPs compatible with the Internet rules :&lt;BR /&gt;&lt;BR /&gt;iptables -t nat -A POSTROUTING -o eth1 -j MASQUERADE&lt;BR /&gt;&lt;BR /&gt;=&amp;gt; Use this command to activate routing between internal and external worlds :&lt;BR /&gt;&lt;BR /&gt;echo "1" &amp;gt;/proc/sys/net/ipv4/ip_forward&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Of course, if you need some explanations on this, do not hesitate to post another question.&lt;BR /&gt;&lt;BR /&gt;A good reference for security is an O'Reilly book :&lt;BR /&gt;&lt;BR /&gt;Building Internet Firewalls (2nd Edition)&lt;BR /&gt;by Elizabeth D. Zwicky, Simon Cooper, D. Brent Chapman, Deborah Russell&lt;BR /&gt;&lt;BR /&gt;Good luck.&lt;BR /&gt;&lt;BR /&gt;Kodjo&lt;BR /&gt;</description>
      <pubDate>Mon, 25 Mar 2002 23:22:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/proxy-server-setup/m-p/2690259#M89952</guid>
      <dc:creator>Kodjo Agbenu</dc:creator>
      <dc:date>2002-03-25T23:22:50Z</dc:date>
    </item>
    <item>
      <title>Re: Proxy server setup</title>
      <link>https://community.hpe.com/t5/operating-system-linux/proxy-server-setup/m-p/2690260#M89953</link>
      <description>Thanks; that gives me some places to look. What I want is just to get a way to the internet from my LAN. The most simple way. After I get that working I can explore ways to make it secure.&lt;BR /&gt;&lt;BR /&gt;When I did this before it only took three lines of code in one of the startup scripts. Thanks for your help.</description>
      <pubDate>Tue, 26 Mar 2002 00:25:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/proxy-server-setup/m-p/2690260#M89953</guid>
      <dc:creator>Vernon Brown_2</dc:creator>
      <dc:date>2002-03-26T00:25:34Z</dc:date>
    </item>
    <item>
      <title>Re: Proxy server setup</title>
      <link>https://community.hpe.com/t5/operating-system-linux/proxy-server-setup/m-p/2690261#M89954</link>
      <description>I suspect you were looking for "Rusty's three line guide to masquerading" (or something like that. As I recall, that covered ipchains.&lt;BR /&gt;&lt;BR /&gt;The answer you are after is right there in Kodjo's answer, it just covers the newer iptables.&lt;BR /&gt;&lt;BR /&gt;Run the two iptables commands he has given you, then run the one starting echo "1" &amp;gt;&lt;BR /&gt;&lt;BR /&gt;Presto, you will have masquerading, which is probably all you want.&lt;BR /&gt;&lt;BR /&gt;You can work out how to make this survive reboots (hint: use the proper RH config files, don't just stick them on the end of rc.local)&lt;BR /&gt;&lt;BR /&gt; - Lindsay</description>
      <pubDate>Tue, 26 Mar 2002 01:29:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/proxy-server-setup/m-p/2690261#M89954</guid>
      <dc:creator>Lindsay Hill</dc:creator>
      <dc:date>2002-03-26T01:29:50Z</dc:date>
    </item>
    <item>
      <title>Re: Proxy server setup</title>
      <link>https://community.hpe.com/t5/operating-system-linux/proxy-server-setup/m-p/2690262#M89955</link>
      <description>Vernon, &lt;BR /&gt;&lt;BR /&gt;RH 7.2 comes out of the box with only IP chains enabled -- you have to go in and reconfigure the kernel to get iptables up and running. &lt;BR /&gt;&lt;BR /&gt;I appreciate your situation, I keep on forgetting which commands I used where to get my network setup the way I liked. Iptables is definately a better firewalling/nat solution than ipchains as it will allow for true nat without having to run any additional programs. Plenty of information out there on how to set things up:&lt;BR /&gt;&lt;A href="http://www.linuxdocs.org" target="_blank"&gt;http://www.linuxdocs.org&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://www.netfilter.org" target="_blank"&gt;http://www.netfilter.org&lt;/A&gt;&lt;BR /&gt;or if you want to download a sample firewall package, try&lt;BR /&gt;&lt;A href="http://freshmeat.net" target="_blank"&gt;http://freshmeat.net&lt;/A&gt; and search on firewall.&lt;BR /&gt;&lt;BR /&gt;Best regards.&lt;BR /&gt;Mark</description>
      <pubDate>Tue, 26 Mar 2002 02:53:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/proxy-server-setup/m-p/2690262#M89955</guid>
      <dc:creator>Mark Fenton</dc:creator>
      <dc:date>2002-03-26T02:53:58Z</dc:date>
    </item>
    <item>
      <title>Re: Proxy server setup</title>
      <link>https://community.hpe.com/t5/operating-system-linux/proxy-server-setup/m-p/2690263#M89956</link>
      <description>Ok if RedHat 7.2 doesn't come out of the box with iptables set up that may be my problem. I'll try all the suggestions all of you have made. Thanks; now I have to figure out how to recompile the kernel with iptables enabled. Maybe a trip to the book store will help.</description>
      <pubDate>Tue, 26 Mar 2002 13:45:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/proxy-server-setup/m-p/2690263#M89956</guid>
      <dc:creator>Vernon Brown_2</dc:creator>
      <dc:date>2002-03-26T13:45:45Z</dc:date>
    </item>
  </channel>
</rss>

