Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 05-21-2007, 01:16 PM   #16
Senior Member
Registered: Feb 2003
Location: Washington D.C
Posts: 2,189

Original Poster
Rep: Reputation: 60

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

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

Rep: Reputation: 16

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

but it should be

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

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

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
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
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.


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
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 > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:36 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration