Results 1 to 5 of 5
can anyone tell me how to disable static/dynamic NAPT in linux using iptables or
anyother way???...
- 09-28-2007 #1Just 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???
- 10-04-2007 #2
If iptables does not have a NAT rule then it is not NAT'ing.
Check /etc/sysconfig/iptables to see your iptables rules.
- 10-05-2007 #3Just 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.
- 10-06-2007 #4
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.
- 10-08-2007 #5Just 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..


Reply With Quote
