what I did was edit a file I had (called kiss 2.0) which is basically a
script to set up a firewall
I added a line that forwarder requests for port 80 to port 81
if anybody wants me to send them this script (which will allow you to
have a descent firewall, along with permissions to redirect incoming
requests for port 80 to port 81), please let me know
Regards
Xavier Baez C.
www.SoccerAccess.net
ICQ: 9103394
MSN: xbaez@hotmail.com
Sunil S wrote:
>With Squid (this is applicable to versions earlier than squid-3.0)
>
>In squid.conf, look for TAG: redirect_program - it can be any external executable which reads a line from STDIN and prints transformed output to STDOUT, in your case, it should transform http://www.socceraccess.com to http://localhost:81 (where apache is listening).
>
>Ensure that the external script / executable does not buffer on STDOUT..
>
>Regards
>
>Sunil
>
>
>
>
>>>>Xavier Baez <tech@socceraccess.net> 04/07/04 08:00PM >>>
>>>>
>>>>
>ok
>So I should redirect with Apache or with Squid??
>
>I am really close to acomplish this
>
>Thanks for your support
>
>Regards
>
>Xavier Baez C.
>www.SoccerAccess.net
>ICQ: 9103394
>MSN: xbaez@hotmail.com
>
>
>Sunil S wrote:
>
>
>
>>Dear Xavier,
>>
>>Please have a look at redirectors - when squid receive the URL from the client, it will have to be re-written to the real URL. That is when the URL http://www.socceraccess.com, squid should fetch and give <A href="http://socceraccess.com:81.http://socceraccess.com:81. Please read about redirectors - you should be able to resolve it.
>>
>>Regards
>>
>>Sunil
>>
>>
>>
>>
>>
>>
>>>>>tech@socceraccess.net 04/07/04 10:27AM >>>
>>>>>
>>>>>
>>>>>
>>>>>
>>Dear Members
>>
>>
>>I followed the guidelines form the following URL (and coud understand
>>the whole process a bit better).
>>I changed Apache to port 81, and then I configured Squid to listen to
>>port 80
>>
>>However, I also configured squid to run http_accel... on port 81
>>
>>If I nmap to my box, I see the following:
>>
>>80/tcp open http
>>81/tcp open hosts2-ns
>>
>>However, when I go to www.socceraccess.com, I receive the following:
>>
>>While trying to retrieve the URL: http://64.246.24.58:81/
>>
>>The following error was encountered:
>>
>>* Access Denied.*
>>
>>The www.SoccerAccess.com site is only loading at the following URL:
>>www.socceraccess.net:81
>>
>>I will really appreciate if anybody could help me out. Here is some information you may need:
>>
>>1) When I run the following command: /usr/local/squid/sbin/squid -NCd1 I see the following output:
>>
>>2004/04/06 23:56:43| Starting Squid Cache version 2.5.STABLE5 for i686-pc-linux-gnu...
>>2004/04/06 23:56:43| Process ID 20914
>>2004/04/06 23:56:43| With 1024 file descriptors available
>>2004/04/06 23:56:43| Performing DNS Tests...
>>2004/04/06 23:56:43| Successful DNS name lookup tests...
>>2004/04/06 23:56:43| DNS Socket created at 0.0.0.0, port 52378, FD 4
>>2004/04/06 23:56:43| Adding nameserver 207.218.192.39 from /etc/resolv.conf
>>2004/04/06 23:56:43| Adding nameserver 207.218.192.38 from /etc/resolv.conf
>>2004/04/06 23:56:43| Unlinkd pipe opened on FD 9
>>2004/04/06 23:56:43| Swap maxSize 512000 KB, estimated 39384 objects
>>2004/04/06 23:56:43| Target number of buckets: 1969
>>2004/04/06 23:56:43| Using 8192 Store buckets
>>2004/04/06 23:56:43| Max Mem size: 5120 KB
>>2004/04/06 23:56:43| Max Swap size: 512000 KB
>>2004/04/06 23:56:43| Rebuilding storage in /usr/local/squid/var/cache (CLEAN)
>>2004/04/06 23:56:43| Using Least Load store dir selection
>>2004/04/06 23:56:43| Set Current Directory to /usr/local/squid/var/cache
>>2004/04/06 23:56:43| Loaded Icons.
>>2004/04/06 23:56:43| Accepting HTTP connections at 0.0.0.0, port 80, FD 10.
>>2004/04/06 23:56:43| WCCP Disabled.
>>2004/04/06 23:56:43| Ready to serve requests.
>>2004/04/06 23:56:43| Done scanning /usr/local/squid/var/cache swaplog (0 entries)
>>2004/04/06 23:56:43| Finished rebuilding storage from disk.
>>2004/04/06 23:56:43| 0 Entries scanned
>>2004/04/06 23:56:43| 0 Invalid entries.
>>2004/04/06 23:56:43| 0 With invalid flags.
>>2004/04/06 23:56:43| 0 Objects loaded.
>>2004/04/06 23:56:43| 0 Objects expired.
>>2004/04/06 23:56:43| 0 Objects cancelled.
>>2004/04/06 23:56:43| 0 Duplicate URLs purged.
>>2004/04/06 23:56:43| 0 Swapfile clashes avoided.
>>2004/04/06 23:56:43| Took 0.4 seconds ( 0.0 objects/sec).
>>2004/04/06 23:56:43| Beginning Validation Procedure
>>2004/04/06 23:56:43| Completed Validation Procedure
>>2004/04/06 23:56:43| Validated 0 Entries
>>2004/04/06 23:56:43| store_swap_size = 0k
>>2004/04/06 23:56:44| storeLateRelease: released 0 objects
>>
>>It seems like everything is working, check out this line:
>>Accepting HTTP connections at 0.0.0.0, port 80, FD 10. Therefore the whole internet should be able to browse through my pages.
>>
>>2) Here are the modified lines that my squid.conf file has:
>>http_port 80
>>icp_port 0
>>acl QUERY urlpath_regex cgi-bin \?
>>no_cache deny QUERY
>>cache_mem 5 MB
>>cache_dir ufs /usr/local/squid/var/cache 500 16 256
>>emulate_httpd_log on
>>redirect_rewrites_host_header off
>>cache_replacement_policy GDSF
>>http_access allow all
>>cache_mgr admin
>>cache_effective_user squid
>>cache_effective_group squid
>>httpd_accel_host 64.246.24.58
>>httpd_accel_port 81
>>log_icp_queries off
>>cachemgr_passwd xhbc19@2004 all
>>buffered_logs on
>>httpd_accel_with_proxy off
>>
>>
>>If I change the following line: httpd_accel_host 64.246.24.58 to this one: httpd_accel_host virtual
>>
>>I keep receiving the same problem.
>>
>>Thanks in advance for your time reading this :)
>>
>>-----------------
>>Xavier Báez C.
>>www.SoccerAccess.com
>>ICQ: 9103394
>>MSN: xbaez@hotmail.com
>>
>>
>>
>>
>>
>>
>>
>
>
>
>
Received on Sun Apr 11 2004 - 04:04:40 MDT
This archive was generated by hypermail pre-2.1.9 : Fri Apr 30 2004 - 12:00:02 MDT