Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Apache as proxy and mail in intranet

Status
Not open for further replies.

kio

Technical User
Jul 25, 2002
5
AR
I have created a small intranet using Apache 1.3.24
I added with success PHP + CGI + and VirtualHosts, etc. To share the access to Internet I loaded the Proxy service that has Apache.
Everything works correctly. The IE 6 in the clients browse without problems, but I have difficulties (in fact I am not sure if it is possible to make it) to allow that Outlook Express can use the proxy of Apache to send and to receive mail.
My current Apache proxy Directive look this:

<IfModule mod_proxy.c>
ProxyRequests On
<Directory proxy:*>
Order deny,allow
Deny from all
Allow from mak2 mak3
</Directory>
ProxyVia On
CacheRoot &quot;x:/Apache/proxy&quot;
CacheSize 5
CacheGcInterval 4
CacheMaxExpire 24
CacheLastModifiedFactor 0.1
CacheDefaultExpire 1
NoCache
</IfModule>

In IE6 (in the clients - mak1 -mak3) Internet Options-Conexion-Lan :proxy settings--> 192.168.0.5 port 80 for all protocols (192.168.0.5 is IP Machine where Apache are running)
In Outlook i setting defaults smtp and pop 3 for my ISP provider
Somebody has solution for this ? sorry by me english
 
What does your LAN look like? And what computer/router is connected to the internet?
The router/computer connected to the internet would have to use NAT, since you are using addresses in the private IP block. //Daniel
 
Daniel:
Maybe I not very explicit. I use Apache 1.3.26 for Win32 over Win98SE
At the moment only I am testing, looks at the following example

PC1: DialUp conection + Apache 1.3.26 + Win98SE + Proxy Directives enabled. IP 192.168.0.5, Host: kio.ods.org

PC2: Host: Mak2 IP 192.168.0.2 Not Internet conections. IE6 use LAN-Proxy settings (all protocols 192.168.0.5:80)

PC3: Host: Mak3 IP 192.168.0.3 not Internet conections. IE6 use LAN-Proxy settings (all protocols 192.168.0.5:80)


sorry by me english
 
To give the PC2 and PC3 computers access to the internet, their default gateway would have to be the PC1. PC1 would also have to be setup to use NAT and would also have to be setup to forward the packages to the other computers. Since you're using Win98SE I doubt that all of this is possible. Also, I supposed you have a router or similar since you are getting IP addresses from somewhere and Win98SE does not have support for that, at least not the version I have. //Daniel
 
I'm not sure if this has much to do with your problem but I think the default port for proxy is 8080.
 
Thanks Daniel,
I dont know what is NAT,
The problem not is very important for me, only i was curious? if are possible.
I replace Proxy functions in Apache for a litle proxy program from AnalogX software, designed for Win32
But i repeat, with Apache proxy browse http y ftp sites work fine, the error is whit Outlook and other Internet
and Sock4/5 Aplications, ICQ . netmeeting, etc
Remember, sorry me english sorry by me english
 
NAT means Network Address Translation. It is needed for the gateway to translate the internal addresses to the address that you have on the internet. Proxies only handles protocols like FTP, HTTP and Gopher, hence other protocols will fail unless PC1 is setup as a gateway. This really doesn't have much to do with Apache, and the easiest thing would be to get a small router thats splits the connection amongst your computers. //Daniel
 
Thanks again, for your patient, of course. Now i understand a litle more sorry by me english
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top