LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 09-05-2009, 06:27 AM   #1
shathil
LQ Newbie
 
Registered: Mar 2008
Posts: 3

Rep: Reputation: 0
TCP traffic forwarding


Hello
I am facing one situation. When I put the proxy settings in the browser, the browser only forward the http traffic with port 80 to the proxy. Well If I configure a transparent proxy I can forward all TCP connections to the proxy. But What If I want to forward http connections with ports other than 80 to my proxy server. I am feeling that this can be done using iptable rules at my gateway. Please help me.


BR
Shathil
 
Old 09-05-2009, 10:46 PM   #2
evilted
Member
 
Registered: Aug 2009
Location: Ouagadougou, Burkina Faso
Distribution: centos
Posts: 92

Rep: Reputation: 18
Code:
iptables -t nat -A PREROUTING -i ethX -p tcp --dport YY -j REDIRECT --to-port YYYY
replace ethX with your lan interface. replace YY with the port you want redirected. replace YYYY with your squid port..
 
  


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
Snort/Base reporting no traffic, Ntop not showing any TCP traffic. a2brute Linux - Security 1 08-10-2009 12:21 PM
tcp proxy with one nic, redirect traffic to other IP RattleSn@ke Linux - Networking 3 03-09-2009 07:34 AM
Traffic shaping (limiting outgoing bandwidth of all TCP-traffic except FTP/HTTP) ffkodd Linux - Networking 3 10-25-2008 12:09 AM
Bust of TCP traffic takes too long jaspers95 Linux - Networking 0 11-29-2007 09:38 AM
How to use tcpdump to monitor traffic of a TCP connection sajsal Linux - Networking 0 03-05-2004 04:11 AM

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

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