• Announcements

    • MannDude

      Current state of vpsBoard   02/04/2017

      Dear vpsBoard members and guests:

      Over the last year or two vpsBoard activity and traffic has dwindled. I have had a change of career and interests, and as such am no longer an active member of the web hosting industry.

      Due to time constraints and new interests I no longer wish to continue to maintain vpsBoard. The web site will remain only as an archive to preserve and showcase some of the great material, guides, and industry news that has been generated by members, some of which I remain in contact to this very day and now regard as personal friends.

      I want to thank all of our members who helped make vpsBoard the fastest growing industry forum. In it's prime it was an active and ripe source of activity, news, guides and just general off-topic banter and fun.

      I wish all members and guests the very best, whether it be with your business or your personal projects.

      -MannDude
  • 0
ICPH

Auto execute OpenVZ commands on mounted/created/started container?

Question

Hello,

please can i run some vzctl commands on the OpenVZ VM (VPS) once it is created/bootting/got mounted?

I would like to enable --netfilter full (vzctl set $CTID --netfilter full --setmode restart --save) on all OpenVZ VMs by default and also enable tun/tap device by default for all new VMs (VPSs) (vzctl set $CTID --devnodes net/tun:rw --capability net_admin:on --save)

any way to do it automatically after OpenVZ creates VM or VM is booted or is mounted? Thank you

Share this post


Link to post
Share on other sites

3 answers to this question

  • 0

Just vim your /etc/vz/vz.conf and append...

Quote

# Per-container NF
NETFILTER="full"

# Per-container TUN/TAP
DEVNODES="net/tun:rw "
CAPABILITY=" NET_ADMIN:on"

# vzctl create 8675309; cat /etc/vz/conf/8675309.conf to verify.  Done.


 

Share this post


Link to post
Share on other sites
  • 0

Aww party foul -- stale thread & I fell for it.  Oh well, maybe this'll help someone down the line... there's also:

# iptables inside CT
IPTABLES="ip_tables ipt_recent iptable_mangle iptable_filter ipt_limit ipt_multiport ipt_tos ipt_TOS ipt_REJECT ipt_REDIRECT 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 ipt_owner ipt_state"

 

Share this post


