YaK:: a sample VTUN vtund.conf file [Changes]   [Calendar]   [Search]   [Index]   [PhotoTags]   
[mega_changes]
[photos]

a sample VTUN vtund.conf file

Download VTUN from http://vtun.sourceforge.net/download.html

The only difference between this vtund.conf file on client and server is to swap the IP numbers 10.232.1.1 and 10.232.1.2

You should change the port the server listens on (12345), the names of the connections (withUDP or withTCP), and the password (some-secret-pw).

Typically this conf file is /usr/local/etc/vtund.conf


options {
  port 12345;           # Listen on this port.

  # Syslog facility
  syslog        daemon;

  # Path to various programs
  ppp           /usr/sbin/pppd;
  ifconfig      /sbin/ifconfig;
  route         /sbin/route;
  firewall      /sbin/ipchains;
  ip            /sbin/ip;
}

# Default session options
default {
  compress no;          # Compression is off by default
  speed 0;              # By default maximum speed, NO shaping
}

#############################################################
withUDP {
  pass  some-secret-pw;
  type  tun;            # IP tunnel
  proto udp;            # UDP protocol
#  comp  lzo:9;         # LZO compression level 9
  encr  yes;            # Encryption
  keepalive yes;        # Keep connection alive

  up {
        ifconfig "%% 10.232.1.2 pointopoint 10.232.1.1 mtu 1450";
  } ;
}
#############################################################
withTCP {
  pass  some-secret-pw;
  type  tun;            # IP tunnel
  proto tcp;            # UDP protocol
#  comp  lzo:9;         # LZO compression level 9
  encr  yes;            # Encryption
  keepalive yes;        # Keep connection alive

  up {
        ifconfig "%% 10.232.1.2 pointopoint 10.232.1.1 mtu 1450";
  } ;
}
(unless otherwise marked) Copyright 2002-2014 YakPeople. All rights reserved.
(last modified 2005-06-19)       [Login]
(No back references.)