Skip to content

Instantly share code, notes, and snippets.

@botus
botus / gist:e3cf3aab577bb1386927
Created February 22, 2015 09:57
sample Ocserv config file
# User authentication method. Could be set multiple times and in that case
# all should succeed.
# Options: certificate, pam.
#auth = "certificate"
auth = "plain[/etc/ocserv/passwd]"
#auth = "pam"
# A banner to be displayed on clients
#banner = "Welcome"
@botus
botus / linode-centos6-native-kernel.sh
Last active August 29, 2015 14:03
linode-centos6-native-kernel.sh
### Starting from a Fresh CentOS 6.2 Linode
### Enable the native kernel to boot from pvgrub
### It will autoconfigure itself with each yum update.
### This is adapted from a previous script for CentOS 5.5 found here:
### http://library.linode.com/assets/542-centos5-native-kernel-selinux-enforcing.sh
### Provided via the linode wiki
### http://library.linode.com/linode-platform/custom-instances/pv-grub-howto#sph_centos-5
### Provided without warranty, although since it should only be run
### on first box build if your box gets broken simply rebuild it
server
{
listen 80;
server_name _;
location / {
resolver 8.8.8.8;
proxy_pass http://$http_host$request_uri;
}
}