Overblog Tous les blogs Top blogs Automobiles & Véhicules
Editer l'article Suivre ce blog Administration + Créer mon blog
MENU
http://ljxko.over-blog.com/

ljxko.over-blog.com/

Publicité

Ssh Tunnel 15.03



Creating SSH Tunnel From Linux or MacOS X. To create a tunnel use the following command: $ ssh -L 3306:127.0.0.1:3306 username@server.com. Username@server's password: In the sample above we create SSH tunnel from local port 3306 on our computer to port 3306 on server.com. You can use both localhost or 127.0.0.1 interchangably. Nov 04, 2009  I'm trying to use Squeezeplay to access a player on my network at home. Rather than open ports to the web, I'd like to use SSH tunneling. I've previously been able to use Softsqueeze's SSH tunneling to do this, then I set up my own SSH tunnel wrapper in the hopes of using Squeezeplay over the SSH tunnel. The ports I'm forwarding are tcp/3483, tcp/9000, and tcp/9090.

I'm building virtual machines on a weekly basis, sometimes daily. Most often I create various Linux distros as guests on VirtualBox hosts. VirtualBox hosts are either Windows or Linux computers. Majority of guests are built for test purposes only, so they often live in a 'cage' behind a VirtualBox NAT. Guests with NIC attached to NAT have access to the LAN and Internet, but the opposite is not possible out of the box. So my typical NIC configuration for VirtualBox guest looks like this:

Fortunately, VirtualBox allows to configure port forwarding for NAT attached NIC's. For every Linux guest I setup port forwarding for ssh (22), so that I can use MobaXterm (on Windows7/10) to connect to the Linux guest from the host itself. That's how it looks:

That's fine, as long as you have access to the host where your VBox guest is running, you can use MobaXterm to connect to the virtualbox guest. Seating at Windows 7 workstation we simply open MobaXterm and type:

Networker network information in menu bar 2 0 4. I9100 efs tar md5 file. Sometimes, I build virtual machines that I want to access from other machines as well and I don't like to weaken security by attaching guest NIC's to a Bridged adapter. Again, let's call wonderful ssh to the rescue.

Situation: VirtualBox host is a Windows 2008 R2 Server (I'll refer to this host as VBOXHOST). On this host we're hosting Linux guest (OL7ORA12R2) with the latest Oracle 12.2 installation. Guest is behind a NAT, but with a port forwarding setup for ssh as shown above (picture 3). I would like to have access to this guest from remote workstation running Windows 7. All machines (physical Windows 7 & 2008R2, plus virtual Linux 7) are firewalled with ssh ports (22) left opened. On Windows 2008R2 is already running OpenSSH (Cygwin).

All that we need to do to get sqlplus access to remote Oracle 12.2 running in Linux guest from Windows 7 workstation is this:

What happens is illustrated on this picture:

  1. On Windows 7 we launched MobaXterm and run ssh command:
  2. On Windows 7 we opened sqlplus, connecting to localhost:12201. SSH redirected traffic to VBOXHOST:12201 (hop 1), followed by second redirection (hop 2) to Listener running inside VirtualBox.

What if we would like to run some GUI application on Linux guest? We can use X session forwarding, allowing us to see the GUI on our Windows 7 workstation. Like this: What age can you gamble.

We must open two MobaXterm terminals on Windows 7 workstation.

In the first MobaXterm terminal we type:

In the second MobaXterm terminal we type: Plasmacam user manual.

….and xclock will popup on Windows 7 workstation but actually running on Linux guest. Note that alesk_guest is a Linux user on LinuxMint 18 guest and that guest is configured in the same way as before, behind a NAT and with ssh port forwarding (2222) at VirtualBox level. This option is handy to lauch Oracle gui configuration tools, like dbca, netca etc.

Hi,
Sorry to bore you if this is an easy question but I've run out of ideas.
Environment:
Windows 7 64bit client.. PUTTY (0.63) Tunnel.. pfsense 2.x OPENVPN Server
SshGoal:
Create an OPENVPN environment, inside of an SSH tunnel. I know there is lots of overhead to this but it's the only way I can OPENVPN from my work.
Accomplished:
1. Working PUTTY SSH tunnel from work to pfsense server. I know it's working because I can SSH into my pfsense box and proxy SOCKS connections over the SSH tunnel.
2. Working OPENVPN TCP Client / Server. It work when I go direct to the pfsense box.
Ssh Tunnel Http
PUTTY Tunnel: L1195 localhost:1195
Issue:
When I try to connect OPENVPN through the tunnel by changing destination address to localhost (same port). I get this error:
Tue Aug 12 15:03:58 2014 Attempting to establish TCP connection with [AF_INET]127.0.0.1:1195
Tue Aug 12 15:03:58 2014 TCP connection established with [AF_INET]127.0.0.1:1195
Tue Aug 12 15:03:58 2014 TCPv4_CLIENT link local (bound): [undef]
Tue Aug 12 15:03:58 2014 TCPv4_CLIENT link remote: [AF_INET]127.0.0.1:1195
Tue Aug 12 15:04:58 2014 TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)
Tue Aug 12 15:04:58 2014 TLS Error: TLS handshake failed
Tue Aug 12 15:04:58 2014 Fatal TLS error (check_tls_errors_co), restarting
Tue Aug 12 15:04:58 2014 SIGUSR1[soft,tls-error] received, process restarting
Any ideas?
Thank You,
Ssh Tunnel Linux Howto

Ssh Tunnel Socks Proxy
BG



Publicité
Partager cet article
Repost0
Pour être informé des derniers articles, inscrivez vous :
Commenter cet article