LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 05-21-2007, 01:16 PM   #16
metallica1973
Senior Member
 
Registered: Feb 2003
Location: Washington D.C
Posts: 2,190

Original Poster
Rep: Reputation: 60

I will give it a shot . thanks
 
Old 05-22-2007, 06:09 AM   #17
teluguswan
Member
 
Registered: Oct 2005
Posts: 116

Rep: Reputation: 15
thanks for the help
 
Old 09-03-2007, 06:37 PM   #18
gr8scot
Member
 
Registered: Jun 2007
Distribution: Debian, kubuntu
Posts: 73

Rep: Reputation: 16
DNAT not REDIRECT

Quote:
Originally Posted by metallica1973 View Post
AS far as using the redirect, can you give me an example. I dig for some information using the web. Many thanks
You were close with

$IPTABLES -A PREROUTING -t nat -i $EXTIF -p tcp --dport 8080 -j REDIRECT --to-port 192.168.3.2:3128

but it should be

$IPTABLES -A PREROUTING -t nat -i $EXTIF -p tcp --dport 8080 -j DNAT --to-destination 192.168.3.2:3128

The syntax 'REDIRECT --to-port ...' allows you to specify a port only, not the IP address.
 
Old 09-03-2007, 07:17 PM   #19
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
Quote:
Originally Posted by gr8scot View Post
but it should be

$IPTABLES -A PREROUTING -t nat -i $EXTIF -p tcp --dport 8080 -j DNAT --to-destination 192.168.3.2:3128
No, this rule should not be applied to the external interface, it should not be applied to packets destined to port 8080, and it should not DNAT to port 3128. It is meant to be applied to HTTP packets (TCP port 80) coming into the internal interface, sending them to DansGuardian (which listens on port 8080). Either way, it doesn't really matter, as you shouldn't be resurrecting dead threads unless it's absolutely necessary. Please let this thread rest in peace.

Last edited by win32sux; 09-03-2007 at 07:41 PM.
 
  


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
Proxy won't let me connect, iptables, squid and dansguardian hindenbergbaby Linux - Networking 4 12-02-2009 03:45 AM
FC4 - How to setup Transparent Proxy with Dansguardian RTX Networks Linux - Networking 1 09-12-2006 12:49 AM
squid (Transparent proxy) & Dansguardian metallica1973 Linux - Security 8 12-15-2005 07:52 PM
Proxy Server - Squid, Samba, Dansguardian RedCamel Linux - Security 0 03-14-2005 02:16 AM
iptables, DansGuardian, and Squid. cth3 Linux - Networking 1 02-10-2005 09:04 AM

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

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