Find the answer to your Linux question:
Results 1 to 2 of 2
I have linux iptables firewall on red hat 9.0 . I have a linux apache server on a private ip 192.168.0.5.I need to access the server from outside via our ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Mar 2006
    Posts
    30

    allowing incoming http access-linux firewall


    I have linux iptables firewall on red hat 9.0 .

    I have a linux apache server on a private ip 192.168.0.5.I need to access the server from outside via our public ip.

    i have given the following code.

    WEB_SRV=192.168.0.5

    #Incoming HTTP Requests:
    iptables -t nat -A PREROUTING -i $EXTR -p tcp --dport 80 -j DNAT --to-destination $WEB_SRV:80
    iptables -t nat -A PREROUTING -i $EXTR -p udp --dport 80 -j DNAT --to-destination $WEB_SRV:80

    I ran the iptables with the above code ,but it dosen't output any error.

    any inputs please

  2. #2
    Just Joined!
    Join Date
    Mar 2006
    Posts
    30
    EXTR=public ip

Posting Permissions

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