LinuxQuestions.org
Visit Jeremy's Blog.
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-16-2005, 11:06 PM   #1
tsaravan
Member
 
Registered: Jun 2005
Location: India
Posts: 101

Rep: Reputation: 15
proxy setup


Hi,

We have recently obtained ADSL connection the ip address of the ISP as follows:

IP Address - 192.168.1.100
subnet mask: 255.255.255.0
Default gateway address: 192.168.1.1
DNS - Primary - 61.1.96.69 secondary - 61.1.96.71

We are already on the 'C' class network before obtaining the above connection and our IP range is in 192.168.0.1 - 192.168.0.254.

I have installed the following:

1) Linux FC3
2) httpd
3) mysqld
4)squid

I have configure squid as transparent proxy. But I am not able to connect to Internet through proxy system.

Please let me know the basic step I have to follow and also let me know if i have to setup DNS.

Thanks.

T. Saravana
 
Old 08-17-2005, 02:55 AM   #2
roopunix
Member
 
Registered: Feb 2004
Location: Kathmandu
Distribution: Redhat/fedora/Suse [Wanna Drive With Debian]
Posts: 208

Rep: Reputation: 30
well!!

can you ping yahoo.com from your linux box. But for that you need to enter your DNS address in /etc/resolv.conf

nameserver primary DNS_IP
nameserver secondary DNS_ip

Now if you want to surf the internet from the clients machine then you need to point your clients gateway to the linux machines lan ip. the DNS address should be the same for the clients machines too.

have you done NAT on your linux box so that your clients will be able to surf the internet. As you had said you are using transparent proxy have you configured your PREROUTING chain such that http traffic will be redirected to the squid proxy server??

check the following link.For transparent proxy and NATTING on redhat8. It will work on your distro too..
http://www.linuxquestions.org/questi...87#post1789887
~
~
 
Old 08-18-2005, 12:43 AM   #3
tsaravan
Member
 
Registered: Jun 2005
Location: India
Posts: 101

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by roopunix
well!!

can you ping yahoo.com from your linux box. But for that you need to enter your DNS address in /etc/resolv.conf

nameserver primary DNS_IP
nameserver secondary DNS_ip

Now if you want to surf the internet from the clients machine then you need to point your clients gateway to the linux machines lan ip. the DNS address should be the same for the clients machines too.

have you done NAT on your linux box so that your clients will be able to surf the internet. As you had said you are using transparent proxy have you configured your PREROUTING chain such that http traffic will be redirected to the squid proxy server??

check the following link.For transparent proxy and NATTING on redhat8. It will work on your distro too..
http://www.linuxquestions.org/questi...87#post1789887
~
~
Thank you for the information. I missed a point to inform that we have a router acting as a gateway to connect to our head office in different location and their IP class is B and our is C class. In this scenario please let me know how to configure the client as well as server appropriately. One point to note is we already have Gateway. I am new to networking and hence I am bit confused.

Please guide me.

thanks

T. Saravana
 
Old 08-18-2005, 05:06 AM   #4
roopunix
Member
 
Registered: Feb 2004
Location: Kathmandu
Distribution: Redhat/fedora/Suse [Wanna Drive With Debian]
Posts: 208

Rep: Reputation: 30
as i assume you are using VPN to connect to your other office??. as i understood you said that you are using class c and class B addresses. You people are treating this IP as private IP or public IP?Post a flexible scenerao you are in...
 
Old 08-18-2005, 01:16 PM   #5
tzouse
Member
 
Registered: May 2004
Location: Jamaica
Distribution: Red Hat 9/FC1/FC3/FC4
Posts: 35

Rep: Reputation: 15
So your external network is 192.168.1.100 (say eth1) and your existing internal network is 192.168.0.1 (say eth0)?

The IPs shouldn't matter, you just have to configure DNS, DHCP accordingly.

But are you saying you replaced or want to replace your "router acting as a gateway to connect to our head office" with a standalone linux box running a transparent proxy?
 
Old 08-19-2005, 02:19 AM   #6
tsaravan
Member
 
Registered: Jun 2005
Location: India
Posts: 101

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by tzouse
So your external network is 192.168.1.100 (say eth1) and your existing internal network is 192.168.0.1 (say eth0)?

The IPs shouldn't matter, you just have to configure DNS, DHCP accordingly.

But are you saying you replaced or want to replace your "router acting as a gateway to connect to our head office" with a standalone linux box running a transparent proxy?
Thank you for your reply.

I do not want to touch the router which is acting as gateway. How to have transparent proxy with existing gateway. Also I would like to inform you that a DNS server is running at Head for public/private ip resolution and I would like to setup DNS in the branch office which I am not able to understand clearly. Please let me in this scenario how to go ahead.

regards,

T. Saravana
 
Old 08-19-2005, 11:04 AM   #7
zamri
Member
 
Registered: May 2004
Location: Malaysia
Distribution: Mandrake,Slackware,RedHat
Posts: 157

Rep: Reputation: 30
just install caching-nameserver package on the computer acting as a proxy. and the install squid. make sure this proxy can connect to the internet.

make sure the DNS is working by running nslookup and see whether it can resolve name to ip.

make sure u run this command on the proxy.

Code:
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 3128
Make sure squid running on port 3128 by checking /etc/squid/squid.conf or any place that matters.
 
  


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
setup a secure proxy darkleaf Linux - Security 2 07-13-2005 07:58 PM
Setup proxy ust Linux - Networking 1 01-18-2005 06:23 AM
proxy server setup help archish Linux - Networking 6 01-25-2004 11:12 PM
Setup squid behind another proxy Salihou Linux - Networking 0 01-06-2004 08:45 AM
proxy setup KozyKitten Linux - Newbie 7 06-17-2003 12:12 AM

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

All times are GMT -5. The time now is 09:56 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