Link to post
Share on other sites

  • Similar Content

    • By LiamCyrus
      Arch Industries, LLC. - Insanely awesome Infrastructure as a Service - https://archhosting.net/
      Arch Industries is proud to offer high quality OpenVZ VPS hosting at affordable prices. We aim to provide the same premium quality of service that we have succeeded in providing our shared hosting customers for over two years. Our VPS service was created with three core goals in mind: speed, reliability, and affordability. The end result an extremely powerful platform at a very low cost to the consumer - you.
      Our infrastructure consists of reliable dedicated servers colocated at CentriLogic’s central USA facility, with quality tiering and networking and impeccable uptime. We’re constantly growing and have a plethora of features and developments we’re planning to roll out, all at no extra cost for existing clients. We currently have a very limited stock, so don’t delay!
      We’ll keep the buzzwords short and get straight to the packages -
      x1 VPS
      2 Cores @ 2.26 GHz
      2 GB DDR3 RAM
      25 GB Disk Space
      500 GB Bandwidth
      1 Gbps Port Speed
      OpenVZ Virtualization
      $4.99/mo [Order]
      x2 VPS
      4 Cores @ 2.26 GHz
      4 GB DDR3 RAM
      50 GB Disk Space
      1 TB Bandwidth
      1 Gbps Port Speed
      OpenVZ Virtualization
      $6.99/mo [Order]
      Contact Us
      Have a question? Contact me via PM, create a ticket, text our number, or email us!
      [email protected]
      Arch Industries, LLC.
      +1 (310) 853-3867
      https://archhosting.net/
      Insanely awesome Infrastructure as a Service

       
    • By Aurimas
      Black Friday Sale - Powerful VPS hosting 30% OFF | Cloud Server plans up to 60% OFF!
       
      Host1Plus is an international virtualization solutions provider, offering VPS and Cloud Servers ßeta hosting services. Host1Plus provides affordable and customizable solutions to meet the needs of developers, web designers, SMBs in managing their own assets while utilizing Host1Plus in-house developed and well documented powerful API.  The values Host1Plus owns today – reliability, tolerance, partnership - were rooted by their customers over the years of successful collaboration. Their team strives to ensure immaculate network stability, solid server reliability and excellent customer care.
      Founded in London, UK, in 2008, the company now has a global presence with multiple data centers and local support teams in Africa, Europe, North & South America.
      Host1Plus.com is offering high quality VPS and Cloud Servers ßeta services with a great Black Friday discount!
       
      LIMITED TIME SALE
       
      Powerful VPS hosting 30% OFF
       
      Coupon: BLACK30 - get 30 % OFF for any VPS plan (Except Amber) for 3-6 months billing cycles!
       
       
      Cloud Servers ßeta up to 60% OFF
       
      Coupon: CS50OFF – receive up to 60% discount on any of our Cloud Servers ßeta plans for a selected time period (from 1 to 6 month billing cycles)!
       
       
      If you would like to make a custom order or would like to receive a professional consultation regarding our services, contact our sales team via online sales chat on our website or contact us by email at [email protected]

      We provide 24/7 technical assistance in English and Portuguese via support ticket system at [email protected] We are always ready to help!
      You can see our client reviews here.
       
      Data Center Locations
       
      Host1Plus is an international web hosting company which offers VPS and Cloud Servers ßeta services worldwide.
       
      VPS hosting locations:
       
      United States (Los Angeles, Chicago), Germany (Frankfurt), Brazil (Sao Paulo), South Africa (Johannesburg)
       
      Cloud Server locations worldwide:
       
      United States (Chicago), Germany (Frankfurt), Brazil (soon)
      -----------------------------------------------------------------
      All our hosting packages:
      VPS Hosting
       
      Cloud Servers ßeta
       
      -----------------------------------------------------------------
      Accepted Forms of Payment:
      PayPal, Visa, MasterCard, American Express, Boleto Bancário, Alipay, Bitcoin, Ebanx, Paysera.
       
       
      VPS HOSTING PLANS
       
       All our VPS packages come with:
      ·         24/7 Support via email or tickets
      ·         High-capacity, high-speed, highly redundant network
      ·         Powerful Intel® Xeon® E5 v3 processors
      ·         Easy to use control panel
      ·         Full root access
      ·         Popular Linux distributions such as CentOS, Debian, Fedora, Suse & Ubuntu
      ·         Dedicated IP address
      ·         Easy to upgrade
      ·         DNS & rDNS records management
      ·         Additional IP's - $1/each
      ·         cPanel license - $15/mo
      ·         Labeled WHMCS license - $14.00/mo
      ·         Unlabeled WHMCS license - $16.00/mo
      With our easy to use resource selection tool you can customize your VPS hosting plan for the resources you need (CPU, RAM, Disk space, Bandwidth, Dedicated IP's).
      The following VPS hosting plans are just for a reference with up to 30% discount applied.
      Amber
      0.5 Core
      RAM: 256 MB
      Disk: 20 GB
      Bandwidth: 500 GB
      Free Dedicated IP: 1
       
      1 Month: $2.00/month
      3 Months: $1.90/month
      6 Months: $1.80/month
      12 Months: $1.70/month
      Order Now
       
       
      Bronze
      1 Core
      RAM: 768 MB
      Disk: 60 GB
      Bandwidth: 1000 GB
      Free Dedicated IP: 1
      1 Month: $5.00/month
      3 Months: $9.97, 30% off with code BLACK30 (Normally $14.24)
      6 Months: $18.90, 30% off with code BLACK30 (Normally $27.00)
      12 Months: $51.00
      Order Now
       
       
      Silver
      2 Cores
      RAM: 2048 MB
      Disk: 80 GB
      Bandwidth: 2000 GB
      Free Dedicated IP: 1
      1 Month: $10.00/month
      3 Months: $19.94, 30% off with code BLACK30 (Normally $28.49)
      6 Months: $37.80, 30% off with code BLACK30 (Normally $54.00)
      12 Months: $102.00
      Order Now
       
       
      Gold
      4 Cores
      RAM: 4096 MB
      Disk: 200 GB
      Bandwidth: 3000 GB
      Free Dedicated IP: 1
      1 Month: $20.00/month
      3 Months: $39.91, 30% off with code BLACK30 (Normally $57.10)
      6 Months: $75.60, 30% off with code BLACK30 (Normally $108.00)
      12 Months: $204.00
      Order Now
       
       
      Platinum
      6 Cores
      RAM: 8192 MB
      Disk: 500 GB
      Bandwidth: 7000 GB
      Free Dedicated IP: 1
      1 Month: $45.00/month
      3 Months: $89.78, 30% off with code BLACK30 (Normally $128.26)
      6 Months: $170.1, 30% off with code BLACK30 (Normally $243.00)
      12 Months: $459.00
      Order Now
       
       
      Diamond
      8 Cores
      RAM: 16384 MB
      Disk: 1000 GB
      Bandwidth: 12000 GB
      Free Dedicated IP: 1
      1 Month: $85.00/month
      3 Months: $169.58 30% off with code BLACK30 (Normally $242.26)
      6 Months: $321.30, 30% off with code BLACK30 (Normally $459.00)
      12 Months: $459.00
      Order Now
       
       
       
       
       
      CLOUD SERVERS ßETA PLANS
       
      Included Features in all Cloud ServerS ßeta plans:
       
      ·   Intel® Xeon® E5 v3 processors
      ·   DDR4 error correcting-code RAM
      ·   Up to 32 Ipv4 addresses
      ·   KVM virtualization technology
      ·  1 free backup
      ·   API
      ·   Ipv6 support
      ·  10G network
      ·   Additional IP's - $1/each
      ·   DNS Management
      ·   VNC Console
      ·   Rescue Mode
      ·   Custom ISO
       
       
      The following Cloud Servers ßeta plans are just for a reference with up to 60% discount applied.
       
      Linux plans
       
      LIN1
      1 Core
      RAM: 512 MB
      Disk: 20 GB Disk space
      Bandwidth: 2 TB
      Free Dedicated IP: 1
      1 Month: $4.00, 50% off with code CS50OFF (Normally $8.00)
      3 Months: $11.40, 55% off with code CS50OFF
      6 Months: $21.60, 60% off with code CS50OFF
      12 Months: $81.60
      Order Now
       
       
      LIN2
      2 Core
      RAM: 2048 MB
      Disk: 40 GB
      Bandwidth: 4 TB
      Free Dedicated IP: 1
      1 Month:  $8.00, 50% off with code CS50OFF (Normally $16.00)
      3 Months: $22.81, 55% off with code CS50OFF
      6 Months: $43.20, 60% off with code CS50OFF
      12 Months:: $163.20
      Order Now
       
       
      LIN4
      4 Core
      RAM: 4096 MB
      Disk: 100 GB
      Bandwidth: 7 TB
      Free Dedicated IP: 1
      1 Month:  $15.00, 50% off with code CS50OFF (Normally $30.00)
      3 Months: $42.78, 55% off with code CS50OFF
      6 Months:  $81.00, 60% off with code CS50OFF
      12 Months:: $306.00
      Order Now
       
       
      LIN8
      4 Core
      RAM: 8192 MB
      Disk: 200 GB
      Bandwidth: 14 TB
      Free Dedicated IP: 1
      1 Month:  $25.00, 50% off with code CS50OFF (Normally $50.00)
      3 Months: $71.30, 55% off with code CS50OFF
      6 Months: $135.00, 60% off with code CS50OFF
      12 Months:: $510.00
      Order Now
       
       
      LIN16
      6 Core
      RAM: 16384 MB
      Disk: 500 GB
      Bandwidth: 19 TB
      Free Dedicated IP: 1
      1 Month:  $45.00, 50% off with code CS50OFF (Normally $90.00)
      3 Months: $128.38, 55% off with code CS50OFF
      6 Months: $243.00, 60% off with code CS50OFF
      12 Months:: $918
      Order Now
       
       
      LIN32
      8 Core
      RAM: 32768 MB
      Disk: 1000 GB
      Bandwidth: 24 TB
      Free Dedicated IP: 1
      1 Month: $78.00, 50% off with code CS50OFF (Normally $156.00)
      3 Months: $222.55, 55% off with code CS50OFF
      6 Months: $421.20, 60% off with code CS50OFF
      12 Months:: $1591.20
      Order Now
       
       
      Windows plans
       
      WIN4
      2 Core
      RAM: 4096 MB
      Disk: 100 GB
      Bandwidth: 6 TB
      Free Dedicated IP: 1
      1 Month:  $12.50, 50% off with code CS50OFF (Normally $25.00)
      3 Months:  $35.65, 55% off with code CS50OFF
      6 Months: $67.50, 60% off with code CS50OFF
      12 Months:: $255.00
      Order Now
       
       
       
      WIN8
      4 Core
      RAM: 8192 MB
      Disk: 200 GB
      Bandwidth: 8 TB
      Free Dedicated IP: 1
      1 Month:  $22.00, 50% off with code CS50OFF (Normally $44.00)
      3 Months:  $62.75, 55% off with code CS50OFF
      6 Months: $118.80, 60% off with code CS50OFF
      12 Months:: $448.80
      Order Now
       
       
       
      WIN16
      6 Core
      RAM: 16384 MB
      Disk: 500 GB
      Bandwidth: 15 TB
      Free Dedicated IP: 1
      1 Month: $43.00, 50% off with code CS50OFF (Normally $86.00)
      3 Months: $122.68, 55% off with code CS50OFF
      6 Months: $232.20, 60% off with code CS50OFF
      12 Months:: $877.20
      Order Now
       
       
       
      WIN32
      8 Core
      RAM: 32768 MB
      Disk: 1000 GB
      Bandwidth: 20 TB
      Free Dedicated IP: 1
      1 Month:  $76.00, 50% off with code CS50OFF (Normally $152.00)
      3 Months: $216.85, 55% off with code CS50OFF
      6 Months: $410.40, 60% off with code CS50OFF
      12 Months:: $1550.40
      Order Now
       
       
       
      Make your ideas and projects come to life with tools and features offered by Cloud Server. Don’t sleep as the offers is for a limited time only!
      We are trusted by more than 50,000 clients worldwide to deliver them high quality and performance hosting services with superb customer support!
       
       
       
      Have any questions? Email us at [email protected] or write to us at our live sales chat.
       
      You can also join Host1Plus social networks for the latest news.          
      Facebook - www.facebook.com/Host1Plus
      Twitter - www.twitter.com/Host1Plus
      Google+ - https://plus.google.com/+Host1Plus
       
      LinkedIn - https://www.linkedin.com/company/digital-energy-technologies-ltd.
      YouTube - https://www.youtube.com/user/Host1Plus
      Instagram -  https://www.instagram.com/host1plus/
    • By AtlanticServers
      Linux VPS 1
      1 vCore
      1 GB DDR3 RAM
      20 GB SAN Disk Space
      Unlimited Bandwidth
      1 Gbps Port Speed
      OpenVZ Virtualization
      $4.68/m Promo code: VPSBOARD [Order now] no hidden fee
       
      Linux VPS 2
      2 vCore
      2 GB DDR3 RAM
      30 GB SAN Disk Space
      Unlimited Bandwidth
      1 Gbps Port Speed
      OpenVZ Virtualization
      $8.03/m Promo code: VPSBOARD [Order now] no hidden fee
       
      Linux KVM VPS 1
      1 vCore
      1 GB DDR3 RAM
      20 GB SAN Disk Space
      Unlimited Bandwidth
      1 Gbps Port Speed
      KVM Virtualization
      $5.35/m Promo code: VPSBOARD [Order now] no hidden fee
       
       
      Linux KVM VPS 2
      2 vCore
      2 GB DDR3 RAM
      30 GB SAN Disk Space
      Unlimited Bandwidth
      1 Gbps Port Speed
      KVM Virtualization
      $9.37/m Promo code: VPSBOARD [Order now] no hidden fee
       
       
      Windows VPS 2
      2 vCore
      2 GB DDR3 RAM
      80 GB SAN Disk Space
      Unlimited Bandwidth
      1 Gbps Port Speed
      XEN Virtualization
      $12.05/m Promo code: VPSBOARD [Order now] no hidden fee
       
      Additional IPv4 up to 16 per VPS
       
       
    • By LiamCyrus
      Arch Industries, LLC. - Insanely awesome Infrastructure as a Service - https://archhosting.net/
      Arch Industries is proud to offer high quality OpenVZ VPS hosting at affordable prices. We aim to provide the same premium quality of service that we have succeeded in providing our shared hosting customers for over two years. Our VPS service was created with three core goals in mind: speed, reliability, and affordability. The end result an extremely powerful platform at a very low cost to the consumer - you.
      Our infrastructure consists of reliable dedicated servers colocated at CentriLogic’s central USA facility, with quality tiering and networking and impeccable uptime. We’re constantly growing and have a plethora of features and developments we’re planning to roll out, all at no extra cost for existing clients. We currently have a very limited stock, so don’t delay!
      We’ll keep the buzzwords short and get straight to the packages -
      x1 VPS
      2 Cores @ 2.26 GHz
      2 GB DDR3 RAM
      25 GB Disk Space
      500 GB Bandwidth
      1 Gbps Port Speed
      OpenVZ Virtualization
      $4.99/mo [Order]
      x2 VPS
      4 Cores @ 2.26 GHz
      4 GB DDR3 RAM
      50 GB Disk Space
      1 TB Bandwidth
      1 Gbps Port Speed
      OpenVZ Virtualization
      $6.99/mo [Order]
      Contact Us
      Have a question? Contact me via PM, create a ticket, text our number, or email us!
      [email protected]
      Arch Industries, LLC.
      +1 (310) 853-3867
      https://archhosting.net/
      Insanely awesome Infrastructure as a Service
         
    • By EzzyTech Networks
      Which one is better in technical issue?