squid as transparent in RHEL 4

Protecting your Linux box
majidnazeer
Naik
Posts: 60
Joined: Wed Oct 05, 2005 12:37 pm

squid as transparent in RHEL 4

Postby majidnazeer » Tue Jan 29, 2008 2:06 pm


lambda
Major General
Posts: 3452
Joined: Tue May 27, 2003 7:04 pm
Location: Lahore
Contact:

Postby lambda » Tue Jan 29, 2008 6:04 pm

Watch out for the !
Isn't it amazing how so many people can type "linuxpakistan.net" into their browsers but not "google.com"?

mudasir
Captain
Posts: 565
Joined: Tue Oct 17, 2006 5:23 am
Location: Dubai
Contact:

Postby mudasir » Tue Jan 29, 2008 6:36 pm

Kind Regards
Mudasir Mirza (RHCE)
(+971)55-1045754
http://www.crystalnetworks.org
http://www.diglinux.com

majidnazeer
Naik
Posts: 60
Joined: Wed Oct 05, 2005 12:37 pm

Postby majidnazeer » Wed Jan 30, 2008 2:11 pm


x2oxen
Major General
Posts: 1114
Joined: Wed Aug 22, 2007 3:17 pm
Location: Faisalabad
Contact:

Postby x2oxen » Wed Jan 30, 2008 3:04 pm

Muhammad Usman
+92-321-6640501
Chemonics International
http://usmanpk.com

mudasir
Captain
Posts: 565
Joined: Tue Oct 17, 2006 5:23 am
Location: Dubai
Contact:

Postby mudasir » Thu Jan 31, 2008 8:00 am

AOA,

Dear majidnazeer,

As i said without looking into your IPTABLES rules, no one can tell you what is the problem.

You can also check whether IPTABLES service is running or not. And if it is not running then just start the service then apply these rules, and see whether they work or not.
Kind Regards
Mudasir Mirza (RHCE)
(+971)55-1045754
http://www.crystalnetworks.org
http://www.diglinux.com

lambda
Major General
Posts: 3452
Joined: Tue May 27, 2003 7:04 pm
Location: Lahore
Contact:

Postby lambda » Thu Jan 31, 2008 1:53 pm

Watch out for the !
Isn't it amazing how so many people can type "linuxpakistan.net" into their browsers but not "google.com"?

x2oxen
Major General
Posts: 1114
Joined: Wed Aug 22, 2007 3:17 pm
Location: Faisalabad
Contact:

Postby x2oxen » Thu Jan 31, 2008 7:49 pm

Muhammad Usman

+92-321-6640501

Chemonics International

http://usmanpk.com

mudasir
Captain
Posts: 565
Joined: Tue Oct 17, 2006 5:23 am
Location: Dubai
Contact:

Postby mudasir » Thu Jan 31, 2008 9:57 pm

AOA,

Dear Usman and Lambda,

I think we should try to solve the problem rather then just argue in this little misconfusion created by ME....

To clear somethings up..

iptables ---> is the service
/sbin/iptables ---> is the deamon.

A ‘daemon’ is a software process that runs in the background (continuously) and provides the service to client upon request.



So, i think i was correct :roll:

To the main problem, Dear majidnazeer, please post your iptables rules so that we try to solve your problem.
Kind Regards
Mudasir Mirza (RHCE)
(+971)55-1045754
http://www.crystalnetworks.org
http://www.diglinux.com

x2oxen
Major General
Posts: 1114
Joined: Wed Aug 22, 2007 3:17 pm
Location: Faisalabad
Contact:

Postby x2oxen » Thu Jan 31, 2008 11:26 pm

Dear Mudassir!
Actually the problem was not created by you. It is some 1 else who's always eager to take a point to pull some 1's leg. Doesn't matter point is right or not they won't miss a chance!
Muhammad Usman

+92-321-6640501

Chemonics International

http://usmanpk.com

majidnazeer
Naik
Posts: 60
Joined: Wed Oct 05, 2005 12:37 pm

Postby majidnazeer » Fri Feb 01, 2008 9:36 am

hi all!

i use below mention rule in rc.local.

<<Quote>>



touch /var/lock/subsys/local
echo "1" > /proc/sys/net/ipv4/ip_forward
iptables -t nat -A POSTROUTING -s 192.168.0.0 -o eth0 -j MASQUERADE
iptables -t nat -A PREROUTING -i eth1 -p tcp --dport 80 -j REDIRECT --to-port 8080
modprobe ip_conntrack_ftp
modprobe ip_nat_ftp
/usr/local/squid/sbin/squid

<</Quote>>


Thanks
Majid

x2oxen
Major General
Posts: 1114
Joined: Wed Aug 22, 2007 3:17 pm
Location: Faisalabad
Contact:

Postby x2oxen » Fri Feb 01, 2008 2:11 pm

Muhammad Usman

+92-321-6640501

Chemonics International

http://usmanpk.com

lambda
Major General
Posts: 3452
Joined: Tue May 27, 2003 7:04 pm
Location: Lahore
Contact:

Postby lambda » Fri Feb 01, 2008 5:30 pm

Watch out for the !
Isn't it amazing how so many people can type "linuxpakistan.net" into their browsers but not "google.com"?

x2oxen
Major General
Posts: 1114
Joined: Wed Aug 22, 2007 3:17 pm
Location: Faisalabad
Contact:

Postby x2oxen » Fri Feb 01, 2008 9:41 pm

Muhammad Usman

+92-321-6640501

Chemonics International

http://usmanpk.com

lambda
Major General
Posts: 3452
Joined: Tue May 27, 2003 7:04 pm
Location: Lahore
Contact:

Postby lambda » Fri Feb 01, 2008 10:25 pm

Watch out for the !
Isn't it amazing how so many people can type "linuxpakistan.net" into their browsers but not "google.com"?


Return to “Security”

Who is online

Users browsing this forum: No registered users and 1 guest