Linux Netfilter discussions
 help / color / mirror / Atom feed
* RE: IPTables Logging Problem.
@ 2002-12-03  8:43 mailinglists
  2002-12-03 10:28 ` Using PRIO qdisc Andreas Wright
  2002-12-03 10:41 ` Multible Links with Transparent Cache hare ram
  0 siblings, 2 replies; 7+ messages in thread
From: mailinglists @ 2002-12-03  8:43 UTC (permalink / raw)
  To: 'Amit Kumar Gupta', netfilter


Hi

> I am having a problem reg IPtables Logging. Suppose I want to LOG all
> the packets for a particular session. How I can do that? 
> (Here, Session
> say telnet is established b/w 2 hosts and I want to Log all 
> the packets
> on host A (say) i.e. the outgoing and incoming packets). 
> I know abt the commans :-
> 
> Iptables -A INPUT -s HOSTA -d HOSTB -p tcp -sport 21 -j LOG 

What kind of rule is that? does your client build up a connection from low
ports to low ports? My computer doesn't do that. But to answer your
question:

iptables -A OUTPUT -s HOSTB -d HOSTA -p 6 --dport 21 -j LOG

will solve your problem.

> But it logs only packets from HostA to HostB 

of course

> while I want the reverse
> also. 

put in that second rule.

Philipp


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

* Using PRIO qdisc
  2002-12-03  8:43 IPTables Logging Problem mailinglists
@ 2002-12-03 10:28 ` Andreas Wright
  2002-12-03 10:41 ` Multible Links with Transparent Cache hare ram
  1 sibling, 0 replies; 7+ messages in thread
From: Andreas Wright @ 2002-12-03 10:28 UTC (permalink / raw)
  To: netfilter

