Linux Netfilter discussions
 help / color / mirror / Atom feed
* how to assign a real IP to a PPP host?
@ 2002-11-04  9:37 Patrick van der Smagt
  2002-11-05 13:41 ` How will I mesure my bandwith Sundaram Ramasamy
  2002-11-05 13:45 ` Is this firewall issue Sundaram Ramasamy
  0 siblings, 2 replies; 13+ messages in thread
From: Patrick van der Smagt @ 2002-11-04  9:37 UTC (permalink / raw)
  To: netfilter

Dear Netfilters,

I'm blocked by the following problem.  My host has two IPs on interface 0:
	12.12.12.12
	12.12.12.13
The first IP is its "real" IP on eth0:0, I created the second one to have
it assigned to a ppp-connected client machine.

To my host a second machine is connected over a ppp connection, and it
has the local IP 10.1.0.100.  What I want to do is to give the remote
machine the permanent IP 12.12.12.13.  I want all network traffic for
10.1.0.100=12.12.12.13 (and a cluster of machines behind that) to be
routed through 12.12.12.12.

I've set up iptables as follows to do what I want:
  iptables -t nat -D PREROUTING --dst 12.12.12.13 \
        -j DNAT --to-destination 10.1.0.100
  iptables -t nat -D POSTROUTING --dst 10.1.0.0/24 \
        -j DNAT --to-destination 12.12.12.13
  iptables -t nat -D OUTPUT --dst 12.12.12.13 \
        -j DNAT --to-destination 10.1.0.100
The first and second rule work fine, with those I can reach my machine
10.1.0.100 at address 12.12.12.13 from all hosts, except 12.12.12.12 (of
course). That's what the third rule is for.  However, rule 3 does not
do everything for me.  After setting up all of the above rules, when I
telnet to port 110 from .12 to .13, I receive no answer.  I find in
/proc/net/ip_conntrack on .12:

tcp      6 118 SYN_SENT src=12.12.12.13 dst=12.12.12.13 sport=2996
dport=110 [UNREPLIED] src=10.1.0.100 dst=12.12.12.13 sport=110
dport=2996 use=1

or

tcp      6 57 SYN_RECV src=12.12.12.13 dst=12.12.12.13 sport=2996
dport=110 src=10.1.0.100 dst=12.12.12.13 sport=110
dport=2996 use=1

How do I get this running??  Please help!

Patrick



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

* How will I mesure my bandwith
  2002-11-04  9:37 how to assign a real IP to a PPP host? Patrick van der Smagt
@ 2002-11-05 13:41 ` Sundaram Ramasamy
  2002-11-05 13:50   ` Antony Stone
                     ` (2 more replies)
  2002-11-05 13:45 ` Is this firewall issue Sundaram Ramasamy
  1 sibling, 3 replies; 13+ messages in thread
From: Sundaram Ramasamy @ 2002-11-05 13:41 UTC (permalink / raw)
  To: netfilter

Hi,

We have 512kbps connection to our office, How will I measure my bandwidth.

I used following link, it show only 368.2kbps. Is there any other method to
test this.

Thanks
Sundaram



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

* Is this firewall issue
  2002-11-04  9:37 how to assign a real IP to a PPP host? Patrick van der Smagt
  2002-11-05 13:41 ` How will I mesure my bandwith Sundaram Ramasamy
@ 2002-11-05 13:45 ` Sundaram Ramasamy
  2002-11-05 14:22   ` Antony Stone
  1 sibling, 1 reply; 13+ messages in thread
From: Sundaram Ramasamy @ 2002-11-05 13:45 UTC (permalink / raw)
  To: netfilter

Hi,

I have NATed mail server in my office, sometime users are getting  six,
seven days old mail, some mails they getting towice, is this because of
firewall or some other issue?.

Thanks
-SR



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

* Re: How will I mesure my bandwith
  2002-11-05 13:41 ` How will I mesure my bandwith Sundaram Ramasamy
@ 2002-11-05 13:50   ` Antony Stone
  2002-11-05 15:27     ` Detlef Wengorz
  2002-11-05 14:47   ` Hilko Bengen
  2002-11-05 15:55   ` hare ram
  2 siblings, 1 reply; 13+ messages in thread
From: Antony Stone @ 2002-11-05 13:50 UTC (permalink / raw)
  To: netfilter

