
options {
port 5000; # Listen on this port.
syslog daemon;
# Path to various programs
ppp /usr/sbin/pppd;
ifconfig /sbin/ifconfig;
route /sbin/route;
firewall /sbin/ipchains;
ip /sbin/ip;
}
default {
compress no; # Compression is off by default
encrypt no; # Encryption
speed 32; # By default maximum speed, NO shaping
keepalive yes; # Keep connection alive
stat yes;
}
myconnection {
passwd MyPassword; # Password
type tun; # IP tunnel
proto tcp; # TCP protocol
up {
ifconfig "%% 10.3.0.2 pointopoint 10.3.0.1 mtu 1450";
};
down {
ifconfig "%% down";
}
}
|
[server] # vtund -s |
options {
port 5000; # Connect to this port.
timeout 60; # General timeout
# Path to various programs
ppp /usr/sbin/pppd;
ifconfig /sbin/ifconfig;
route /sbin/route;
firewall /sbin/iptables;
ip /sbin/ip;
}
default {
compress no; # Compression is off by default
encrypt no; # Encryption
speed 32; # By default maximum speed, NO shaping
keepalive yes; # Keep connection alive
stat yes;
}
myconnection {
passwd MyPassword; # Password
type tun; # IP tunnel
proto tcp; # TCP protocol
up {
ifconfig "%% 10.3.0.1 pointopoint 10.3.0.2 mtu 1450";
};
down {
ifconfig "%% down";
}
}
|
[client] $ ssh -L 5000:localhost:5000 server.somesite.com |
[client] # vtund myconnection localhost |
Mon Mar 29 07:48:02 NZST 2004 c.mills CreatedClark Mills c.mills@auckland.ac.nz