Hello again.

The problem is still the same, I was told to really make sure that I 
made a clean installation, which I did.

I also (no one told me to) tried to compile everything as modules, no 
success. (:

Made the kernel as minimalistic as possible, no success.

I heard from a couple of people (from the list) that told me that they 
ran into the exact same problem and never solved it one of them tried 
2.4.19 without any success.

I can do the tests if someone just helps me out with this one.

I'm making a i386 kernel and here is some more info if someone is 
interested:

***************************************************
*
* Output from lsmod
*
***************************************************
root@gkfw tmp]# lsmod
Module                  Size  Used by    Not tainted
ipt_LOG                 3392   2  (autoclean)
ipt_state                928   9  (autoclean)
ipt_MASQUERADE          1632   0  (autoclean)
3c509                   7840   2
ipt_REDIRECT            1088   0  (autoclean)
iptable_nat            17748   0  (autoclean) [ipt_MASQUERADE ipt_REDIRECT]
ip_conntrack           19884   2  (autoclean) [ipt_state ipt_MASQUERADE 
ipt_REDIRECT iptable_nat]
iptable_filter          1664   1  (autoclean)
ip_tables              11168   8  [ipt_LOG ipt_state ipt_MASQUERADE 
ipt_REDIRECT iptable_nat iptable_filter]
[root@gkfw tmp]#

***************************************************
*
* Output from the failing iptables commands ...
*
***************************************************
[root@gkfw tmp]# iptables -t nat -A POSTROUTING --source 10.0.1.0/24 -o 
eth0 --jump MASQUERADE
iptables: Invalid argument
root@gkfw tmp]# iptables -t nat -A PREROUTING -s 10.0.1.0/24 -p tcp 
--dport 80 -j REDIRECT --to-port 3128
iptables: Invalid argument
[root@gkfw tmp]#

Gustav Karlman wrote:

> Hi.
>
> I'm trying to incorporate the newnat patch (ver 13) by Koepi into my 
> 2.4.18 kernel (I need pptp-nat badly) and are running into some problems.
>
> This is what I did:
>
> A fresh 2.4.18 kernel
>
> Patched it using newnat patch for 2.4.18 i.e ver 13 (patched perfectly 
> without any problems btw)
> Compiled, linked, installed everything ...
> Everything looks OK
>
> Compiled and installed iptables-1.2.6a against the newly built kernel 
> (Everything OK)
>
> The problem arises when I'm trying to load 2 of my rules ...
>
> iptables -t nat -A POSTROUTING -s 10.0.1.0/24 -o eth0 -j MASQUERADE
> iptables -t nat -A PREROUTING -s 10.0.1.0/24 -p tcp --dport 80 -j 
> REDIRECT --to-port 3128
>
> Both commands returns the message: Invalid argument
>
> This is working without the patch, can someon tell me if something has 
> changed or why this doesn't work.
> When I do lsmod ipt_masquerade is loaded and I thought that the chains 
> MASQ... and REDIR... was predefined in the nat table or?
>
> I would be so happy so happy if someone can help me out with this or 
> point me in the right direction.
>
> Regards Gustav Karlman
>




Reply via email to