#1 (permalink)  
Old 05-10-2009, 10:25 AM
hostmedic's Avatar
Registered User
 
Join Date: Apr 2003
Location: Washington Court House, Ohio
Posts: 518
hostmedic is on a distinguished road
Post ProxMox (openvz) IPTABLES how to:

since your hunting here - chances are you will want an easy to use editor - so use NANO.

nano /etc/vz/vz.conf

Then do Control W and SEARCH for IPTABLES

Comment out (by adding a # symbol to the line ) the current IPTABLES= line

and then copy/paste and add this line directly underneath the line you just commented out.

IPTABLES="ipt_REJECT ipt_recent ipt_owner ipt_REDIRECT ipt_tos ipt_TOS ipt_LOG ip_conntrack
ipt_limit ipt_multiport iptable_filter iptable_mangle ipt_TCPMSS ipt_tcpmss ipt_ttl ipt_length ipt_state iptable_nat ip_nat_ftp"


It is important to make sure this is all in 1 line and that it does not wrap.

Now Control-S and save - overwriting the current file.

Finally do an /etc/init.d/vz restart
to restart openVZ.

Congratulations - your ProxMox VPE (openVz) server is now setup to allow IPTABLES

From here you can install CSF - install BFD/APF or your chosen IPTABLES based firewall.

Last edited by hostmedic; 06-07-2009 at 02:49 AM. Reason: changing IPTABLES= line for new additions for latest csf version.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Tags
csf , iptables , openvz , proxmox

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 03:03 AM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
© cPanel Inc