Find the answer to your Linux question:
Results 1 to 4 of 4
I wish to forward my port there is a website that is hosted on linux and would want to host it on a windows 2000 server I want 2 connect ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Oct 2006
    Posts
    2

    Forwarding a port


    I wish to forward my port there is a website that is hosted on linux and would want to host it on a windows 2000 server I want 2 connect these 2 servers so that every request sent to linux is redirected to windows how do i do that

  2. #2
    Just Joined!
    Join Date
    Jun 2006
    Location
    (.)
    Posts
    69
    Hi,

    Try to do the following:

    # enable ip_forwarding
    echo 1 > /proc/sys/net/ipv4/ip_forward


    iptables -t nat -A PREROUTING -p tcp -d 192.168.1.22 --dport 80 -j DNAT --to-destination 192.168.1.11

    Let,
    .22 - is linux machine
    .11 is windows

    regards,

  3. #3
    Just Joined!
    Join Date
    Oct 2006
    Posts
    2

    Thanks am trying that now

    thank you for the response I trie what you said but its refusing to reckonise that --d its taking it to be similar to -d what could be the problem?

  4. #4
    Just Joined!
    Join Date
    Jun 2006
    Location
    (.)
    Posts
    69
    I didnt understant your question exactly. What error are you receiving?

Posting Permissions

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