LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 10-12-2006, 01:51 AM   #1
shipon_97
Member
 
Registered: Oct 2005
Location: Bangladesh
Posts: 504

Rep: Reputation: 31
Exclamation redirect port using DansGuardian


Friends ,

I am using DansGuardian to filter web pages with Squid . I use 3128 filter port for DansGuardian . And my squid port is 8080 .Now i want a situation , where all requests of 8080 port are redirected to 3128 port . So that my clients are bound to use 3128 port .

In this situation , what is the solution regarding this issue .Waiting for ur reply ... ...
 
Old 10-12-2006, 08:17 AM   #2
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 48
with iptables..

iptables -t nat -? PREROUTING -i eth(lan) -s (network subnet) -p tcp --dport 8080 -j REDIRECT --to-ports 3128

The position of the rule is important. Rules are read in order they are listed with iptables-save
You need an interface specified, and the network the users come from specified.
 
  


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
debian iptables squid - redirect port 80 to port 8080 on another machine nickleus Linux - Networking 1 08-17-2006 12:59 AM
no-ip and port 80 redirect help--desperate mutsu Linux - Networking 4 07-28-2006 03:48 AM
Port Redirect on Suse 9.2, how? diavlos Linux - Networking 0 01-16-2005 08:34 PM
Outside FTP Port 21 redirect to different port inside LAN??? hendrixx Linux - Security 5 06-05-2004 06:42 PM
Redirect to another port dlucas10 Linux - Networking 4 02-06-2004 01:03 PM

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

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