Results 1 to 3 of 3
  1. #1
    Join Date
    May 2009
    Location
    India
    Posts
    54

    * Forward port 80 to another server

    Hi,

    I currently have one static ip...which has been configured to
    Debian..now i want to run a webserver within the network internally

    can someone tell me how can i forward port 80 request from One machine to another

    Regards
    MixMasters

  2. #2
    Join Date
    Jun 2003
    Location
    World Wide Web
    Posts
    581
    Quote Originally Posted by MixMasters View Post
    Hi,

    can someone tell me how can i forward port 80 request from One machine to another

    Regards
    MixMasters

    If you have http running on both the machines, you can setup a redirect rule, by creating a .htaccess file in the document root for the apache.
    SupportExpertz.com - the name says it all!
    Managed Cloud Servers
    Server Management and Monitoring
    24x7 outsourced customer support

  3. #3
    Join Date
    Apr 2009
    Location
    Arizona
    Posts
    33
    Mix,

    Are you trying to have the server with the external IP act as a gateway and have an internal server (i.e. 10.x.x.x) running the website ?

    If so this can be done with IPTables on the external IP'd debian machine. I'm assuming two interfaces here, one external interface and one internal.

    I would suggest doing a google search on IPTables and NAT, or you can try this site, they have some good information:

    http://www.nerdgrind.com/set-up-nat-...bles-firewall/

    I can likely give you some examples, but honestly I'd be afraid I'd miss something.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •