Find the answer to your Linux question:
Results 1 to 5 of 5
can anyone tell me how to disable static/dynamic NAPT in linux using iptables or anyother way???...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jun 2007
    Posts
    7

    disable dynamic/static NAT in linux


    can anyone tell me how to disable static/dynamic NAPT in linux using iptables or

    anyother way???

  2. #2
    Linux Guru Lazydog's Avatar
    Join Date
    Jun 2004
    Location
    The Keystone State
    Posts
    2,677
    If iptables does not have a NAT rule then it is not NAT'ing.
    Check /etc/sysconfig/iptables to see your iptables rules.

    Regards
    Robert

    Linux
    The adventure of a life time.

    Linux User #296285
    Get Counted

  3. #3
    Just Joined!
    Join Date
    Jun 2007
    Posts
    7
    Thats ok but my scenario is like this..... I have to disable all the dynamic NAT rules that i have in the iptables, using single command or at a single instant. but this should not affect the other (static)NAT rules i have in the iptable....

    In short, I dont want to keep on deleting all dynamic NAT rules one by one , manually... Please let me know if this possible..

    Thanks in advance for any discussion/suggestion/opinion regarding this.

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Guru Lazydog's Avatar
    Join Date
    Jun 2004
    Location
    The Keystone State
    Posts
    2,677
    OK, the only dynamic NAT rule would be the MASQUERADE rule and that is usually on the outbound or POSTROUTING rule set. Check your rules for that and that would be the only one you would want to remove. Everything else should be Static.

    Regards
    Robert

    Linux
    The adventure of a life time.

    Linux User #296285
    Get Counted

  6. #5
    Just Joined!
    Join Date
    Jun 2007
    Posts
    7
    Thanks for the response Robert..
    but i fear i have mis understood ur reply..
    but what to do when i have more than one number of "MASQUERADE" rules.
    I would have to do it manually..? Any way of searching it using a bit of code at run time, on a trigger of a command from the user space application..

Posting Permissions

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