You are not logged in.
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
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? ![]()
Are you familiar with our Forum Rules, and How To Ask Questions The Smart Way?
BlueHackers // fscanary // resticctl
Offline
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
How are you determining that "all your local traffic" is being forwarded to it? What is your definition of "local traffic" and "forwarded"?
Are you familiar with our Forum Rules, and How To Ask Questions The Smart Way?
BlueHackers // fscanary // resticctl
Offline
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