Find the answer to your Linux question:
Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    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 need to access the server from outside via our public ip.

    i have given the following code.


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