LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Blogs
User Name
Password

Notices


Old

manually setting up a VPN tunnel (PPTP)

Posted 05-11-2011 at 11:30 PM by neonsignal

Creating a VPN tunnel involves setting up a few configuration files.

First add a line to /etc/ppp/chap-secrets. This has four columns:
Code:
{username} PPTP {password} *
Then create a PPTP connection file /etc/ppp/peers/{tunnel} (any tunnel name will do):
Code:
pty "pptp {server} --nolaunchpppd"
name {username}
remotename PPTP
file /etc/ppp/options.pptp
ipparam {tunnel}
require-mppe
...
Senior Member
Posted in Uncategorized
Views 775 Comments 0 neonsignal is offline
Old

backups using rsync

Posted 05-09-2011 at 08:44 AM by neonsignal
Updated 05-09-2011 at 08:46 AM by neonsignal

The beauty of using rsync as a backup tool is that the backup is in a plain old directory structure, so there is a lot less to go wrong in a recovery process (and many ways to do the recovery).

The simplest rsync just makes a mirror of a directory structure:
Code:
rsync -a --del src dst
Or across a network using ssh:
Code:
rsync -a --del src server:dst -e ssh
The link-dest flag can be used to set up a simple snapshot...
Senior Member
Posted in Uncategorized
Views 691 Comments 0 neonsignal is offline
Old

remote shell access

Posted 05-08-2011 at 07:03 AM by neonsignal
Updated 05-08-2011 at 08:06 AM by neonsignal

Remote (and secure) access to another system makes use of the ssh package.

At its simplest, this provides secure copying from one machine to an account on another remote machine:
Code:
scp file user@remote_machine:~
Login to the other machine can be automated by creating a private/public key pair to sign the access. The public key is added to the authorized keys of the destination account. The private key must be kept secure.
Code:
ssh-keygen
...
Senior Member
Posted in Uncategorized
Views 4162 Comments 1 neonsignal is offline
Old

sharing files from Windows machines

Posted 05-07-2011 at 07:07 AM by neonsignal

To access files shared from Windows machines, install the package smbfs.

Shares on the other machine can be listed:
Code:
smbclient -L windows_machine
Shares can be mounted to a local mount-point (ie an empty directory):
Code:
smbmount //windows_machine/share share -o user=username
or using mount directly:
Code:
mount -t smbfs -o username=username //windows_machine/share share
Senior Member
Posted in Uncategorized
Views 579 Comments 0 neonsignal is offline
Old

manually setting up a bridge tap into a network

Posted 05-07-2011 at 05:01 AM by neonsignal

The following stanzas are for /etc/network/interfaces. They set up a bridge tap into the network (which I originally used for virtual machines, though most of the VM managers set this up automatically now).

First, we create a bridge:
Code:
iface br0 inet static
   address 192.168.1.2
   netmask 255.255.255.0
   gateway 192.168.1.1
   bridge_ports eth0 tap0
The old interface is changed to manual:
Code:
iface eth0
...
Senior Member
Posted in Uncategorized
Views 965 Comments 0 neonsignal is offline

  



All times are GMT -5. The time now is 12:55 AM.

Main Menu
Advertisement
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration