Re: postrouting and dmz

From: Pete Nesbitt (pete_at_linux1.ca)
Date: 02/25/04

  • Next message: Rodolfo J. Paiz: "Re: What is this."
    To: redhat-list@redhat.com
    Date: Wed, 25 Feb 2004 06:34:31 -0800
    
    

    On February 24, 2004 10:58 pm, ip tables wrote:
    > Hello,
    >
    > I use iptables 1.2.7a on RH 9.0 when i enable
    > iptables -t nat --policy PREROUTING DROP
    > it stops my connecting to the services offerd @ the
    > natted dmz. Also nmap shows the ports opened when i do
    > a "connect" scan. I have no user defined chanins. Any
    > idea?
    >
    > Thanks and regards

    Hi,
    why do you have PREROUTING DROP that will kill everything (but I do not
    beleive it is valid) ? --policy is normally set near the top of the
    script/ruleset, and is not required for PRE or POST routing, just for input,
    output, forward and user defined.

    If I follow what you are after, try something like:

    #inbound redircts to webserver on dmz
    $IPTABLES -A PREROUTING -t nat -p tcp -i $EXT_IF --dport 80 -j DNAT
    --to-destination $WEB_SERVER

    # outbound web server connections are all masquaraded
    $IPTABLES -A POSTROUTING -t nat -o $EXT_IF -s $WEB_SERVER -j MASQUERADE

    Let me know if you need more details as you have not given much information
    about the rest of the rules or the access senario.

    -- 
    Pete Nesbitt, rhce
    -- 
    redhat-list mailing list
    unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
    https://www.redhat.com/mailman/listinfo/redhat-list
    

  • Next message: Rodolfo J. Paiz: "Re: What is this."

    Relevant Pages

    • Re: Newbie NMAP question
      ... >> I'm running mandrake 9.0 and I'm working on securing my box before ... Can I use nmap to scan the ports on the localhost ... >> before connecting or do I have to port scan from a second ... particular port. ...
      (comp.os.linux.security)
    • Newbie NMAP question
      ... Can I use nmap to scan the ports on the localhost ... before connecting or do I have to port scan from a second PC? ... Also what options of nmap would be most appropriate for this? ...
      (comp.os.linux.security)
    • Re: Newbie NMAP question
      ... Can I use nmap to scan the ports on the localhost ... > before connecting or do I have to port scan from a second PC? ... you can use 'netstat -tupan' instead of nmap. ... There's a difference between scanning fron localhost and from the net. ...
      (comp.os.linux.security)