disable NAT in linux

Discussion in 'Linux' started by Kalpana, Sep 26, 2007.

  1. Kalpana

    Kalpana New Member

    Joined:
    Jun 19, 2007
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    0
    how to disable NAT in linux?
     
  2. pradeep

    pradeep Team Leader

    Joined:
    Apr 4, 2005
    Messages:
    1,645
    Likes Received:
    87
    Trophy Points:
    0
    Occupation:
    Programmer
    Location:
    Kolkata, India
    Home Page:
    http://blog.pradeep.net.in
    Code:
    iptables -t nat -F
     
  3. Kalpana

    Kalpana New Member

    Joined:
    Jun 19, 2007
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    0
    thanks pradeep... :)
     
  4. Kalpana

    Kalpana New Member

    Joined:
    Jun 19, 2007
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    0
    But do let me know whether the command u told will disable NAT and NAPT also ?
    and is there any way we can disable static and dynamic NAT using iptables..? [apart from deleting the NAT rules in the NAT table]...
     
  5. Kalpana

    Kalpana New Member

    Joined:
    Jun 19, 2007
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    0
    The rule "iptables -t nat -F" would delete all the rules present in the iptables which would include all NAT & NAPT regardless of whether they are static or dynamic....

    [Just a finishing information to close this discussion..]
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice