C Board  

Go Back   C Board > General Programming Boards > Networking/Device Communication

Reply
 
LinkBack Thread Tools Display Modes
Old 10-21-2007, 08:43 AM   #1
Registered User
 
Join Date: Aug 2007
Posts: 13
intercepting packets for web servers and replying back

hi,

I was wondering how to approach a program which will run on server which is the default gateway and will process all packets that arrive on tcp transport with destination port 80 (which are destined for a webserver somewhere on the internet) and will basically reply back to the client with some html file instead of the original webserver.

any ideas are welcome...

regards.
liri is offline   Reply With Quote
Old 10-21-2007, 10:43 PM   #2
Senior software engineer
 
brewbuck's Avatar
 
Join Date: Mar 2007
Location: Portland, OR
Posts: 5,762
Quote:
Originally Posted by liri View Post
hi,

I was wondering how to approach a program which will run on server which is the default gateway and will process all packets that arrive on tcp transport with destination port 80 (which are destined for a webserver somewhere on the internet) and will basically reply back to the client with some html file instead of the original webserver.

any ideas are welcome...

regards.
Sounds like your basic transparent HTTP proxy. Look at squid.
brewbuck is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Forum Jump


All times are GMT -6. The time now is 10:22 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22