Linux Netfilter discussions
 help / color / mirror / Atom feed
* port forwarding with one interface to trace traffic?
@ 2004-01-21 15:45 Rasca
  2004-01-21 16:16 ` Caracal - G. Hostettler
  2004-01-21 22:07 ` Antony Stone
  0 siblings, 2 replies; 8+ messages in thread
From: Rasca @ 2004-01-21 15:45 UTC (permalink / raw)
  To: netfilter

Hi IP-gurus,

I want to setup a specific port forwarding to trace the
ip traffic between a macos9 and a hp net printer to debug
a spooler problem.

I thought the port forwarding feature of linux/iptables
would be nice to do that. But until now I wasn't able
to get it running ;-(

May be some one can help here. The setup is quite simple.

* one class C net (192.168.10.0)
* a linux box with one interface (eth0), kernel 2.4.24
   and iptables 1.2.9 (192.168.10.156

* macos9 machine with 9.2.x (192.168.10...)

* HP laser printer with network interface (192.168.10.9)

I want to configure the Mac to print to the linux box.
The linux box should do port forwarding to the hp printer.
So I can use "ethereal" or what ever to dump the traffic.

Because it's not a firewall all chains have as default
"accept".

I added the following rule (which seems not to be enough,
cause the printing freezes):

iptables -t nat -A PREROUTING -p tcp --dport 515 \
	-d 192.168.10.156/32 -j DNAT --to-dest 192.168.10.9:515

Any ideas?

thx + cu
  rasca


-- 
_______________________________________________________________
| Triad Berlin Projektgesellschaft mbH | http://www.triad.de/ |



^ permalink raw reply	[flat|nested] 8+ messages in thread
* RE: port forwarding with one interface to trace traffic?
@ 2004-01-22 15:33 Piers Finlayson
  0 siblings, 0 replies; 8+ messages in thread
From: Piers Finlayson @ 2004-01-22 15:33 UTC (permalink / raw)
  To: netfilter

Also be warned that many "hubs" on the market are actually switches.  I find
this terribly annoying.

Cheers,
Piers

-----Original Message-----
From: Rasca [mailto:rasca-ml@triad.de]
Sent: 22 January 2004 13:37
To: Jeffrey Laramie
Cc: netfilter@lists.netfilter.org
Subject: Re: port forwarding with one interface to trace traffic?


Hi,

Jeffrey Laramie schrieb:
> 
>>
>> 3. Connect a hub (not a switch) to the printer's ethernet cable (or to 
>> the Mac's ethernet cable), and plug the Linux machine running ethereal 
>> into the hub, so you can sniff the packets off the wire without any NAT.
>>  
>>
> 
> This is dangerously OT, but what's the difference? I always thought that 
> the difference between a switch and a hub was simply a matter of 
> internal plumbing that affected how the pipes were connected and had no 
> effect on the actual tcp/ip connections. I've used them interchangeably 
> and haven't seen a difference. Maybe someone has a link that could 
> educate me more better! :-)

A "hub" broadcasts all packets to all port. And yes - that was
the way I choosed, cause it's more simple to setup (I found an
old hub..) and it's working.

thx to Antony.

cu
  rasca

-- 
_______________________________________________________________
| Triad Berlin Projektgesellschaft mbH | http://www.triad.de/ |



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

end of thread, other threads:[~2004-01-22 15:33 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-01-21 15:45 port forwarding with one interface to trace traffic? Rasca
2004-01-21 16:16 ` Caracal - G. Hostettler
2004-01-21 16:46   ` Rasca
2004-01-21 22:07 ` Antony Stone
2004-01-22 13:16   ` Jeffrey Laramie
2004-01-22 13:36     ` Rasca
2004-01-22 13:39     ` PPTP and GRE Jan Kaastrup
  -- strict thread matches above, loose matches on Subject: below --
2004-01-22 15:33 port forwarding with one interface to trace traffic? Piers Finlayson

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