* bypassing a prerouting rule
@ 2004-06-23 13:24 Manestro Oliveira
2004-06-24 5:07 ` Feizhou
2004-06-24 7:18 ` John A. Sullivan III
0 siblings, 2 replies; 4+ messages in thread
From: Manestro Oliveira @ 2004-06-23 13:24 UTC (permalink / raw)
To: netfilter
Hi,
I am a begginer to Linux and I have a PREROUTING rule that makes port
redirection on incoming packages. But there is a server that don`t accept
that, and works only without that rule. How can I bypass the rule for that
server specifically?
If iptables works by matching rules and leaving the other ones without
checking them, then I should insert a rule before that and the problem is
solved. Is this correct?
Sorry if the question might be stupid, but I am taking the chance for
being stupid now (and maybe not forever). >)
Thanks.
_________________________________________________________________
MSN Hotmail, o maior webmail do Brasil. http://www.hotmail.com
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: bypassing a prerouting rule
2004-06-23 13:24 bypassing a prerouting rule Manestro Oliveira
@ 2004-06-24 5:07 ` Feizhou
2004-06-24 7:18 ` John A. Sullivan III
1 sibling, 0 replies; 4+ messages in thread
From: Feizhou @ 2004-06-24 5:07 UTC (permalink / raw)
To: Manestro Oliveira; +Cc: netfilter
Manestro Oliveira wrote:
> Hi,
> I am a begginer to Linux and I have a PREROUTING rule that makes
> port redirection on incoming packages. But there is a server that don`t
> accept that, and works only without that rule. How can I bypass the rule
> for that server specifically?
>
> If iptables works by matching rules and leaving the other ones
> without checking them, then I should insert a rule before that and the
> problem is solved. Is this correct?
Yes, first match takes effect.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: bypassing a prerouting rule
2004-06-23 13:24 bypassing a prerouting rule Manestro Oliveira
2004-06-24 5:07 ` Feizhou
@ 2004-06-24 7:18 ` John A. Sullivan III
1 sibling, 0 replies; 4+ messages in thread
From: John A. Sullivan III @ 2004-06-24 7:18 UTC (permalink / raw)
To: Manestro Oliveira; +Cc: netfilter
On Wed, 2004-06-23 at 09:24, Manestro Oliveira wrote:
> Hi,
> I am a begginer to Linux and I have a PREROUTING rule that makes port
> redirection on incoming packages. But there is a server that don`t accept
> that, and works only without that rule. How can I bypass the rule for that
> server specifically?
>
> If iptables works by matching rules and leaving the other ones without
> checking them, then I should insert a rule before that and the problem is
> solved. Is this correct?
>
> Sorry if the question might be stupid, but I am taking the chance for
> being stupid now (and maybe not forever). >)
<snip>
Yes, you can place an ACCEPT rule before the REDIRECT rule and that will
halt processing in the PREROUTING chain for that match. Thanks for
asking :-) - John
--
John A. Sullivan III
Chief Technology Officer
Nexus Management
+1 207-985-7880
john.sullivan@nexusmgmt.com
---
If you are interested in helping to develop a GPL enterprise class
VPN/Firewall/Security device management console, please visit
http://iscs.sourceforge.net
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: bypassing a prerouting rule
@ 2004-06-25 17:27 Manestro Oliveira
0 siblings, 0 replies; 4+ messages in thread
From: Manestro Oliveira @ 2004-06-25 17:27 UTC (permalink / raw)
To: netfilter; +Cc: john.sullivan
>On Wed, 2004-06-23 at 09:24, Manestro Oliveira wrote:
>Hi,
> I am a begginer to Linux and I have a PREROUTING rule that makes
>port redirection on incoming packages. But there is a server that don`t
>accept that, and works only without that rule. How can I bypass the rule
>for that server specifically?
>
> If iptables works by matching rules and leaving the other ones
>without checking them, then I should insert a rule before that and the
>problem is solved. Is this correct?
>
> Sorry if the question might be stupid, but I am taking the chance for
>being stupid now (and maybe not forever). >)
<snip>
>Yes, you can place an ACCEPT rule before the REDIRECT rule and that will
>halt processing in the PREROUTING chain for that match. Thanks for
>asking :-) - John
>--
From what I've learned so far, one can only use on chain PREROUTING the
tables nat and mangle.
How can I use an ACCEPT rule on these tables? Doesn't that suppose to use
the filter table, which can't be used in the PREROUTING chain?
Thanks
_________________________________________________________________
MSN Hotmail, o maior webmail do Brasil. http://www.hotmail.com
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2004-06-25 17:27 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-06-23 13:24 bypassing a prerouting rule Manestro Oliveira
2004-06-24 5:07 ` Feizhou
2004-06-24 7:18 ` John A. Sullivan III
-- strict thread matches above, loose matches on Subject: below --
2004-06-25 17:27 Manestro Oliveira
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.