[TriLUG] netcat - must be doing something stupid
gwbrown1 at gmail.com
Thu Jun 29 14:05:44 EDT 2006
Very good point..the plot thickens:
Machine A: netcat 192.168.x.x 3555
Machine B: nc -l -p 3555
If I try to send a simple "hello world" between the two machines with the
server on OS X and the client on Knoppix the "hello world" never makes it.
However if I switch them around:
Machine A: netcat -l -p 3555
Machine B: netcat 192.168.15.1999 3555
I can send "hello worlds" back and forth as expected.
So it looks like, for whatever reason, I'll have to have the knoppix box
grab the socket and write to it with Machine B (the os x box) as the
client. Why? Dunno. Just is. I'll see how that works out.
On 6/29/06, Brian Henning <brian at strutmasters.com> wrote:
> iptables? I don't know what Knoppix' default ruleset is, but I suspect
> by now (version 4.0 they're up to, right?) it wouldn't be
> "wide-frikkin-open". That'd be my first guess, and is frequently the
> thing I forget when trying to move packets around linux machines.
> In short, make sure the kernel's firewall is accepting connections on
> your port of choice.
> Greg Brown wrote:
> > Machine A: dead PC running Knoppix, all drives are mounted and can be
> > "ls"ed, "df"'ed, etc
> > Machine B: OS X were I'd like to move data from Machine A
> > Machine B (destination): nc -l -p 4444 | tar x
> > Machine A (source): tar cf - * | netcat 192.168.x.x 4444 (where x.x is
> > course machine A)
> > This does not work. No data traverses the network. I've tried many
> > different port numbers. I'm off to bury myself in the man pages again.
> > The
> > directory on Machine B, where I want to transfer the data, is writeable
> > verified with 'touch test.file'.
> > I'm looking at this command and obviously missing something that should
> > jumping right out at me. Any ideas what it is? I'm off to read the man
> > pages again.
> > Greg
> Brian A. Henning
> TriLUG mailing list : http://www.trilug.org/mailman/listinfo/trilug
> TriLUG Organizational FAQ : http://trilug.org/faq/
> TriLUG Member Services FAQ : http://members.trilug.org/services_faq/
More information about the TriLUG