Page 1 of 1

config for fast server?

Posted: Wed Feb 23, 2011 4:42 pm
by wrekwired
Hi everyone.

Sorry for being such a noob but I like to setup my own openVPN server which will concentrate more on to speed and server response.

Can anyone give be the best config for my server? But connection will still be secured.

My test configuration is this.

Code: Select all

client
dev tun
proto tcp
remote my.server.com 80
resolv-retry infinite
nobind
tun-mtu 1500
tun-mtu-extra 32
mssfix 1450
persist-key
persist-tun
ca ca.crt
auth-user-pass
comp-lzo
verb 3
And how do I limit user's bandwidth per day like each users will only have a 1GB max traffic/day?

I already tried installing and running openVPN server in a free trial VPS host and succesfull in running my server and connecting a client. But I like to host my server to a better host.

My planned host would be in http://quickweb.co.nz which is cheaper because i'm low of budget.

Code: Select all

CPU Core(s)       1
Memory          256MB
Swap Space      384MB
Disk Space      10GB
Bandwidth       1TB
Port Speed    1000 Mbit
will this hold in about 20-30 clients without affecting server speed and response or you suggest other VPS?

Re: config for fast server?

Posted: Wed Feb 23, 2011 10:01 pm
by janjust
the setup you're describing should be perfectly capable of hosting up to 50 clients ; there might be some VPS quirks to take care of, but a "regular" PC with 1 core/CPU and 256 MB of RAM would suffice ; just don't try to install the latest and greatest full version of Linux on it, look for a slimmed down version. 256MB of RAM is not enough for a plain vanilla install of CentOS 5, Fedora 14, Ubuntu 9+ etc.

Re: config for fast server?

Posted: Thu Feb 24, 2011 11:30 am
by wrekwired
Thanks allot for the help. I was hoping for a CentOS 5. Maybe I'll just avail their service with 512 MB of RAM and 2T of bandwidth.

Now all I need is the best configuration for my server. :D

Re: config for fast server?

Posted: Fri Feb 25, 2011 3:37 am
by wrekwired
I forgot that I was short in budget and just starting with my VPN service. Means i'm stuck with the 256 MB of RAM.

My choices of os are fedora 13-32bit and fedora 11-32bit since fedora 13 will work fine in text mode with 256 MB of RAM. Just not sure if the kernel version is 2.4 or higher since i read that only linux version with kernel 2.4 or later have TAN/TUN.

Other choices are arch linux 2010.50-32bit, debian 5.0-32bit and centOS 5.0-32bit which I think will give my server a hangup.

What do you think with fedora 13?

Re: config for fast server?

Posted: Fri Feb 25, 2011 8:13 am
by maikcat
hi there,


*DEFINITELY NO*

centos 5.4 and above is better...
simply disable *ANY* unecessary service.

ubuntu server also recommended... (boots up in 10 secs :) )

cheers,

michael

Re: config for fast server?

Posted: Fri Feb 25, 2011 2:41 pm
by wrekwired
Oh men. I really have to live with CentOS 5.5 in 256BM. The only problem is I don't know what unecessary services to disable that won't affect my server's performance.

Re: config for fast server?

Posted: Fri Feb 25, 2011 2:49 pm
by janjust
this is becoming off-topic for this forum: there are plenty of other fora out there that discuss how to run <FLAVOR OF LINUX> on minimal hardware.

Re: config for fast server?

Posted: Fri Feb 25, 2011 2:53 pm
by maikcat
you guys are right..this is getting off topic

only the initial post from wrekwired was ok.....


maybe i closed it here.

michael.