nixCraft Linux Forum

nixCraft

Linux / UNIX Tech Support Forum

Squid Transparent Proxy iptable rules

This is a discussion on Squid Transparent Proxy iptable rules within the CentOS / RHEL / Fedora forums, part of the Linux Distribution category; I use CentOS 5.2. I want to know that is it necessary to use the fw.proxy script to be able ...


Go Back   nixCraft Linux Forum > Linux Distribution > CentOS / RHEL / Fedora

Linux answers from nixCraft.


CentOS / RHEL / Fedora Discussion about Redhat Enterprise Linux or CentOS or Fedora Linux related problems.

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 28-02-2009, 11:58 AM
Junior Member
User
 
Join Date: Feb 2009
OS: CentOS
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
Cyborg_sa is on a distinguished road
Send a message via MSN to Cyborg_sa
Default Squid Transparent Proxy iptable rules

I use CentOS 5.2. I want to know that is it necessary to use the fw.proxy script to be able to use the server as a transparent proxy?

What if I only use the following iptables rules:
Code:
iptables -t nat -A PREROUTING -i  eth1 -p tcp --dport 80 -j DNAT --to 192.168.1.1:3128
iptables -t nat -A PREROUTING -i  eth0 -p tcp --dport  80 -j REDIRECT --to-port 3128


Will the proxy work this way?
Reply With Quote
  #2 (permalink)  
Old 28-02-2009, 09:30 PM
nixcraft's Avatar
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
OS: RHEL
Scripting language: Bash and Python
Posts: 2,707
Thanks: 11
Thanked 244 Times in 183 Posts
Rep Power: 10
nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute
Default

Yes, it should work as long as nothing else is blocking out...
__________________
Vivek Gite
Linux Evangelist
Be proud RHEL user, and let the world know about your enterprise choices! Join RedHat user group.
Always use CODE tags for posting system output and commands!
Do you run a Linux? Let's face it, you need help
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
how to make iptable rules? saroj Networking, Firewalls and Security 7 11-03-2009 06:18 PM
Squid transparent proxy in ubuntu Avinash More Ubuntu / Debian 3 12-02-2009 06:54 AM
Squid proxy transparent xoroz Linux software 1 02-12-2008 07:51 PM
How to Squid 2.6 transparent proxy? alex.inoa Networking, Firewalls and Security 5 30-10-2007 03:41 AM
transparent squid proxy authentication chiku Linux software 1 27-04-2007 04:58 PM


All times are GMT +5.5. The time now is 07:09 PM.


Powered by vBulletin® Version 3.8.5 - Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2
©2005-2010 nixCraft. All rights reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38