Thread: intercepting packets for web servers and replying back

  1. #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.

  2. #2
    Officially An Architect brewbuck's Avatar
    Join Date
    Mar 2007
    Location
    Portland, OR
    Posts
    7,396
    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.

Popular pages Recent additions subscribe to a feed