LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-24-2012, 03:20 AM   #1
nhexia
LQ Newbie
 
Registered: Aug 2012
Posts: 1

Rep: Reputation: Disabled
Talking Help Setup Squid,Iptables and Outlook


i am a newbie in iptables/squid/ and linux networking

heres my topology/network
=============================
ISP>Dlink Router
192.168.0.1
=============================
||
||
||
\/
=============================
Centos 5 Proxy Server
eth 0 : 192.168.0.253

share internet
to

eth 1 : 192.168.2.1
=============================
||
||
||
\/
=============================
Clients
192.168.2.100-192.168.2.125
=============================


#########################################
heres my script and code
#########################################


[=====iptables======]

=======================================================
# Generated by iptables-save v1.3.5 on Fri Aug 24 15:43:12 2012
*mangle
:PREROUTING ACCEPT [3184:246580]
:INPUT ACCEPT [3108:242069]
:FORWARD ACCEPT [76:4511]
:OUTPUT ACCEPT [5549:7162626]
:POSTROUTING ACCEPT [5625:7167137]
COMMIT
# Completed on Fri Aug 24 15:43:12 2012
# Generated by iptables-save v1.3.5 on Fri Aug 24 15:43:12 2012
*filter
:FORWARD ACCEPT [0:0]
:INPUT ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
-A INPUT -p tcp -m tcp --dport 11054:11064 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 21:22 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 80 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 110 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 25 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 3128 -j ACCEPT
-A FORWARD -i eth1 -j ACCEPT
-A FORWARD -o eth1 -j ACCEPT
COMMIT
# Completed on Fri Aug 24 15:43:12 2012
# Generated by iptables-save v1.3.5 on Fri Aug 24 15:43:12 2012
*nat
:OUTPUT ACCEPT [0:0]
:PREROUTING ACCEPT [0:0]
:POSTROUTING ACCEPT [0:0]
-A PREROUTING -p tcp -m tcp -i eth1 --dport 80 -j DNAT --to-destination 192.168.2.1:3128
-A POSTROUTING -o eth0 -j MASQUERADE
COMMIT
# Completed on Fri Aug 24 15:43:12 2012
=======================================================

[=====Squid======]

acl all src 0.0.0.0/0.0.0.0
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl to_localhost dst 127.0.0.0/8
acl SSL_ports port 443
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 # https
acl Safe_ports port 70 # gopher
acl Safe_ports port 210 # wais
acl Safe_ports port 1025-65535 # unregistered ports
acl Safe_ports port 280 # http-mgmt
acl Safe_ports port 488 # gss-http
acl Safe_ports port 591 # filemaker
acl Safe_ports port 777 # multiling http
acl Safe_ports port 110
acl Safe_ports port 25
acl CONNECT method CONNECT

icp_access allow all
http_port 3128
hierarchy_stoplist cgi-bin ?
access_log /var/log/squid/access.log squid
acl QUERY urlpath_regex cgi-bin \?
cache deny QUERY
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern . 0 20% 4320
acl apache rep_header Server ^Apache


acl clients src 192.168.2.99-192.168.2.125
acl blockSites dstdomain .facebook.com .twitter.com .youtube.com
acl worktime1 time SMTWHFA 00:00-12:15
acl worktime2 time SMTWHFA 13:00-18:15
acl worktime3 time SMTWHFA 19:00-24:00


http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access allow SSL_ports
http_access deny CONNECT !SSL_ports
http_access allow localhost
http_access deny clients blockSites worktime1
http_access deny clients blockSites worktime2
http_access deny clients blockSites worktime3
http_access allow clients
http_access deny all
broken_vary_encoding allow apache

=====================================

windows client conf
%%%%%%%%%%%
Ipconfig
%%%%%%%%%%%
ip : 192.168.2.100
mask: 255.255.255.0
gateway :192.168.2.1



%%%%%%%%%%%%
browser network option using proxy
%%%%%%%%%%%%%%%%%%%%%%%%%%%%
http proxy : 192.168.2.1
port : 3128


////////////////////////////////////////////////////


Heres my problem,clients(windows client) can connect internet and lan but using windows application:microsoft outlook, thunderbird and yahoo messenger using proxy, i cant connect, even i choose 3rd part [internet explorer ] option in outlook same, error...


any one can help me please, with explanation...
tnx in advance...
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
squid and outlook problem warint06 Linux - Server 2 05-24-2010 06:27 AM
squid and outlook problem warint06 Linux - Networking 2 05-21-2010 11:21 AM
Squid & M$ Outlook ~=gr3p=~ Linux - Networking 4 11-16-2006 04:15 PM
Squid and Outlook johnnycash Linux - Networking 0 05-20-2004 05:18 AM
Squid + Iptables + Outlook 2, The mission MarcSant Linux - Networking 8 03-30-2004 07:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:35 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration