hirantha
2009-03-18 20:01:10 UTC
Hi
I have configured vtun with compression enabled on 2 Linux machines -
server-client
It seems to be the compression is not take place and experiencing more
time taken to transfer data than without compression or VPN through.
Here is my configurations:
Server:
options {
port 5000; # Listen on this port.
bindaddr { iface eth0; }; # Listen only on loopback device.
# 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
}
# TUN example. Session 'cobra'.
cobra {
passwd xxxx; # Password
type tun; # IP tunnel
proto udp; # UDP protocol
compress lzo:9; # LZO compression level 9
encrypt yes; # Encryption
keepalive yes; # Keep connection alive
up {
# Connection is Up
# 10.3.0.1 - local, 10.3.0.2 - remote
ifconfig "%% 172.20.1.1 pointopoint 172.30.1.1 mtu 1450";
route "add -net 172.30.1.0/24 172.30.1.1";
};
}
Client:
# ----- CUT HERE --- Client config --- CUT HERE -----
#
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/ipchains;
ip /sbin/ip;
}
# TUN example. Session 'cobra'.
cobra {
passwd xxxx; # Password
device tun1; # Device tun1
persist yes; # Persist mode
up {
# Connection is Up
# Assign IP addresses.
ifconfig "%% 172.30.1.1 pointopoint 172.20.1.1 mtu 1450";
route "add -net 172.20.1.0/24 172.20.1.1";
};
}
My objective is to do high volume of data streaming to reduce the
bandwidth within two remote sites. I am not much concern about
encryption and security but compression.
vtun version 3.0.0.1 compiled from the source with lzo enabled. Linux -
Redhat 5 and I was tried on FreeBSD 7.1 but no luck.
vtun server is starting with followings:
vtund[14772]: VTUN server ver 3.X 03/18/2009 (stand)
vtund[14775]: Session cobra[192.168.30.155:33363] opened
vtund[14775]: UDP connection initialized
vtund[14775]: LZO compression[level 9] initialized
vtund[14775]: Blowfish-128-ECB encryption initialized
Any advice is really appreciated
Hirantha
I have configured vtun with compression enabled on 2 Linux machines -
server-client
It seems to be the compression is not take place and experiencing more
time taken to transfer data than without compression or VPN through.
Here is my configurations:
Server:
options {
port 5000; # Listen on this port.
bindaddr { iface eth0; }; # Listen only on loopback device.
# 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
}
# TUN example. Session 'cobra'.
cobra {
passwd xxxx; # Password
type tun; # IP tunnel
proto udp; # UDP protocol
compress lzo:9; # LZO compression level 9
encrypt yes; # Encryption
keepalive yes; # Keep connection alive
up {
# Connection is Up
# 10.3.0.1 - local, 10.3.0.2 - remote
ifconfig "%% 172.20.1.1 pointopoint 172.30.1.1 mtu 1450";
route "add -net 172.30.1.0/24 172.30.1.1";
};
}
Client:
# ----- CUT HERE --- Client config --- CUT HERE -----
#
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/ipchains;
ip /sbin/ip;
}
# TUN example. Session 'cobra'.
cobra {
passwd xxxx; # Password
device tun1; # Device tun1
persist yes; # Persist mode
up {
# Connection is Up
# Assign IP addresses.
ifconfig "%% 172.30.1.1 pointopoint 172.20.1.1 mtu 1450";
route "add -net 172.20.1.0/24 172.20.1.1";
};
}
My objective is to do high volume of data streaming to reduce the
bandwidth within two remote sites. I am not much concern about
encryption and security but compression.
vtun version 3.0.0.1 compiled from the source with lzo enabled. Linux -
Redhat 5 and I was tried on FreeBSD 7.1 but no luck.
vtun server is starting with followings:
vtund[14772]: VTUN server ver 3.X 03/18/2009 (stand)
vtund[14775]: Session cobra[192.168.30.155:33363] opened
vtund[14775]: UDP connection initialized
vtund[14775]: LZO compression[level 9] initialized
vtund[14775]: Blowfish-128-ECB encryption initialized
Any advice is really appreciated
Hirantha