| YaK:: a sample VTUN vtund.conf file | [Changes] [Calendar] [Search] [Index] [PhotoTags] |
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";
} ;
}
| (last modified 2005-06-19) [Login] |