Debian Configuration :: Can Make Openvpn Faster Like Rsync
Oct 22, 2010
I use openvpn to connect otherwise isolated machines, and use samba to share filesystems across the vpn, which works just fine.But I recently discovered that copying files using rsync -e ssh is so much faster than copying from a mounted filesystem - like about 5 times faster.I've got comp-lzo enabled in both server and the client, at least I think I have, the directive is there in both the server.conf and the client.conf files, but how do I check that it's active?Does anyone know if I can make openvpn behave more like rsync, because copying is easier than rsyncing?
I am a GNOME user but because of the release of GNOME 3 i decided that i may have to start using KDE. So i installed KDE 4.6 from the qt-kde debian repository. It works more or less OK but i have a problem with the performance. It just doesn't feel as snappy as GNOME. For example if i have minimized Firefox when i maximize it it takes about a second for the window to draw and until then i just see and empty window. Or when i open nautilus it too takes a little to open and draw the window. Overall KDE seems a little unresponsive. Is this normal? And second, from time to time there seems to be huge performance issues - KDE suddenly becomes very slow - programs take a while to open, and the windows draw even slowlier than what i described previously. Also whenever there is a slowdown (like for example when i start a program) i hear some kind of scratching noises from a my laptop - like there is a heavy hard disk activity. I've heard that kind of noises before when doing something very demanding like compiling or archiving something.
Is there any way to make KDE more responsive and faster. I have disabled strigi and nepomuk.
I am running KDE on Debian Unstable with kernel 2.6.39-1-amd64 and NVidia driver 270.41.19 on a Thinkpad T61 laptop with Intel Core 2 Duo T9300, Nvidia Quadro NVS 140m and 4GB of Ram.
I put the KDE NOIPV6 in the /etc/environment file, but nothing happened it seems.
The problem = Midori / other browsers are too unstable with Flash; but Konqueror is lightning-fast with Flash and apparently takes up the least resources too. But the problem with that is, the aforementioned 20 seconds to 2 minute web page load time, even though I have 5-8 MBps cable Internet.
Midori is a little slow too to load web pages, now that I think about it, but faster once I have first visited a domain.
I have an openvpn bridge up and running (ubuntu to ubuntu, both in vmware fusion machines on macs). My problem is that I cannot get a connection faster than ~9mbps even though 20+mbps is available. I've been troubleshooting for a while and have tried many fixes. I just now did ethtool tap0 and I think maybe I found it. It says the link is 10mbps. I tried to change it with: sudo ethtool -s tap0 speed 100 but it says ethtool cant change speed on tap0. How can i define the link speed of tap0?
I am currently backing up my data but find that it takes way to long to do a rsync, it takes forever to just find the differences and transfer them.Out of 3 separate rsyncs the main one that is slow is my www.skins.be mirror directory which is 41GB and has 392,200 files, sorted into multiple directories. Which grows by around 100 every couple days.I think that something that would be able to track changes by inotify time on directories will speed it up since Picasa sure finds the changes fast when I open it and it is tracking over 26,200 pictures. I just don't know of a backup solution that does that.
I often have to transfer huge data over our LAN from one computer to another. The size of the files varies and can be somewhere from 2 GB to 50GB or more! The only accepted connection protocol between machines are ssh; and rsync and scp are the only options available for copying over network (unison is not installed). I usually use rsync with "-z" option to copy over network. if "rsync -z" is faster than "scp" for data transfer?
I'm running OpenVPN service on both debian server and client. When start connection between client and server, I expect all the computer traffic (except ARP and DHCP requests) go through created tunnel. However, when I capture packets on wlan0 on client (the only connection going outside host) using Wireshark, I can see DNS requests visible and sometimes incoming TCP traffic as well, but most of the traffic is going through tunnel as expected. I provide both configurations of client and server and client routing table for inspection. I changed server address to avoid server exploitation in the case of some big configuration mistake.
Commands to run OpenVPN services are: Code: Select allFor client: sudo openvpn --config /etc/openvpn/client.conf & For server: sudo openvpn --config /etc/openvpn/server.conf &
**Client routing table when VPN is OFF** Code: Select allKernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface default 192.168.1.1 0.0.0.0 UG 1024 0 0 wlan0 192.168.1.0 * 255.255.255.0 U 0 0 0 wlan0
[code]...
I searched through many forums and documentation and I found, that for all the traffic going via VPN is command: *push "redirect-gateway def1"* neccessary, however, I have leaks despite this command being in place. I already spent over 2 days with this and tried to configure it in many ways, now I have no clue what I'm missing.
I have recently rented a VPS server so I can run a VPN. Unfortunately, I did not get far in this [URL] ....., I have encountered this error:
Code: Select allxaver@xaver:/$ sudo modprobe tun ERROR: could not insert 'tun': Unknown symbol in module, or unknown parameter (see dmesg)
So I googled this error and found this: [URL] ....., however response of mine VPS was:
Code: Select allxaver@xaver:/$ ls /lib/modules/uname -r /kernel/drivers/net/tun.* ls: cannot access /lib/modules/uname: No such file or directory ls: cannot access /kernel/drivers/net/tun.*: No such file or directory
Code: Select allxaver@xaver:/$ lsb_release -a No LSB modules are available. Distributor ID: Debian Description: Debian GNU/Linux 7.9 (wheezy) Release: 7.9 Codename: wheezy
xaver@xaver:/$ uname -a Linux xaver 3.2.0-4-amd64 #1 SMP Debian 3.2.57-3+deb7u1 x86_64 GNU/Linux
I will see ipcam in my local network from my tablets. I'm install server/client but I can't even ping my Ipcam from my tablet.I'm ping my ipcam from my server
Code: Select allping 10.42.0.22 PING 10.42.0.22 (10.42.0.22) 56(84) bytes of data. 64 bytes from 10.42.0.22: icmp_seq=1 ttl=64 time=0.639 ms
eth1:1 Link encap:Ethernet HWaddr 00:25:22:1c:6e:05 inet addr:10.42.0.1 Bcast:10.42.0.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Thought I'd post it here because it's more server related than desktop... I have a script that does:
[Code]....
This is used to sync my local development snapshot with the live web server. There has to be a more compact way of doing this? Can I combine some of the rsyncs? Can I make the rsync set or keep the user and group affiliations? Can I exclude .* yet include .htaccess?
I managed to set up an openvpn server, ip-forwarding and a nat iptable rule for that.
Almost everything works as expected, but my problem is:
Smartphone -> VPN -> Internet ==> works (by ip and hostname) Smartphone -> VPN -> machine in my local network by IP ==> works Smartphone -> VPN -> machine in my local network by its hostname => DOES NOT WORK Machine w/ VPN server -> ping to machine in local network by ip or hostname => works
So, i wonder why i cant access a local machine through the vpn by its hostname. I guess I'm missing a forwarding rule??
iptables dump: # Generated by iptables-save v1.4.21 on Sun Feb 7 20:56:52 2016 *nat :PREROUTING ACCEPT [786:59064] :INPUT ACCEPT [728:53047] :OUTPUT ACCEPT [19:1487] :POSTROUTING ACCEPT [20:1576] -A POSTROUTING -s 10.8.0.0/24 -j MASQUERADE COMMIT # Completed on Sun Feb 7 20:56:52 2016
I currently run openVPN on my Debian box that provides secure ipv4 routing from my laptop to my VPS in a different country (and from there the internet via this box). This works fine. However, id like to sort out ipv6 through this VPN as well as IPV4 and not overly sure how to do it. The remote server itself has native ipv6 configured on device eth0 and it works (ping6, traceroutes all fine,incoming to web servers etc) nicely on dual stack.
How would i go about modifying the config (both client and server if needed) to enable openVPN to act as a tunnel broker to enable the laptop to use the ipv6 through the server as well as the old v4? (the internet connection laptop end will not/does not have native ipv6 from the ISP. Currently im using he-net tunnel broker but id like to run myself through my existing openVPN). VPN config details: Its using UDP, port 1194, creates a TUN interface, redirect-gateway etc and the rest is normal config. Edit:- if it matters the clients are all running windows so i cant use sh scripts to set up stuff client end.
Basically I download to main PC and rsync to my pi as the pi has a fraction of the speed for some reason when downloading form a source outside of my network.
The first few files will sync fine. Then I start getting errors like this
Code: Select allrsync: rename "/data/temp/.File.ext.y1716M" -> "File.ext": No such file or directory (2)
The directory on the host has user and group ownership as pi. Rsync has been setup to login without a password.
After hours of struggles I'm still not able to configure a simple backup from a Debian Jessie server to a Planet branded NAS.
Configuration is as follows: NAS user name: user pass: user12 share name: user. Inside that directory, there is bkp directory where stuff should go. bkp was created using Dolphin. The NAS offers smb service and is accessible through Dolphin file manager and from Windows stations.
Server also has a user named "user" and a password "1"..
Fstab looks like this: //192.168.2.3/user /mnt/NAS cifs username=user,password=user12,iocharset=utf8 0 0
The command is: Code: Select allrsync -ahv /home/user/Desktop/ /mnt/NAS/bkp/
Errors are: Code: Select allrsync: chgrp "/mnt/NAS/bkp/." failed: Operation not permitted (1) and Code: Select allrsync: mkstemp "/mnt/NAS/bkp/.teszt.YEmVM3" failed: Operation not permitted (1) where teszt is a file created by me and YEmVM3 seems to be randomly generated character string.
These kernel sources are usually the sources from debian, with a couple of more patches that I add. It appears that for nvidia-driver package versions higher than 352.79-1, the kernel headers/sources need to be prepared with 'make prepare' and 'make prepare scripts'. It's that simple. I concluded this after the nvidia dkms build failed on my custom kernel, but then succeeded after I pointed it to the full sources, but only after running 'make prepare' and 'make prepare scripts' on them. The problem is that this make-kpkg scheme doesn't appear to do this, or if it does, it doesn't properly include in the headers everything that it should.
I have windows xp professional installed and I have 256 MB RAM and 80 GB hard disk.I installed Ubuntu 10.04 LTS Desktop Edition alongside on windows on a formatted 12 GB C drive(windows on E drive).When I used linux it was very slow but my windows is running smoothly.How can I get normal and smooth speed on linux as I have it on windows.Will removing the windows speed up linux?
Just installed fedora10 the first time, and the system wants to update, but the yum download process is too slow, it seems dead over 2 hours can't download one package! Is there anyway to make it faster?
When I haven't run yum for a little awhile, it's slow to start up because it goes through all the progress bars of downloading from different repositories. specially, just now updates/primary_db had to download 5.5MB.
Is there some way to automate this so it happens in the background and not when starting up?
One of the most common tasks I perform is browsing for files. I have always wanted my file manager to be lightning fast. That is, I open it and it loads directories instantly. No waiting, just opening them right away. This remained always a wish, as in Windows and Ubuntu on a variety of machines I always see that it takes a little while for the program to load directories. I am not talking about folders with thousands of files or anything special. However, I have seen others who have Windows (XP in this case), and their Explorer opens right away. Browsing folders is very much instant.
Is there any way to achieve the same in Nautilus? The other computer is not very modern or super fast, at all.
I have a laptop with SSD drive which I hoped would speed up this process, but this is not the case. On both my laptop and desktop I often see the 'loading' symbol, and files often appear after the folder view has opened (they just appear all of a sudden). This happens with folders I rarely visit but also with folders I often open.
How are others' experiences? Can Nautilus be instant? Is this a configuration tweak or hardware issue?
I find myself grepping the same codebase over and over. While it works great, each command takes about 10 seconds, so I am thinking about ways to make it faster.So can grep use some sort of index? I understand an index probably won't help for complicated regexps, but I use mostly very simple patters. Does an indexer exist for this case?EDIT: I know about ctags and the like, but I would like to do full-text search.
After installing ubuntu 9.10. It's now been a month or so from a fresh reinstall.
Currently for some reason at times my computer slows down where typing starts to lag.
Is there any software that would speed up the linux os. Like for windows there is softwares that would check the registery for errors and shortcut errors etc and fix them.
I use free software like that for windows and works well. I just would like to know if I can get something like that for linux. I know linux dosen't use a regsiter but just saying software that checks the linux system for any errors that could cause the computer to slow down.
I need a command to tell the alarm to start the playback of amarok on the morning, I also need a way to be able to see lyrics in amarok, and last, any tip on how to make the amarok launch faster? is takes like 5 min! Amarok ver 2.3.0 Ubuntu karmic koala
I like the new 11.04 ubuntu, especially the left panel. However, performance dramatically dropped when i did the upgrade. What I'm asking is, how do I improve the performance of Natty?