OpenVZ - amendments to /etc/sysctl.conf file

Post Type: 
Tip
As requested at my recent talk here are the amendments to the /etc/sysctl.conf which must be made for the networking kernel parameters prior to booting the OpenVZ kernel. I have included commented lines.

Original /etc/sysctl.conf entries:

# Controls IP packet forwarding

net.ipv4.ip_forward = 0

# Controls source route verification

net.ipv4.conf.default.rp_filter = 1

# Controls the System Request debugging functionality of the kernel

kernel.sysrq = 0

 

Amended /etc/sysctl.conf entries:

# Controls IP packet forwarding, forwarding enabled and proxy arp disabled

net.ipv4.ip_forward = 1

net.ipv4.conf.default.proxy_arp = 0

# Controls source route verification

net.ipv4.conf.all.rp_filter = 1

# Controls the System Request debugging functionality of the kernel

kernel.sysrq = 1

# To stop all interfaces to send redirects

net.ipv4.conf.default.send_redirects = 1

net.ipv4.conf.all.send_redirects = 0

Gordon

 


Comments

cheers

Cheers dude

Arron M Finnon
President
Abertay Linux Society