LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 11-13-2012, 04:31 AM   #1
Tekiano
LQ Newbie
 
Registered: Nov 2012
Posts: 9

Rep: Reputation: Disabled
Drop in nat postrouting


Hi all,

I'm new in configuring network using iptables, could you please explain to what does the following command do,
and how to replace it with the new iptables version (I have to port it to a new version, in the old version it works)

here the command and the command result :
Code:
$ iptables -t nat -P POSTROUTING DROP
iptables v1.4.12: 
The "nat" table is not intended for filtering, the use of DROP is therefore inhibited.
Try `iptables -h' or 'iptables --help' for more information.

Thank You,
 
Old 11-13-2012, 04:35 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,372

Rep: Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962
it does nothing, as the message says.

What it's supposed to do...? Well... if it worked it would drop everything as it leaves the box, which is very weird a thing to want to do. I guess the closest would be "iptables -A OUTPUT -j DROP"... which is equally bizarre. You really can't just take this mess and convert it, you need to understand what it's meant to be doing from internal docs / discussions if you're going to do your job properly.
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] iptables NAT and DROP question raevin Linux - Security 24 08-08-2011 11:07 AM
iptables: use of DROP in nat table Robert S Linux - Security 2 04-24-2009 12:07 PM
What's the differnce between the OUTPUT and POSTROUTING chains in the NAT table? dmor Linux - Networking 1 09-01-2008 12:38 PM
Nat server with iptables -P FORWARD set to DROP problem Ronin_tekorei Linux - Server 1 05-22-2008 07:22 PM
advantages and disadvantages of nat prerouting / postrouting? Teomari Linux - Networking 2 04-13-2007 08:28 PM


All times are GMT -5. The time now is 07:25 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration