LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices


Reply
  Search this Thread
Old 07-30-2005, 06:49 PM   #1
muhaur
LQ Newbie
 
Registered: Jul 2005
Location: Pakistan
Posts: 1

Rep: Reputation: 0
problem in squid


i m running redhat linux enterprize edition and i configured squid and internet was running on client's PC.
but when i was going to configure the transparents squid then it causes problem and now internet is not running on client's PC.

i also want to know, what i did wronge that causes that now internet is not running.
now i want to tell my scenario
i have two PCs one on which squid server is running and second is the client's PC.
i ve two thernet cards eth0 (internet provider connection) and eth1( attacjhed to the client's PC). To make the squid server as transparent i run this command

iptables-t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 3128

.iptables-t nat -A PREROUTING -i eth1 -p tcp --dport 80 -j REDIRECT --to-port 3128

unfortunately i run above command on both interfaces and now internet is not running. what is wronge in that.
 
Old 08-15-2005, 01:46 AM   #2
born4linux
Senior Member
 
Registered: Sep 2002
Location: Philippines
Distribution: Slackware, RHEL&variants, AIX, SuSE
Posts: 1,127

Rep: Reputation: 49
run it only for eth1 (your LAN interface). redirecting port 80 on eth0 (your internet link) blocks http requests from your gateway.
 
  


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 Problem vivekthemind Linux - Security 16 10-04-2005 01:24 PM
problem in squid alvi2 Linux - Networking 2 03-03-2005 07:39 AM
squid problem hariiyer Linux - Networking 6 02-14-2005 07:27 AM
squid problem hariiyer Linux - Networking 7 01-31-2005 12:20 PM
squid problem mchitrakar Linux - Networking 4 06-07-2004 01:39 AM

LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise

All times are GMT -5. The time now is 08:00 PM.

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