Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
"Corrupted MAC address" error with ssh
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Newtanknurse
n00b
n00b


Joined: 15 Jan 2005
Posts: 56

PostPosted: Sun Feb 13, 2005 2:36 pm    Post subject: "Corrupted MAC address" error with ssh Reply with quote

when using ssh, across the internet to another machine (or locally on the local wireless network) i occasionally get the error
Quote:
Disconnecting: Corrupted MAC on input.
This can become quite annoying while attempting to remotly administer a machine as it dies at the same point in the emerge, or at the same point when I fire up certain apps (gkrellm2 system monitor is able to start and give a display for approximatly 10 seconds before it throws this error.) Googling does not seem to give a concrete answer, and i havent been able to even find a referance to this error on the forums, so perhaps this is just me????
[/code]
Anyway, hopefully its a simple fix, I'm trying to get this working.....
Back to top
View user's profile Send private message
darkphader
Veteran
Veteran


Joined: 09 May 2002
Posts: 1225
Location: Motown

PostPosted: Sun Feb 13, 2005 3:07 pm    Post subject: Reply with quote

Did you see this post?
http://monkey.org/openbsd/archive/misc/0207/msg02592.html
Just a shot in the dark.
_________________
WYSIWYG - What You See Is What You Grep
Back to top
View user's profile Send private message
Newtanknurse
n00b
n00b


Joined: 15 Jan 2005
Posts: 56

PostPosted: Sun Feb 13, 2005 3:11 pm    Post subject: Reply with quote

actually i did see that one, yet I do not use the linksys, i happen to have a netgear.....But the issue remains, what is the problem here, no other apps have a problem that i can see but ssh, and ssh works except during certain operations, emerging certain packages is fine, yet others fail at exactly the same spot......
Back to top
View user's profile Send private message
darkphader
Veteran
Veteran


Joined: 09 May 2002
Posts: 1225
Location: Motown

PostPosted: Sun Feb 13, 2005 3:21 pm    Post subject: Reply with quote

From googling one gets the feeling that it does seem to be a fairly nebulous issue.
You may want to recompile ssh and wget (I think wget is the default tool used by emerge to download) with conservative cflags.
Another possible workaround if the break is caused by communication between your system and the remote one as opposed to the remote system and file archives might be to use "screen". With screen you can disconnect and have the emerge carry along. Then connect at a later point to check it's success.
_________________
WYSIWYG - What You See Is What You Grep
Back to top
View user's profile Send private message
Newtanknurse
n00b
n00b


Joined: 15 Jan 2005
Posts: 56

PostPosted: Sun Feb 13, 2005 3:41 pm    Post subject: Reply with quote

thanks for the screen tip, i had forgotten of its functionality. another work around is to use vnc to log in and if it gets disconnected the vnc session continues dispite being disconnected.....although i dont necessarily like using vnc across insecure networks because of the raw nature of the tunneling it uses, i prefer to use it across tunneled ssh, but then we have the same issue as raw ssh logins...
Back to top
View user's profile Send private message
Newtanknurse
n00b
n00b


Joined: 15 Jan 2005
Posts: 56

PostPosted: Sun Feb 13, 2005 3:53 pm    Post subject: Reply with quote

screen works, but only if you detach the session when firing up the emerge command, i think the issue with the corrupt mac address is that there are random combinations of characters that get interpereted as escapes and into the tcp/ip stream where they get interpereted as MAC addresses, and thus force disconnect.

Using the screen to disconnect so you have a blank screen (except for a prompt) seems to avoid the inadvertant disconnection

I am not advanced enough to be able to prove this theory, but its a start for you guru's out there that are able (and willing) to
Back to top
View user's profile Send private message
darkphader
Veteran
Veteran


Joined: 09 May 2002
Posts: 1225
Location: Motown

PostPosted: Sun Feb 13, 2005 4:28 pm    Post subject: Reply with quote

Newtanknurse wrote:
i think the issue with the corrupt mac address is that there are random combinations of characters that get interpereted as escapes and into the tcp/ip stream where they get interpereted as MAC addresses, and thus force disconnect.


Except the MAC in this case means Message Authentication Code and is like a CRC checksum, and not Media Access Control - the NICs hardware address.

Most issues I've found seem to be related to faulty hardware. Looks like many SOHO router issues as well. Possibly a firmware upgrade, if available, for the Netgear may help; maybe check its MTU settings. Are you always using it in wireless mode? Since you say it fails locally as well, try it hardwired and see what happens.
_________________
WYSIWYG - What You See Is What You Grep
Back to top
View user's profile Send private message
Newtanknurse
n00b
n00b


Joined: 15 Jan 2005
Posts: 56

PostPosted: Sun Feb 13, 2005 4:43 pm    Post subject: Reply with quote

ok, ill concede its the crc of ssh that seems to be the issue. But why then is it only with ssh??? If it would be faulty hardware, then i would think that it would be for other stuff too....
Back to top
View user's profile Send private message
darkphader
Veteran
Veteran


Joined: 09 May 2002
Posts: 1225
Location: Motown

PostPosted: Sun Feb 13, 2005 4:53 pm    Post subject: Reply with quote

Newtanknurse wrote:
ok, ill concede its the crc of ssh that seems to be the issue. But why then is it only with ssh??? If it would be faulty hardware, then i would think that it would be for other stuff too....


I guess you would have to verify that it is only with ssh. Some threads suggest using netcat as a test. Have you tried some large files transfers in both directions using netcat?
It could be software; again a possible remerge with sane cflags of openssl (should have mentioned this previously) and openssh might help.
But if the issue occurs between various local systems connecting to various remote systems then your router, a common denominator, is really shouting that it's the most probable cause.

Edit:
Try to skip the router or use a different one.

Edit:
Use a crossover cable locally, this will take the router out of the equation.
_________________
WYSIWYG - What You See Is What You Grep
Back to top
View user's profile Send private message
Newtanknurse
n00b
n00b


Joined: 15 Jan 2005
Posts: 56

PostPosted: Sun Feb 13, 2005 5:08 pm    Post subject: Reply with quote

im going to attempt a putty ssh login from my laptop with an emerge just to see if it will work, give me a few to get back....
Back to top
View user's profile Send private message
Newtanknurse
n00b
n00b


Joined: 15 Jan 2005
Posts: 56

PostPosted: Sun Feb 13, 2005 5:10 pm    Post subject: Reply with quote

just a thought, would running a local instance back through the net to the local sshd work for testing of my router???
Back to top
View user's profile Send private message
darkphader
Veteran
Veteran


Joined: 09 May 2002
Posts: 1225
Location: Motown

PostPosted: Sun Feb 13, 2005 5:19 pm    Post subject: Reply with quote

Newtanknurse wrote:
just a thought, would running a local instance back through the net to the local sshd work for testing of my router???


The best test IMO is to eliminate the router and see if you still get the errors.
_________________
WYSIWYG - What You See Is What You Grep
Back to top
View user's profile Send private message
Newtanknurse
n00b
n00b


Joined: 15 Jan 2005
Posts: 56

PostPosted: Sun Feb 13, 2005 5:30 pm    Post subject: Reply with quote

yes that would be nice, unfortunatly that would require me physically moving the desktop ive got quite a ways to be able to connect as i cannot run cable to where the desktop is.....wireless is needed. I can jack the laptop, but due to some issues with the laptop, i havent really had the heart to install gentoo on it yet, so it is winblows only, I suppose putty would replicate the errors tho......
Back to top
View user's profile Send private message
darkphader
Veteran
Veteran


Joined: 09 May 2002
Posts: 1225
Location: Motown

PostPosted: Sun Feb 13, 2005 6:06 pm    Post subject: Reply with quote

Newtanknurse wrote:
unfortunatly that would require me physically moving the desktop ive got quite a ways to be able to connect as i cannot run cable to where the desktop is


Unfortunately it's also the thing that will, in all probability, tell you the most.
_________________
WYSIWYG - What You See Is What You Grep
Back to top
View user's profile Send private message
Newtanknurse
n00b
n00b


Joined: 15 Jan 2005
Posts: 56

PostPosted: Sun Feb 13, 2005 6:32 pm    Post subject: Reply with quote

some input, a local ssh session across the wireless through the router gives no error with an emerge of vnc--on the remote across the internet it does error out. The other end does have a soho router, im thinkin that it is the distant router that is the problem....
Back to top
View user's profile Send private message
darkphader
Veteran
Veteran


Joined: 09 May 2002
Posts: 1225
Location: Motown

PostPosted: Sun Feb 13, 2005 6:53 pm    Post subject: Re: "Corrupted MAC address" error with ssh Reply with quote

Newtanknurse wrote:
a local ssh session across the wireless through the router gives no error with an emerge of vnc

but you said this earlier:
Newtanknurse wrote:
when using ssh, across the internet to another machine (or locally on the local wireless network) i occasionally get the error


So does it or does it not happen locally? If it does happen locally the router on the other end cannot be the problem.
_________________
WYSIWYG - What You See Is What You Grep
Back to top
View user's profile Send private message
Newtanknurse
n00b
n00b


Joined: 15 Jan 2005
Posts: 56

PostPosted: Sun Feb 13, 2005 8:02 pm    Post subject: Reply with quote

well i remembered it as happening locally, but i think my memory was flawed, it probably was a putty session with the same remote server that was failing, local is just fine....
Back to top
View user's profile Send private message
Newtanknurse
n00b
n00b


Joined: 15 Jan 2005
Posts: 56

PostPosted: Mon Feb 14, 2005 12:19 am    Post subject: Reply with quote

additionally, if i connect out through the router, and back through the router by being routed with the internet side of the address/nat combo, i get no problems with the mac error. Its looking like the remote router is the problem--thing is i dont have direct control of that router (its 300 miles away) Ill have to have the local admin take a look at it......
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum