You are not logged in.

#1 2010-07-25 09:28:20

synthead
Member
Registered: 2006-05-09
Posts: 1,344

Creating a dummy network interface without any traffic routed to it

I am going to forward some ports from another machine to work on a server from home.  I want this to be as seamless as possible, so I would like to create a dummy network device, set an IP for it, and forward some ports with SSH to it.  I can create the device with openvpn --mktun --dev tap0 or even just modprobe dummy, but these commands seem to forward all my local traffic to it.  This is what I'm trying to prevent.  While this is happening, I can't forward port 22 to 10.0.0.1:22 since I'm serving ssh from 127.0.0.1 (as one example).  I would like to learn the cleanest way possible to do this, hopefully by just throwing a flag somewhere.

Offline

#2 2010-07-25 10:43:39

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,237
Website

Re: Creating a dummy network interface without any traffic routed to it

I don't quite understand what you're trying to do, can you give some more information? What is the *problem* you are trying to solve, rather than the solution you're trying to implement? smile

Offline

#3 2010-07-26 02:30:02

synthead
Member
Registered: 2006-05-09
Posts: 1,344

Re: Creating a dummy network interface without any traffic routed to it

If I create any kind of fake interface, I seem to have all my local traffic forwarded to it.  I am serving ssh on port 22 on my local machine, so when I forward port 22 from the other machine, it fails.  I don't want to change ports or stop ssh on my machine.  I want to create an interface that has no traffic forwarded to it from the beginning.

Offline

#4 2010-07-26 04:14:56

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,237
Website

Re: Creating a dummy network interface without any traffic routed to it

How are you determining that "all your local traffic" is being forwarded to it? What is your definition of "local traffic" and "forwarded"?

Offline

#5 2010-07-26 04:18:54

synthead
Member
Registered: 2006-05-09
Posts: 1,344

Re: Creating a dummy network interface without any traffic routed to it

If I assign 10.0.0.1 to the interface and ssh into 10.0.0.1, I get a login for my own box.

Offline

Board footer

Powered by FluxBB