[-- Attachment #1: Type: text/plain, Size: 465 bytes --]


Hello ,

I want to use PRIO qdisc to priortize packets coming from a known IP address.Can I specify a filter along with PRIO qdisc instead of using the default priomap.

tc qdisc add dev eth0 root handle 1 : [filter]

If such a filter is possible what would be the syntax for specifying the IP address for example 1.2.3.4

Regards,

Andreas.




---------------------------------
With Yahoo! Mail you can get a bigger mailbox -- choose a size that fits your needs

[-- Attachment #2: Type: text/html, Size: 651 bytes --]

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

* Multible Links with Transparent Cache
  2002-12-03  8:43 IPTables Logging Problem mailinglists
  2002-12-03 10:28 ` Using PRIO qdisc Andreas Wright
@ 2002-12-03 10:41 ` hare ram
  2002-12-03 13:02   ` Rasmus Reinholdt Nielsen
  1 sibling, 1 reply; 7+ messages in thread
From: hare ram @ 2002-12-03 10:41 UTC (permalink / raw)
  To: netfilter

Hi all

i am running with RedHat 7.3 with iptables + transparent Cache
its working well

no i have added another Link to My network with another Provider
now i want to Load Balance with Two Links

At now iam running both with 2 Different Server,

iam planning to do below

 eth0 with Public IP x.x.x.x gateway x.x.x.1
 eht0:0 with Private IP (ADSL)  which is provided another Provider
192.168.3.2 gateway is 192.168.3.1

i have LAN with 2 networks at this moment with 2 servers

one Server Serving 192.168.2.0 network Going to First Link
another Server Serving 192.168.20.0 network Going to Second Link

i want  to load balance with this two network with One Server with
Transparent cache,
the cache and routing should automatically load Balance the Links

one link is 128kbps another is 256kbps Link

any one recomend how to do this

thanks
hare



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

* Re: Multible Links with Transparent Cache
  2002-12-03 10:41 ` Multible Links with Transparent Cache hare ram
@ 2002-12-03 13:02   ` Rasmus Reinholdt Nielsen
  2002-12-03 13:06     ` hare ram
  2002-12-03 13:41     ` Tc & Suse Linux Andreas Wright
  0 siblings, 2 replies; 7+ messages in thread
From: Rasmus Reinholdt Nielsen @ 2002-12-03 13:02 UTC (permalink / raw)
  To: hare ram, netfilter

Take a look at
http://www.linuxvirtualserver.org/~julian/nano.txt

its working for me.

/Rasmus

At 16:11 03-12-2002 +0530, hare ram wrote:
>Hi all
>
>i am running with RedHat 7.3 with iptables + transparent Cache
>its working well
>
>no i have added another Link to My network with another Provider
>now i want to Load Balance with Two Links
>
>At now iam running both with 2 Different Server,
>
>iam planning to do below
>
>  eth0 with Public IP x.x.x.x gateway x.x.x.1
>  eht0:0 with Private IP (ADSL)  which is provided another Provider
>192.168.3.2 gateway is 192.168.3.1
>
>i have LAN with 2 networks at this moment with 2 servers
>
>one Server Serving 192.168.2.0 network Going to First Link
>another Server Serving 192.168.20.0 network Going to Second Link
>
>i want  to load balance with this two network with One Server with
>Transparent cache,
>the cache and routing should automatically load Balance the Links
>
>one link is 128kbps another is 256kbps Link
>
>any one recomend how to do this
>
>thanks
>hare



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

* Re: Multible Links with Transparent Cache
  2002-12-03 13:02   ` Rasmus Reinholdt Nielsen
@ 2002-12-03 13:06     ` hare ram
  2002-12-03 13:26       ` Rasmus Reinholdt Nielsen
  2002-12-03 13:41     ` Tc & Suse Linux Andreas Wright
  1 sibling, 1 reply; 7+ messages in thread
From: hare ram @ 2002-12-03 13:06 UTC (permalink / raw)
  To: netfilter, Rasmus Reinholdt Nielsen

Hi

thanks for the reply
what is your setup are you using Redhat
did you able to prioritize the traffic, either HTB or CBQ

hare
----- Original Message ----- 
From: "Rasmus Reinholdt Nielsen" <rasmus@narani.dk>
To: "hare ram" <hareram@sol.net.in>; <netfilter@lists.netfilter.org>
Sent: Tuesday, December 03, 2002 6:32 PM
Subject: Re: Multible Links with Transparent Cache


> Take a look at
> http://www.linuxvirtualserver.org/~julian/nano.txt
> 
> its working for me.
> 
> /Rasmus
> 
> At 16:11 03-12-2002 +0530, hare ram wrote:
> >Hi all
> >
> >i am running with RedHat 7.3 with iptables + transparent Cache
> >its working well
> >
> >no i have added another Link to My network with another Provider
> >now i want to Load Balance with Two Links
> >
> >At now iam running both with 2 Different Server,
> >
> >iam planning to do below
> >
> >  eth0 with Public IP x.x.x.x gateway x.x.x.1
> >  eht0:0 with Private IP (ADSL)  which is provided another Provider
> >192.168.3.2 gateway is 192.168.3.1
> >
> >i have LAN with 2 networks at this moment with 2 servers
> >
> >one Server Serving 192.168.2.0 network Going to First Link
> >another Server Serving 192.168.20.0 network Going to Second Link
> >
> >i want  to load balance with this two network with One Server with
> >Transparent cache,
> >the cache and routing should automatically load Balance the Links
> >
> >one link is 128kbps another is 256kbps Link
> >
> >any one recomend how to do this
> >
> >thanks
> >hare
> 
> 
> 



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

* Re: Multible Links with Transparent Cache
  2002-12-03 13:06     ` hare ram
@ 2002-12-03 13:26       ` Rasmus Reinholdt Nielsen
  0 siblings, 0 replies; 7+ messages in thread
From: Rasmus Reinholdt Nielsen @ 2002-12-03 13:26 UTC (permalink / raw)
  To: hare ram, netfilter

i'm on a redhat 7.3 with kernel 2.4.19-pre9 patched from 
http://www.linuxvirtualserver.org/~julian/#routes-2.4 and buildt with 
multiple routes
and almost everything else under routing and netfilter, as described in the 
http://www.linuxvirtualserver.org/~julian/nano.txt howto. It's not as hard 
as it seams at first glance. Actually the only thing you need is a static 
ip for both your uplinks and go through the howto and your done.

/Rasmus

I'am using HTB, but to the best of my knowledge CBQ should work just as well.

At 18:36 03-12-2002 +0530, hare ram wrote:
>Hi
>
>thanks for the reply
>what is your setup are you using Redhat
>did you able to prioritize the traffic, either HTB or CBQ
>
>hare
>----- Original Message -----
>From: "Rasmus Reinholdt Nielsen" <rasmus@narani.dk>
>To: "hare ram" <hareram@sol.net.in>; <netfilter@lists.netfilter.org>
>Sent: Tuesday, December 03, 2002 6:32 PM
>Subject: Re: Multible Links with Transparent Cache
>
>
> > Take a look at
> > http://www.linuxvirtualserver.org/~julian/nano.txt
> >
> > its working for me.
> >
> > /Rasmus
> >
> > At 16:11 03-12-2002 +0530, hare ram wrote:
> > >Hi all
> > >
> > >i am running with RedHat 7.3 with iptables + transparent Cache
> > >its working well
> > >
> > >no i have added another Link to My network with another Provider
> > >now i want to Load Balance with Two Links
> > >
> > >At now iam running both with 2 Different Server,
> > >
> > >iam planning to do below
> > >
> > >  eth0 with Public IP x.x.x.x gateway x.x.x.1
> > >  eht0:0 with Private IP (ADSL)  which is provided another Provider
> > >192.168.3.2 gateway is 192.168.3.1
> > >
> > >i have LAN with 2 networks at this moment with 2 servers
> > >
> > >one Server Serving 192.168.2.0 network Going to First Link
> > >another Server Serving 192.168.20.0 network Going to Second Link
> > >
> > >i want  to load balance with this two network with One Server with
> > >Transparent cache,
> > >the cache and routing should automatically load Balance the Links
> > >
> > >one link is 128kbps another is 256kbps Link
> > >
> > >any one recomend how to do this
> > >
> > >thanks
> > >hare
> >
> >
> >



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

* Tc & Suse Linux
  2002-12-03 13:02   ` Rasmus Reinholdt Nielsen
  2002-12-03 13:06     ` hare ram
@ 2002-12-03 13:41     ` Andreas Wright
  1 sibling, 0 replies; 7+ messages in thread
From: Andreas Wright @ 2002-12-03 13:41 UTC (permalink / raw)
  To: netfilter

[-- Attachment #1: Type: text/plain, Size: 252 bytes --]


Hello ,

I am using Suse Linux version 2.4.5.Is tc utility available for this version along with iproute2 ?.

Regards.

Andreas.




---------------------------------
With Yahoo! Mail you can get a bigger mailbox -- choose a size that fits your needs

[-- Attachment #2: Type: text/html, Size: 399 bytes --]

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

end of thread, other threads:[~2002-12-03 13:41 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-12-03  8:43 IPTables Logging Problem mailinglists
2002-12-03 10:28 ` Using PRIO qdisc Andreas Wright
2002-12-03 10:41 ` Multible Links with Transparent Cache hare ram
2002-12-03 13:02   ` Rasmus Reinholdt Nielsen
2002-12-03 13:06     ` hare ram
2002-12-03 13:26       ` Rasmus Reinholdt Nielsen
2002-12-03 13:41     ` Tc & Suse Linux Andreas Wright

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox