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
* 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

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