* n00b question..... How to get details on active connections
2003-09-19 15:28 NAT and MTU issues Nigel Metheringham
@ 2003-09-20 9:15 ` Paul Gibson
2003-09-20 16:09 ` Nox
0 siblings, 1 reply; 4+ messages in thread
From: Paul Gibson @ 2003-09-20 9:15 UTC (permalink / raw)
To: netfilter
Hello,
I know this is a n00b question but how can I get details of active
connections, eg what inside address/pc is connected to what outside address
???
TIA
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: n00b question..... How to get details on active connections
2003-09-20 9:15 ` n00b question..... How to get details on active connections Paul Gibson
@ 2003-09-20 16:09 ` Nox
0 siblings, 0 replies; 4+ messages in thread
From: Nox @ 2003-09-20 16:09 UTC (permalink / raw)
To: paul.gibson; +Cc: netfilter
On Sat, 2003-09-20 at 05:15, Paul Gibson wrote:
> Hello,
>
> I know this is a n00b question but how can I get details of active
> connections, eg what inside address/pc is connected to what outside address
> ???
Do you mean connections through the Firewall?
Something like /proc/net/ip_conntrack will tell you the active
connections. (might be /proc/net/ipv4/ip_conntrack on your box)
If you mean just the box your on, something like a netstat will do that
Hope that helps
Nox
GenMicro Systems
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: n00b question..... How to get details on active connections
[not found] <1064120968.782.626.camel@shaolin.gridlocksecurity.com>
@ 2003-09-23 14:40 ` Stack Buffer
2003-09-23 15:59 ` Nox
0 siblings, 1 reply; 4+ messages in thread
From: Stack Buffer @ 2003-09-23 14:40 UTC (permalink / raw)
To: Nox; +Cc: netfilter
Hi Nox
Well I did manage to get the kernel compiled (Redhat
9.0)
kernel 2.4.20-8,
and it booted the system fine, although I think it is
pretty large.
I was not sure of the following though and I hope u
can help clearify thing for me:
1) IP:Multicasting.
2) IP:Policy Routing.
3) IP:Use netfilter mark value as router.
4) IP:TCP syncookie support.
Plus also I compiled in everything under the netfilter
configuration and also everything under Qos and/or
Fair queueing. Is that over kill to compile all those
otions in?. What are the trade off of compiling
(netfilter stuff) things as modules,rather than
directly into the kernel, will I lose any
functionality.
I will be very thankful for any help.
Thanks
Cheers
__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: n00b question..... How to get details on active connections
2003-09-23 14:40 ` n00b question..... How to get details on active connections Stack Buffer
@ 2003-09-23 15:59 ` Nox
0 siblings, 0 replies; 4+ messages in thread
From: Nox @ 2003-09-23 15:59 UTC (permalink / raw)
To: Stack Buffer; +Cc: netfilter
Good mourning Stack.
1 - 4 of those modules, I dont have installed into my filter,
but I am not doing te same as you, so Im not sure if youll need them or
not.
The best way would be to compile them as modules,
the reason being that they are loaded during boot up, rather than
directly into your kernel, making things boot faster.
I dont have anything from under QOS either, so you may not need that
Item 1 & 2,
1) IP:Multicasting.
>
> 2) IP:Policy Routing.
those you may need, but the others I think you can get rid of.
the file that contains the modules is:
/etc/modules & /etc/modules.conf
I think adding all those are a little bit overkill,
I dont think youll ever use most of the
Qos and/or
Fair queueing
stuff, so try it without that
Ip Multicast is for,
One host sending a packet to all nodes on a multicast network.
(Ive never used it)
The reason for this is, save bandwidth.
Instead of sending one single packet to 10 machines, which results in 10
packets on the network, you send one packet to 10 hosts,
at once.
Policy Routing
Is exactly what it sounds like,
instead of having routes in your routing table, you can create rules in
your Iptables, for routing connections
Much more control of where those routes go, logging on the routing
of those connections, etc. I think you should leave this, as it comes in
handy
Use netfilter as mark:(from manpage)
The MARK target is used to set Netfilter mark values that are associated
with specific packets. This target is only valid in the mangle table,
and will not work outside there. The MARK values may be used in
conjunction with the advanced routing capabilities in Linux to send
different packets through different routes and to tell them to use
different queue disciplines (qdisc), etc. For more information on
advanced routing, check out the Linux Advanced Routing and Traffic
Control HOW-TO. Note that the mark value is not set within the actual
package, but is an value that is associated within the kernel with the
packet. In other words, you can not set a MARK for a packet and then
expect the MARK still to be there on another host. If this is what you
want, you will be better off with the TOS target which will mangle the
TOS value in the IP header.
TCP_syncookies.
Send out syncookies when the syn backlog queue of a socket
overflows. This is to prevent against the common 'syn flood attack'
could come in handy
Good job with your first Kernel compile.
Let me know how the rest goes.
Nox
GenMicro Systems
On Tue, 2003-09-23 at 10:40, Stack Buffer wrote:
> Hi Nox
>
> Well I did manage to get the kernel compiled (Redhat
> 9.0)
> kernel 2.4.20-8,
> and it booted the system fine, although I think it is
> pretty large.
> I was not sure of the following though and I hope u
> can help clearify thing for me:
>
> 1) IP:Multicasting.
>
> 2) IP:Policy Routing.
>
> 3) IP:Use netfilter mark value as router.
>
> 4) IP:TCP syncookie support.
>
> Plus also I compiled in everything under the netfilter
> configuration and also everything under Qos and/or
> Fair queueing. Is that over kill to compile all those
> otions in?. What are the trade off of compiling
> (netfilter stuff) things as modules,rather than
> directly into the kernel, will I lose any
> functionality.
> I will be very thankful for any help.
> Thanks
> Cheers
>
>
> __________________________________
> Do you Yahoo!?
> Yahoo! SiteBuilder - Free, easy-to-use web site design software
> http://sitebuilder.yahoo.com
>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2003-09-23 15:59 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <1064120968.782.626.camel@shaolin.gridlocksecurity.com>
2003-09-23 14:40 ` n00b question..... How to get details on active connections Stack Buffer
2003-09-23 15:59 ` Nox
2003-09-19 15:28 NAT and MTU issues Nigel Metheringham
2003-09-20 9:15 ` n00b question..... How to get details on active connections Paul Gibson
2003-09-20 16:09 ` Nox
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox