Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have two machines. My laptop and a machine in the local intranet. This machine has next to the network device (for the intranet) a second network card. I want to send raw ethernet frames out of this second device.

How can I tunnel from my local laptop onto this server and forward those packets on the right device?

share|improve this question
Do you really want to tunnel the connection over ssh, or are you just trying to use the "machine" as a router? – symcbean Jun 5 '13 at 16:16

EoIP would be on of the simplest thing to use, since you don't have to worry about encrypting the tunnel between the two systems. But you can also use veth, or tunnel over ssh, but with the ssh solution you'll need openssh 4.3+ .

share|improve this answer

You don't want to tunnel Ethernet (layer 2) over SSH over TCP (layer 3). Since TCP tries hard to guarantee lossless transmission, you could have multiple layers all trying to retransmit dropped packets.

Use a proper tunnelling technology, such as OpenVPN, L2TP, or IPSec.

share|improve this answer
No, that's not really what's happenning. There's lots of tunnelling technologies that use TCP over TCP. And ssh tunnelling has been around for a very long time. The advantages of a specifically designed VPN protocol are all to do with session management. – symcbean Jun 5 '13 at 16:15
@symcbean yes lots of tools do tcp in tcp. There are well kmown problems with it. TCP can wotk but it isn't ideal. – Zoredache Jun 5 '13 at 21:25

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.