Linux Netfilter discussions
 help / color / mirror / Atom feed
From: Leonardo Rodrigues <leolistas@solutti.com.br>
To: Jorge Bastos <mysql.jorge@decimal.pt>
Cc: netfilter@vger.kernel.org
Subject: Re: How to do nat filtering in 1.4.3.2
Date: Wed, 22 Apr 2009 18:59:19 -0300	[thread overview]
Message-ID: <49EF9337.7000304@solutti.com.br> (raw)
In-Reply-To: <3276.87.196.144.12.1240436887.squirrel@webmail.decimal.pt>

[-- Attachment #1: Type: text/plain, Size: 936 bytes --]

Jorge Bastos escreveu:
>
> I use this, to allow the users that are using my linux machine, action as
> a router, to connect to the outside world only to the ports I want, and
> block some stuff.
> How to do this now on?
>
>   

    now you'll have to do it on the place you should have done that:

iptables -t filter -A FORWARD ......

or simply

iptables -A FORWARD

if not specified, -t filter is used.


    your rules are strange .... usually default action for NAT tables 
are ACCEPT. Of course that can be changed, but that would require that 
you really understand what you're doing. Your default policy is probably 
ACCEPT and, in that case, ACCEPT rules arent necessary at all.


-- 


	Atenciosamente / Sincerily,
	Leonardo Rodrigues
	Solutti Tecnologia
	http://www.solutti.com.br

	Minha armadilha de SPAM, NÃO mandem email
	gertrudes@solutti.com.br
	My SPAMTRAP, do not email it





[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/x-pkcs7-signature, Size: 5584 bytes --]

  reply	other threads:[~2009-04-22 21:59 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-22 21:48 How to do nat filtering in 1.4.3.2 Jorge Bastos
2009-04-22 21:59 ` Leonardo Rodrigues [this message]
2009-04-22 22:18   ` Jorge Bastos
2009-04-22 22:22     ` Leonardo Rodrigues
2009-04-22 22:26       ` Jorge Bastos

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=49EF9337.7000304@solutti.com.br \
    --to=leolistas@solutti.com.br \
    --cc=mysql.jorge@decimal.pt \
    --cc=netfilter@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox