All of lore.kernel.org
 help / color / mirror / Atom feed
* Problems With MASQ/ Kernel 2.4.29
@ 2005-03-12  0:01 Ing. Rogelio Sevilla Fernandez
  2005-03-12  0:23 ` Geert van der Ploeg
       [not found] ` <42323616.7010900@triple-it.nl>
  0 siblings, 2 replies; 3+ messages in thread
From: Ing. Rogelio Sevilla Fernandez @ 2005-03-12  0:01 UTC (permalink / raw)
  To: netfilter

I recently compiled kernel 2.4.29 with all netfilter options as modules.

All start ok, but when i set the MASQUERADE jump target on POSTROUTING
i got:
iptables -t nat -I PREROUTING -o eth0 -j MASQUERADE
iptables: target problems.

So, i recompiled the kernel but now, all netfilter options directly injected to
kernel and i got the same problems.

Thanks.

-----------------------------------------------------
"2005, AÑO DE LA FEDERACION DE ESTUDIANTES COLIMENSES"


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Problems With MASQ/ Kernel 2.4.29
  2005-03-12  0:01 Problems With MASQ/ Kernel 2.4.29 Ing. Rogelio Sevilla Fernandez
@ 2005-03-12  0:23 ` Geert van der Ploeg
       [not found] ` <42323616.7010900@triple-it.nl>
  1 sibling, 0 replies; 3+ messages in thread
From: Geert van der Ploeg @ 2005-03-12  0:23 UTC (permalink / raw)
  To: Ing. Rogelio Sevilla Fernandez; +Cc: netfilter

Ing. Rogelio Sevilla Fernandez wrote:
> I recently compiled kernel 2.4.29 with all netfilter options as modules.
> 
> All start ok, but when i set the MASQUERADE jump target on POSTROUTING
> i got:
> iptables -t nat -I PREROUTING -o eth0 -j MASQUERADE
> iptables: target problems.

when using PREROUTING rules, you should specify the incoming interface,
not the outgoing.
Or, said the other way around: when using an outgoing interface, you
should specify POSTROUTING rules.

So, because you try to masquerade, what you really want is:
iptables -t nat -I POSTROUTING -o eth0 -j MASQUERADE

See section 5 in the NAT-howto for iptables.


Hope this helps.


Regards,

Geert van der Ploeg



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Problems With MASQ/ Kernel 2.4.29
       [not found] ` <42323616.7010900@triple-it.nl>
@ 2005-03-12  0:25   ` Ing. Rogelio Sevilla Fernandez
  0 siblings, 0 replies; 3+ messages in thread
From: Ing. Rogelio Sevilla Fernandez @ 2005-03-12  0:25 UTC (permalink / raw)
  To: Geert van der Ploeg; +Cc: netfilter

Sorry, its correct.. i got the problem on POSTROUTING rule.



Quoting Geert van der Ploeg <geert@triple-it.nl>:

> Ing. Rogelio Sevilla Fernandez wrote:
>> I recently compiled kernel 2.4.29 with all netfilter options as modules.
>>
>> All start ok, but when i set the MASQUERADE jump target on POSTROUTING
>> i got:
>> iptables -t nat -I PREROUTING -o eth0 -j MASQUERADE
>> iptables: target problems.
>
> when using PREROUTING rules, you should specify the incoming
> interface, not the outgoing.
> Or, said the other way around: when using an outgoing interface, you
> should specify POSTROUTING rules.
>
> So, because you try to masquerade, what you really want is:
> iptables -t nat -I POSTROUTING -o eth0 -j MASQUERADE
>
> See section 5 in the NAT-howto for iptables.
>
>
> Hope this helps.
>
>
> Regards,
>
> Geert van der Ploeg
>



-----------------------------------------------------
"2005, AÑO DE LA FEDERACION DE ESTUDIANTES COLIMENSES"



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-03-12  0:25 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-12  0:01 Problems With MASQ/ Kernel 2.4.29 Ing. Rogelio Sevilla Fernandez
2005-03-12  0:23 ` Geert van der Ploeg
     [not found] ` <42323616.7010900@triple-it.nl>
2005-03-12  0:25   ` Ing. Rogelio Sevilla Fernandez

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.