Find the answer to your Linux question:
Results 1 to 2 of 2
hai, i am new to linux world... pls help me.. i have a problem........ How to redirect local http port to remote ip address(192.168.10.64) using iptables..my destro is Centos 5.3 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    May 2010
    Posts
    2

    redirect local http port to remote machine


    hai,
    i am new to linux world... pls help me..
    i have a problem........ How to redirect local http port to remote ip address(192.168.10.64) using iptables..my destro is Centos 5.3

    my rule is this
    iptables -t nat -A PREROUTING -s 0/0 -d <my local ip> -p tcp --dport 80 -j DNAT --to-destination 192.168.10.64

    thanks in advance........

  2. #2
    Linux Engineer Kloschüssel's Avatar
    Join Date
    Oct 2005
    Location
    Italy
    Posts
    773
    Hi & welcome to this forum.

    This question is often asked and the answer is always the same. Please use the search function or ask google in the first place:

    http://www.linuxforums.org/forum/lin...-firmware.html

    PORT FORWARDING

    Port-weiterleitungen bei OpenWRT

    Port forwarding for iptables (DMZ)

    Just to mention a few good resources.

Posting Permissions

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