View previous topic :: View next topic |
Author |
Message |
Beju Apprentice

Joined: 30 Mar 2006 Posts: 171
|
Posted: Fri Feb 27, 2009 6:29 pm Post subject: iptables http redirection |
|
|
Is there a way to rewrite a http query with iptables? |
|
Back to top |
|
 |
jongeek Tux's lil' helper

Joined: 13 Jul 2007 Posts: 135 Location: The Humid, Festering Swamps of Florida
|
Posted: Fri Feb 27, 2009 7:11 pm Post subject: |
|
|
Short answer: no.
Long answer: no. iptables has no knowledge of HTTP. The best you can do is change the src/dst IP/port, etc., but these changes will not update the HTTP headers inside a given data packet. So you can re-route HTTP packets, but not modify the HTTP data inside. |
|
Back to top |
|
 |
quantumsummers Retired Dev


Joined: 24 Sep 2006 Posts: 103 Location: Earth
|
Posted: Sun Mar 01, 2009 6:28 am Post subject: |
|
|
take a look at perlbal _________________ Summers
"...there are no rules here -- we're trying to accomplish something."
- Thomas A. Edison |
|
Back to top |
|
 |
Beju Apprentice

Joined: 30 Mar 2006 Posts: 171
|
Posted: Sun Mar 01, 2009 6:30 pm Post subject: |
|
|
Thanks for the answer:) In other words, You are advising to set up a proxy? |
|
Back to top |
|
 |
|