PDA

View Full Version : [ubuntu] squid and dhcp



kanjah
December 4th, 2012, 08:01 PM
hi guyz, am a newbie of both ubuntu and squid3.... i have installed ubuntu server 12 with 2 NIC, for WAN & LAN and squid3, i dnt know how to configure the LAN to dish out dhcp i.p and connect transparently to my clients. The squid.conf has
http_port 3128 transparent.
i have to configure their browser manually in-order to connect to squid,
can anyone help me?
thanks

papibe
December 5th, 2012, 05:08 AM
Hi kanjah.

Could you explain a little but about your network topology? That is, how your devices are connected to each other?

Who is the DHCP server both in the WAN and the LAN? Is it the same Squid server?

Could you post the result of these commands?

cat /etc/resolv.conf

cat /etc/network/interfaces

cat /proc/sys/net/ipv4/ip_forward

route -n
Regards.

SeijiSensei
December 5th, 2012, 09:13 AM
Didn't we just have this discussion in this thread (http://ubuntuforums.org/showthread.php?t=2089221)? Didn't you say there that adding the iptables rule I suggested fixed this problem? So why are you asking the same thing again here?

kanjah
December 5th, 2012, 10:01 AM
thanks for the reply
etc/resolve.conf
nameserver 91.42.48.48
nameserver 91.42.49.49


etc/network/interface
auto eth0
iface eth0 static
address 192.168.10.235
netmask 255.255.255.0
broadcastn192.168.10.225
gateway 192.168.10.1

auto eth1
iface eth1 inet static
address 198.168.1.2
netmask 255.255.255.0
broadcast 192.168.1.255

proc/sys/net/ipv4/ip_forward is empty

kanjah
December 5th, 2012, 10:05 AM
i did what you adviced and it worked and thankd you for it, now
am using a wireless router to connect my clients, they cnt connect to squid, but if i connect one node to the lan it works well