Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I had configured openvpn (2.0.9) on my Centos 5.4 machine.I want to route all client traffic through my gateway.So i had enabled (push "redirect-gateway ") in server configuration.Now the problem is the upload speed is very low while connecting through vpn.Normally i got 700 kbps download and 650 kbps upload speed.But while connecting through Vpn the upload speed is only 110-130 kbps but download is almost stable.Here is my Server and client conf Files.
Server
******
port 1194
proto udp
dev tun
ca /etc/openvpn/easy-rsa/2.0/keys/ca.crt
cert /etc/openvpn/easy-rsa/2.0/keys/abc.crt
key /etc/openvpn/easy-rsa/2.0/keys/abc.key
dh /etc/openvpn/easy-rsa/2.0/keys/dh1024.pem
server 172.24.0.0 255.255.0.0
ifconfig-pool-persist ipp.txt
push "redirect-gateway"
push "dhcp-option DNS 202.46.240.5" (My ISP DNS)
keepalive 10 600
comp-lzo
user nobody
group nobody
persist-key
persist-tun
status openvpn-status.log
verb 3
Client
******
dev tun
client
remote serverip
ca ca.crt
cert Testing.crt
key Testing.key
persist-key
persist-tun
comp-lzo
Openvpn server working behind a firewall,prerouting and masquerading is done properly.i had tested from Local network too.But the result is same.How can i improve uploading speed.Thanks in Advance
While not connected thru OpenVPN, go to SpeedTest.net.
Run two tests, an hour apart, and take screenshots.
Then, while connected thru OpenVPN, do the same thing again.
Punch in the speed numbers here.
EDIT: You need to run more than one test, and they have to be a bit apart.
Only one test per connection isn't going to give you a consistent picture. One thing I would do is try to get a clear idea of the latency your connects are experiencing (remember to test more than once!).
The 'ping' command can actually be good for this. Without using the OpenVPN service, have one of your clients ping the OpenVPN server about 100 times, then check your min/max/avg/mean (or whatever ping will report to you).
Then have that same client ping google the same amount of times. Note that you're non-OpenVPN traffic will have to leave your network via the same Internet-facing gateway as it would if it were over OpenVPN.
Now which is faster to respond?
If google's average or mean millisecond times are *lower* than your own internal OpenVPN server, then you have a problem with your internal network infrastructure (or server configuration).
If google's average or mean millisecond times are *higher* than your own internal OpenVPN server, that's expected.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.