D
doknet
Guest
I want to installs openvpn en openvz vm.
firt)
Change en promox server
IPTABLES="iptable_filter iptable_mangle ipt_limit ipt_multiport ipt_tos ipt_TOS ipt_REJECT ipt_TCPMSS ipt_tcpmss ipt_ttl ipt_LOG ipt_length ip_conntrack ip_conntrack_ftp ip_conntrack_irc ipt_conntrack ipt_state ipt_helper iptable_nat ip_nat_ftp ip_nat_irc ipt_REDIRECT xt_mac ipt_owner"
vzctl set 101 --iptables iptable_filter --iptables ipt_length --
iptables ipt_limit --iptables iptable_mangle --iptables ipt_REJECT --
save
/etc/init.d/vz restart
2. Allow the container to open the TUN/TAP interface. These steps specifically affect container ID 101.
vzctl set 101 --devices c:10:200:rw --save
vzctl set 101 --capability net_adminn --save
3. These kernel modules and commands should be ran/installed on the host node before the container is started:
modprobe ipt_mark
modprobe ipt_MARK
modprobe tun
4. Now start the container:
vzctl start 101
5. After starting the container run these commands on the host node:
vzctl exec 101 mkdir -p /dev/net
vzctl exec 101 mknod /dev/net/tun c 10 200
vzctl exec 101 chmod 600 /dev/net/tun
But in openvz vm (101)
modprobe -l
FATAL: Could not load /lib/modules/2.6.32-4-pve/modules.dep: No such file or directory
ls -l /lib/modules/
empty .
Any idea what it mising
firt)
Change en promox server
IPTABLES="iptable_filter iptable_mangle ipt_limit ipt_multiport ipt_tos ipt_TOS ipt_REJECT ipt_TCPMSS ipt_tcpmss ipt_ttl ipt_LOG ipt_length ip_conntrack ip_conntrack_ftp ip_conntrack_irc ipt_conntrack ipt_state ipt_helper iptable_nat ip_nat_ftp ip_nat_irc ipt_REDIRECT xt_mac ipt_owner"
vzctl set 101 --iptables iptable_filter --iptables ipt_length --
iptables ipt_limit --iptables iptable_mangle --iptables ipt_REJECT --
save
/etc/init.d/vz restart
2. Allow the container to open the TUN/TAP interface. These steps specifically affect container ID 101.
vzctl set 101 --devices c:10:200:rw --save
vzctl set 101 --capability net_adminn --save
3. These kernel modules and commands should be ran/installed on the host node before the container is started:
modprobe ipt_mark
modprobe ipt_MARK
modprobe tun
4. Now start the container:
vzctl start 101
5. After starting the container run these commands on the host node:
vzctl exec 101 mkdir -p /dev/net
vzctl exec 101 mknod /dev/net/tun c 10 200
vzctl exec 101 chmod 600 /dev/net/tun
But in openvz vm (101)
modprobe -l
FATAL: Could not load /lib/modules/2.6.32-4-pve/modules.dep: No such file or directory
ls -l /lib/modules/
empty .
Any idea what it mising