On Tuesday 05 November 2002 1:41 pm, Sundaram Ramasamy wrote:

> Hi,
>
> We have 512kbps connection to our office, How will I measure my bandwidth.

You could use a tool such as iptraf http://cebu.mozcom.com/riker/iptraf or 
simply check the byte counts for your external interface at regular intervals.

ifconfig eth0 | grep bytes
will tell you the number of bytes in & out of eth0 - you could set a cron job 
to do this every minute and redirect the results to a file ?

Antony.

-- 

There are only 10 types of people in the world:
those who understand binary notation,
and those who don't.


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

* Re: Is this firewall issue
  2002-11-05 13:45 ` Is this firewall issue Sundaram Ramasamy
@ 2002-11-05 14:22   ` Antony Stone
  2002-11-05 22:50     ` Sundaram Ramasamy
  0 siblings, 1 reply; 13+ messages in thread
From: Antony Stone @ 2002-11-05 14:22 UTC (permalink / raw)
  To: netfilter

On Tuesday 05 November 2002 1:45 pm, Sundaram Ramasamy wrote:

> Hi,
>
> I have NATed mail server in my office, sometime users are getting  six,
> seven days old mail, some mails they getting towice, is this because of
> firewall or some other issue?.

This is very unlikely to be a firewall problem.

What do the headers of the emails say ?   Where is the excessive delay 
occurring ?

Antony.

-- 

It is also possible that putting the birds in a laboratory setting
inadvertently renders them relatively incompetent.

 - Daniel C Dennett


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

* Re: How will I mesure my bandwith
  2002-11-05 13:41 ` How will I mesure my bandwith Sundaram Ramasamy
  2002-11-05 13:50   ` Antony Stone
@ 2002-11-05 14:47   ` Hilko Bengen
  2002-11-05 15:55   ` hare ram
  2 siblings, 0 replies; 13+ messages in thread
From: Hilko Bengen @ 2002-11-05 14:47 UTC (permalink / raw)
  To: Sundaram Ramasamy; +Cc: netfilter

"Sundaram Ramasamy" <sun@percipia.com> writes:

> We have 512kbps connection to our office, How will I measure my
> bandwidth.

If you are interested in more detailed information, my ulog-acctd
(http://savannah.nongnu.org/projects/ulog-acctd) may be the solution
for you.

You can also use a tool like MRTG that looks at the interface byte
counters on a regular basis and puts out nice graphs based on those
numbers. But AFAIK you also need a working SNMP daemon setup for that.

-Hilko


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

* Re: How will I mesure my bandwith
  2002-11-05 13:50   ` Antony Stone
@ 2002-11-05 15:27     ` Detlef Wengorz
  2002-11-05 15:50       ` Antony Stone
  0 siblings, 1 reply; 13+ messages in thread
From: Detlef Wengorz @ 2002-11-05 15:27 UTC (permalink / raw)
  To: netfilter

Antony Stone wrote:
> 
> On Tuesday 05 November 2002 1:41 pm, Sundaram Ramasamy wrote:
> 
> > Hi,
> >
> > We have 512kbps connection to our office, How will I measure my bandwidth.
> 
snip ..

try bing

bing localhost remotehost

-- 
Best regards 
Detlef Wengorz <detlef@abcbtx.de>
Detlef Wengorz <detlefw@isdn4linux.de>


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

* Re: How will I mesure my bandwith
  2002-11-05 15:27     ` Detlef Wengorz
@ 2002-11-05 15:50       ` Antony Stone
  2002-11-05 19:33         ` Chris Poupart
  0 siblings, 1 reply; 13+ messages in thread
From: Antony Stone @ 2002-11-05 15:50 UTC (permalink / raw)
  To: netfilter

On Tuesday 05 November 2002 3:27 pm, Detlef Wengorz wrote:

> On Tuesday 05 November 2002 1:41 pm, Sundaram Ramasamy wrote:
> > Hi,
> >
> > We have 512kbps connection to our office, How will I measure my
> > bandwidth.
>
> try bing
>
> bing localhost remotehost

bash: bing: command not found

Google for bing displays lots of stuff about Mr Crosby, plus some links to 
getting the source from ftp://ftp.ibp.fr which doesn't seem to exist...

Looks like an intriguing way to measure bandwidth - I'd be interested to test 
it and see how reliable the results are - can you suggest where I can get it 
from ?

Antony.

-- 

This email is intended for the use of the individual addressee(s) named above 
and may contain information that is confidential, privileged or unsuitable 
for overly sensitive persons with low self-esteem, no sense of humour, or 
irrational religious beliefs.

If you have received this email in error, you are required to shred it 
immediately, add some nutmeg, three egg whites and a dessertspoonful of 
caster sugar.   Whisk until soft peaks form, then place in a warm oven for 40 
minutes.   Remove promptly and let stand for 2 hours before adding some 
decorative kiwi fruit and cream.   Then notify me immediately by return email 
and eat the original message.


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

* Re: How will I mesure my bandwith
  2002-11-05 13:41 ` How will I mesure my bandwith Sundaram Ramasamy
  2002-11-05 13:50   ` Antony Stone
  2002-11-05 14:47   ` Hilko Bengen
@ 2002-11-05 15:55   ` hare ram
  2 siblings, 0 replies; 13+ messages in thread
From: hare ram @ 2002-11-05 15:55 UTC (permalink / raw)
  To: Sundaram Ramasamy, netfilter

MRTG

hare
----- Original Message -----
From: "Sundaram Ramasamy" <sun@percipia.com>
To: <netfilter@lists.netfilter.org>
Sent: Tuesday, November 05, 2002 7:11 PM
Subject: How will I mesure my bandwith


> Hi,
>
> We have 512kbps connection to our office, How will I measure my bandwidth.
>
> I used following link, it show only 368.2kbps. Is there any other method
to
> test this.
>
> Thanks
> Sundaram
>
>
>



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

* RE: How will I mesure my bandwith
@ 2002-11-05 15:59 Heupink, Mourik Jan C.
  0 siblings, 0 replies; 13+ messages in thread
From: Heupink, Mourik Jan C. @ 2002-11-05 15:59 UTC (permalink / raw)
  To: netfilter

just add download to the search 
(http://www.google.com/search?q=bing+bandwidth+download&sourceid=opera&num=0
&ie=utf-8&oe=utf-8)
and the fist hit IS valid :)

can't get it to compile, though....

> -----Original Message-----
> From: Antony Stone [mailto:Antony@Soft-Solutions.co.uk]
> Sent: Tuesday, November 05, 2002 16:50
> To: netfilter@lists.netfilter.org
> Subject: Re: How will I mesure my bandwith
> 
> 
> On Tuesday 05 November 2002 3:27 pm, Detlef Wengorz wrote:
> 
> > On Tuesday 05 November 2002 1:41 pm, Sundaram Ramasamy wrote:
> > > Hi,
> > >
> > > We have 512kbps connection to our office, How will I measure my
> > > bandwidth.
> >
> > try bing
> >
> > bing localhost remotehost
> 
> bash: bing: command not found
> 
> Google for bing displays lots of stuff about Mr Crosby, plus 
> some links to 
> getting the source from ftp://ftp.ibp.fr which doesn't seem 
> to exist...
> 
> Looks like an intriguing way to measure bandwidth - I'd be 
> interested to test 
> it and see how reliable the results are - can you suggest 
> where I can get it 
> from ?
> 
> Antony.
> 
> -- 
> 
> This email is intended for the use of the individual 
> addressee(s) named above 
> and may contain information that is confidential, privileged 
> or unsuitable 
> for overly sensitive persons with low self-esteem, no sense 
> of humour, or 
> irrational religious beliefs.
> 
> If you have received this email in error, you are required to 
> shred it 
> immediately, add some nutmeg, three egg whites and a 
> dessertspoonful of 
> caster sugar.   Whisk until soft peaks form, then place in a 
> warm oven for 40 
> minutes.   Remove promptly and let stand for 2 hours before 
> adding some 
> decorative kiwi fruit and cream.   Then notify me immediately 
> by return email 
> and eat the original message.
> 


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

* Re: How will I mesure my bandwith
@ 2002-11-05 17:43 Payal
  0 siblings, 0 replies; 13+ messages in thread
From: Payal @ 2002-11-05 17:43 UTC (permalink / raw)
  To: netfilter

Hi,
Please try darkstat. it is pretty cool one and easy to install. It runs
on port 666 by default and you can access it with,
http://1.2.3.4:666
where 1.2.3.4 is your ip.
Thanks and bye.
-Payal
-- 
Pauca sed matura.
	[Few but excellent.]
		-- Gauss


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

* Re: How will I mesure my bandwith
  2002-11-05 15:50       ` Antony Stone
@ 2002-11-05 19:33         ` Chris Poupart
  0 siblings, 0 replies; 13+ messages in thread
From: Chris Poupart @ 2002-11-05 19:33 UTC (permalink / raw)
  To: Antony Stone, netfilter

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

Antony Stone wrote:
>>try bing
>>
>>bing localhost remotehost
> 
> 
> bash: bing: command not found
> 
> Google for bing displays lots of stuff about Mr Crosby, plus some links to 
> getting the source from ftp://ftp.ibp.fr which doesn't seem to exist...
> 
> Looks like an intriguing way to measure bandwidth - I'd be interested to test 
> it and see how reliable the results are - can you suggest where I can get it 
> from ?
> 
> Antony.

Debian has a pacakge for it, (apt-get install bing), so if you can 
install DEBs you can get it from 
http://packages.debian.org/stable/net/bing.html

Reading the README that came with, you can get new releases at 
http://www.freenix.org/reseau/outils.html

The site might be in French mind you.

-- Chris

[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/x-pkcs7-signature, Size: 3249 bytes --]

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

* Re: Is this firewall issue
  2002-11-05 14:22   ` Antony Stone
@ 2002-11-05 22:50     ` Sundaram Ramasamy
  0 siblings, 0 replies; 13+ messages in thread
From: Sundaram Ramasamy @ 2002-11-05 22:50 UTC (permalink / raw)
  To: Antony Stone, netfilter


This is what I have in the mail header. He send it Oct 31st but we received
November 3rd.

Thanks for your help
-Sundaram

content-class: urn:content-classes:message

MIME-Version: 1.0

Content-Type: text/plain;

charset="iso-8859-1"

Subject: RE: Upgrade Requirements

Date: Thu, 31 Oct 2002 17:22:35 -0500

Message-ID:

<F39DC9ED31373244ACA87544CF8E746E019BE3D7@ACCLUST01EVS1.ugd.att.com>

X-MS-Has-Attach:

X-MS-TNEF-Correlator:

Thread-Topic: Upgrade Requirements

Thread-Index: AcKBIdduSxf/BqVbTYioGqTNVZYVxgACbTzw

From: "Roy, Partha, CSCIO" <partharoy@att.com>

To: "Balkee Balakrishnan" <balkee@percipia.com>

Content-Transfer-Encoding: 8bit

X-MIME-Autoconverted: from quoted-printable to 8bit by mail.percipia.com id

gA3Gvk4O028334

X-UIDL: /'c"!WYh!!@VJ!!DK1!!





----- Original Message -----
From: "Antony Stone" <Antony@Soft-Solutions.co.uk>
To: <netfilter@lists.netfilter.org>
Sent: Tuesday, November 05, 2002 9:22 AM
Subject: Re: Is this firewall issue


> On Tuesday 05 November 2002 1:45 pm, Sundaram Ramasamy wrote:
>
> > Hi,
> >
> > I have NATed mail server in my office, sometime users are getting  six,
> > seven days old mail, some mails they getting towice, is this because of
> > firewall or some other issue?.
>
> This is very unlikely to be a firewall problem.
>
> What do the headers of the emails say ?   Where is the excessive delay
> occurring ?
>
> Antony.
>
> --
>
> It is also possible that putting the birds in a laboratory setting
> inadvertently renders them relatively incompetent.
>
>  - Daniel C Dennett
>



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

end of thread, other threads:[~2002-11-05 22:50 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-11-04  9:37 how to assign a real IP to a PPP host? Patrick van der Smagt
2002-11-05 13:41 ` How will I mesure my bandwith Sundaram Ramasamy
2002-11-05 13:50   ` Antony Stone
2002-11-05 15:27     ` Detlef Wengorz
2002-11-05 15:50       ` Antony Stone
2002-11-05 19:33         ` Chris Poupart
2002-11-05 14:47   ` Hilko Bengen
2002-11-05 15:55   ` hare ram
2002-11-05 13:45 ` Is this firewall issue Sundaram Ramasamy
2002-11-05 14:22   ` Antony Stone
2002-11-05 22:50     ` Sundaram Ramasamy
  -- strict thread matches above, loose matches on Subject: below --
2002-11-05 15:59 How will I mesure my bandwith Heupink, Mourik Jan C.
2002-11-05 17:43 Payal

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