Showing posts with label VPN. Show all posts
Showing posts with label VPN. Show all posts

Saturday, February 23, 2013

SSHFS - Mount remote directory through gateway machine


  1. Expose target target server ssh port with ssh local port forwarding
    $ ssh -C -N -L localhost:local_port:target:target_ssh_port gateway_user@gateway
  2. Mount with sshfs through the port just exposed
    $ sshfs target_user@localhost:/target_directory /mount_point -o port=local_port
Example:
$ ssh -C -N -L localhost:22222:tap-machine:22 tapvpn@company-vpn-host.org
$ sshfs tap@localhost:~/work /mnt/work -o port=22222



Saturday, November 28, 2009

How to connect VPN via PPTP with Ubuntu

I had tried to connect to my office local network with my Karmic machine via PPTP protocol. I saw a VPN stuff when clicked 'Edit Connections' of NetworkManager Applet (normally on top left of you screen) but couldn't do anything to it. So I started googling and found below.

First, I had to install PPTP for NetworkManager
sudo apt-get install network-manager-pptp
Now, we can do setting PPTP VPN.

Just enter gateway, username and password your PPTP VPN will be now ready to work.

But for me, I want to go out to normal internet with my internet router not to go through my office network. I have to do something a bit.

In editing vpn, click on tab IPv4 setting -> Routes.

Enter ip(s) that want to use vpn and netmark.

You can leave another 2 columns, gateway and metric blank.

Thick in box "Use this connection only for resources on its network"

done.


Credit : VPN - Ubuntu Wiki, Howto configure PPTP VPN in Ubuntu Intrepid and Jaunty
Testing OS : Ubuntu 9.10 (Karmic Koala)

Collectd PostgreSQL Plugin

I couldn't find this link when searching with google https://www.collectd.org/documentation/manpages/collectd.conf.html#plugin-postgresq...