LinuxQuestions.org
Help answer threads with 0 replies.
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 04-12-2006, 01:44 AM   #1
deepak rawat
Member
 
Registered: Apr 2006
Posts: 37

Rep: Reputation: 15
squid proxy confiuration+NAT


[QUOTE=deepak rawat]i have one pc which have two lan card in it eth0 and eth1
eth0 hav address like
ip address>>>>>>>>> 202.0.0.100
netmask >>>>>>>>> 255.255.255.0
primary DNS >>>>>>> 202.54.15.30
secondary dns >>>>> 203.192.12.42

and the eth1 which is conncted to router hav address
ip address >>>>> 192.168.1.2
netmask >>>>>> 255.255.255.0
gateway >>>>>> 192.168.1.1
PRimary DNS and secondary dns is same to tht of eth0


now what i want is to set the squid proxy server for my private lan which is on ip range 202.0.0.1 to 202.0.0.200

i hav given the entry like this is squid.conf

acl mynetwork src 202.0.0.0/24
http_access allow mynetwork


on the server pc internet is working but on the client i hav change the connection settings to proxy server>>>> 202.0.0.100 and port number to 3128
and still its not working and the reason for that is eth1 ip is 192.168.1.2 but my lan address is 202.0.0.1 to 202.0.0.200 according to my knowledge to solve this problem we need NAT(network address translation) but i am not confortable with iptables
so if anyone here solve this problem

one thing make sure that i want this by squid proxy .
 
Old 04-12-2006, 07:46 AM   #2
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
Hi there

you do not need NAT to run a proxy.
Any one of them can be used to share your internet connection in your network

Does Internet work on the server ,when you use the proxy IP address in your browser

what error do you get when u connect from the client using proxy IP address.

Are you sure that squid is running fine??

regards
 
Old 04-13-2006, 03:59 AM   #3
deepak rawat
Member
 
Registered: Apr 2006
Posts: 37

Original Poster
Rep: Reputation: 15
ok my problem solved
yes there is no need of IP masquerading in case of squid proxies

now i want to now one more thing how i can give proxies to a specfic range


for ex: i wnt to gve access to 202.0.0.1 to 202.0.0.100
 
Old 04-13-2006, 04:07 AM   #4
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
hi there

you can do that like this

acl aclname src 202.0.0.1-202.0.0.100/255.255.255.255

then deny http access for all and allow only for the above acl like this

http_access allow aclname

regards
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 proxy server configuration & distribution of internet without proxy gaurav_gupta082 Linux From Scratch 2 07-31-2010 11:25 AM
configure squid proxy with microsoft proxy as a parent proxy nintykola Linux - Software 1 08-28-2007 01:38 AM
Help With Bind,squid,nat And Proxy debloxie Linux - Networking 0 01-20-2004 05:43 AM
Help With Bind,squid,nat And Proxy debloxie Linux - Networking 1 01-19-2004 05:40 PM
I Need Help With Bind,squid,nat & Proxy debloxie Linux - Networking 0 01-19-2004 08:27 AM

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

All times are GMT -5. The time now is 09:11 AM.

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