LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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-04-2011, 01:04 AM   #1
asdamha
LQ Newbie
 
Registered: Mar 2009
Posts: 3

Rep: Reputation: 0
Forward local HTTP requests to remote Proxy ?


How to forward local HTTP requests to remote Proxy with IPTables ?
 
Old 05-04-2011, 01:26 AM   #2
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Quote:
Q: How to forward local HTTP requests?
A: Get a router

Here's an excellent link about "port forwarding" with iptables:

http://fclose.com/b/linux/816/port-f...sing-iptables/

Here's an example (from the above link):
Code:
# iptables -A PREROUTING -t nat -i eth0 -p tcp --dport 80 -j DNAT --to 192.168.1.2:8080
# iptables -A FORWARD -p tcp -d 192.168.1.2 --dport 8080 -j ACCEPT
'Hope that helps .. PSM
 
  


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
squid is failing to forward requests to parent proxy zyothi Linux - Networking 0 05-29-2010 10:34 AM
[SOLVED] forward all http/https requests vigilandy Linux - Networking 5 05-12-2010 11:56 PM
Is this possible - forwarding http requests - proxy wr3ck3d Linux - Networking 1 08-22-2009 03:03 AM
Squid problem: Howto always forward requests to x.y to other proxy intens Linux - Networking 3 01-16-2007 02:14 PM
forward all HTTP requests to the proxy cccc Linux - Networking 2 10-01-2006 06:42 PM

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

All times are GMT -5. The time now is 08:54 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration