Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
iptables http redirection
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Beju
Apprentice
Apprentice


Joined: 30 Mar 2006
Posts: 171

PostPosted: Fri Feb 27, 2009 6:29 pm    Post subject: iptables http redirection Reply with quote

Is there a way to rewrite a http query with iptables?
Back to top
View user's profile Send private message
jongeek
Tux's lil' helper
Tux's lil' helper


Joined: 13 Jul 2007
Posts: 135
Location: The Humid, Festering Swamps of Florida

PostPosted: Fri Feb 27, 2009 7:11 pm    Post subject: Reply with quote

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
View user's profile Send private message
quantumsummers
Retired Dev
Retired Dev


Joined: 24 Sep 2006
Posts: 103
Location: Earth

PostPosted: Sun Mar 01, 2009 6:28 am    Post subject: Reply with quote

take a look at perlbal
_________________
Summers

"...there are no rules here -- we're trying to accomplish something."
- Thomas A. Edison
Back to top
View user's profile Send private message
Beju
Apprentice
Apprentice


Joined: 30 Mar 2006
Posts: 171

PostPosted: Sun Mar 01, 2009 6:30 pm    Post subject: Reply with quote

Thanks for the answer:) In other words, You are advising to set up a proxy?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum