All of lore.kernel.org
 help / color / mirror / Atom feed
* ipt_iplimit - IPtables 1.2.7a - Kernel 2.4.18 Issue Resolved
@ 2002-09-29 11:18 hard__ware
  2002-09-29 12:22 ` Anders Fugmann
  2002-09-29 12:45 ` Antony Stone
  0 siblings, 2 replies; 4+ messages in thread
From: hard__ware @ 2002-09-29 11:18 UTC (permalink / raw)
  To: netfilter

Hello Eveyone .. :D

just been doing alot of kernel patching / hacking lately with Netfilter , (i
luv it :-D ).

I found that with iptables 1.2.7a  Tar.gz & the Patch-o-matic for it, that
when you include

the ipt_iplimit Extension (Info at
http://www.netfilter.org/documentation/pomlist/pom-base.html#iplimit )

When using this on a RH 7.3 system with a custom 2.4.18-10 kernel i found
that the Module compiles with insmod erros becuase of an unresloved symbol
..

went for a bit of google to find to many differnet patchs on this subjct so
i decided to do it myself,,,

To my amusment it actually worked ? ( what i broke im not sure, but it works
great fo me. )
may require a little rule tweaking in your firewall script to get it working
well.

here is what i included to the Redhat 7.3  Kernel 2.4.18-10 Source before a
Re-Compile..

-------------------------------------------
+ ~src/linux-2.4/net/ipv4/netfilter/Makefile
+++
+ O_TARGET := netfilter.o
-+ M_OPJS := ipt_iplimit.o

#### here is what is used to be ####
---
- O_TARGET := netfilter.o
-
---------------end of patch---------------

---------This one goes near of file--------
+ ~src/linux-2.4/net/ipv4/netfilter/ip_conntrack_standalone.c
+++
+EXPORT_SYMBOL(ip_conntrack_expected_related);
+EXPORT_SYMBOL(ip_conntrack_unexpected_related);
-+EXPORT_SYMBOL(ip_conntrack_find_get);
+EXPORT_SYMBOL(ip_conntrack_tuple_taken);

---
-EXPORT_SYMBOL(ip_conntrack_expected_related);
-EXPORT_SYMBOL(ip_conntrack_unexpected_related);
-EXPORT_SYMBOL(ip_conntrack_tuple_taken);
--------------------EOP-------------------

Now Make sure you re-do your Kernel Config...

#### In the Netfilter section it will come up with a (NEW)
#### ipt_iplimit select (m) or yes and compile it in.. :D
### Run the following from your Kernel SRC Dir  ####
###   For you first time newb's plz run /> make mrproper # First, Thanks #

make config

### This next one cleans out any other build we preformed previously ###
make clean

### Now here's a real nice one. Sick of two many connetions being tracked by
netfilter that are not even ### being used or conntrack's that didnt recive
a CLOSE or FIN message, this way you can lower the ### default Time To Tive
for TCP connection tracking while using NetFilter / Iptables.  Try setting
the
### time value's in this lower,  Expecially the one that Says 5 Bloody Days
???? What Tha ??? ---->
###  --- 5 DAYS, /* TCP_CONNTRACK_ESTABLISHED, */

+++
here is what is did to my test box, ( Dual PIII 866 1024 MB SDRAM 2.4.18-10
SMP Custom)
+++
+ ~src/linux-2.4/net/ipv4/netfilter/ip_conntrack_proto_tcp.c

= { 30 MINS,  /* TCP_CONNTRACK_NONE, */
    30 MINS, /* TCP_CONNTRACK_ESTABLISHED, */
    2 MINS, /* TCP_CONNTRACK_SYN_SENT, */
    60 SECS, /* TCP_CONNTRACK_SYN_RECV, */
    2 MINS, /* TCP_CONNTRACK_FIN_WAIT, */
    1 MINS, /* TCP_CONNTRACK_TIME_WAIT, */
    12 SECS, /* TCP_CONNTRACK_CLOSE, */
    1 MINS, /* TCP_CONNTRACK_CLOSE_WAIT, */
    60 SECS, /* TCP_CONNTRACK_LAST_ACK, */
    2 MINS, /* TCP_CONNTRACK_LISTEN, */
};
------------------------EOP-----------------------------

#### now we can continue on with our mission ..#####

make dep
make bzImage
make modules
make modules_install

#### and if all goes well (like my Dual P3) it compiles with no errors and
you wont gets Insmod errors ect


....

anyway let me know what yas think :D

catch ya

Hard__warE

{the void has struck}









^ permalink raw reply	[flat|nested] 4+ messages in thread
* RE: ipt_iplimit - IPtables 1.2.7a - Kernel 2.4.18 Issue Resolved
@ 2002-09-29 14:18 hard__ware
  0 siblings, 0 replies; 4+ messages in thread
From: hard__ware @ 2002-09-29 14:18 UTC (permalink / raw)
  To: netfilter

Hey Antony,

how are you ,,

>Please don't refer to the connection timeout values as Time To Live,
>especially if you put it in comments or documentation for any patches you
>submit - it'll confuse people.

Sorry its just, thats what /proc/net/ip_conntrack says it is and in a few
other docs i have come acoss
 but im not going to argue ... :P

>Time To Live refers to the number of router hops an IP packet is allowed to
>go through.

oh my mistake you are correct, Thanks.

>Antony.
>--
>
>Software development can be quick, high-quality, or low-cost.
>
>The customer gets to pick any two out of three.

I totaly agree, same thing apply's to building computers .. :-)

----------------------------------------------------------------
Also a note to Anders Fugmann,

this is my first actual hack that i had to do myself to NetFilter ..
sorry if you could not read my dumbfounded english ... :P

where i have specified the -+ this means you need to include the code
aftwards
to the file Mentiond above ie ..
~src/linux-2.4/net/ipv4/netfilter/ip_conntrack_standalone.c

where i have specified a dash --- this is the old file (not all of it)
just to show that the -+ line was never there, sorry got work on my
Communication skills & Include Pacth Documentation ...

Thanks for the coment, :D

Good Nite...

{What iz a bed for ? defently not sleep.}


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

end of thread, other threads:[~2002-09-29 14:18 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-09-29 11:18 ipt_iplimit - IPtables 1.2.7a - Kernel 2.4.18 Issue Resolved hard__ware
2002-09-29 12:22 ` Anders Fugmann
2002-09-29 12:45 ` Antony Stone
  -- strict thread matches above, loose matches on Subject: below --
2002-09-29 14:18 hard__ware

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.