Networking Forums

Networking Forums > Computer Networking > Linux Networking > combining iptables with squid to set access to internet

Reply
Thread Tools Display Modes

combining iptables with squid to set access to internet

 
 
przemyslaw.kukulski@gmail.com
Guest
Posts: n/a

 
      06-25-2007, 07:04 AM
Hello!!

Before describing my problem I'd like to give you some more details
about network where everything happens.

Network : 192.168.1.0/24
Default Gateway (for users): 192.168.1.248 (points to local proxy
serwer)

Server (everything on 1 machine)
eth0: 192.168.1.249 - mail (25,110,995), www (80)
eth0:0 192.168.1.248 - proxy (8080,3128, 3129)

iptables has few entries in nat table for prerouteing (to
192.0.0.0/8 network)
Default policy for all iptables chains ( INPUT, OUTPUT, FORWARD: ) is
ACCEPT

Default gateway on server : 192.168.1.254
>From this address packets are sent to 192.0.0.0/8 network where is

located ours "doors to Internet"


Our second dns is located in 192.168.0.253

Problem description:

If user's account is configured to use proxy then his access is
controlled through this proxy (squid), but when user has new account
where no proxy is set up then he has direct access outside our network
and no proxy rules are appiled to him.

What's strange when i use traceroute/tracert to any server in Internet
(ie. google.com) i see that packages goes through 192.168.1.249
(mail), not by proxy (192.168.1.248) as it should

My goal is to disable acces to Internet (addresses other than
192.0.0.0/8) on any addresses other than 192.168.1.248 and enable
access only from 192.168.1.248. I've tried masquerade + some iptables
rules to for blocking.

Thanks for any advice that leads to solve my problem.

--
Greetings DimmuR

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Combining Multiple Internet Connections Clviper Windows Networking 4 07-11-2005 04:19 PM
Iptables - nat and internet access from server carlos.yanez.s@gmail.com Linux Networking 1 03-12-2005 07:28 PM
Squid and simple iptables Kemton Linux Networking 2 10-14-2003 12:31 AM
AIM Express, squid, iptables configuration Mike Linux Networking 1 07-05-2003 03:34 PM
Re: trnasparent proxy with squid & iptables Florian St. Linux Networking 4 07-03-2003 08:49 PM



1 2 3 4 5 6 7 8 9 10 11