Skip to main content

Home/ zxtlfdutjwebokmprooy/ Enable Iptables/Firewall Modules for a VPS
Arnulfo Jordan

Enable Iptables/Firewall Modules for a VPS - 0 views

Xrumer VPS SEnuke Scrapebox enable firewall modules kernal iptable_filter iptable_mangle

started by Arnulfo Jordan on 24 Mar 12
  • Arnulfo Jordan
     
    ipt_TOS

    iptable_nat

    ipt_length

    ipt_tcpmss

    iptable_mangle

    ipt_limit

    ipt_tos

    iptable_filter

    ipt_helper

    ipt_tos

    ipt_ttl

    ipt_REJECT

    ENABLE MODULES ON HOST SERVER

    To enable these modules for a VPS you will first have to enable these modules on the host server using command modprobe. So, just copy and paste the following commands on the Shell of HOST SERVER

    modprobe ipt_MASQUERADE modprobe ipt_helper modprobe ipt_SAME modprobe ipt_REDIRECT modprobe ipt_state modprobe ipt_TCPMSS modprobe ipt_LOG modprobe ipt_TOS modprobe iptable_nat modprobe ipt_length modprobe ipt_tcpmss modprobe iptable_mangle modprobe ipt_limit modprobe ipt_tos modprobe iptable_filter modprobe ipt_helper modprobe ipt_tos modprobe ipt_ttl modprobe ipt_REJECT

    ??

    Now make sure that all these modules are enabled on the server using command "lsmod".

    ENABLE MODULES FOR VPS

    Now the above mentioned modules can be enabled for a VPS using two ways i.e. by using command OR by adding rules manually.

    1) By Command:

    Execute following command from the host server to enable all the modules for the VPS

    vzctl set VEID --iptables ipt_REJECT --iptables ipt_tos --iptables ipt_TOS --iptables ipt_LOG --iptables ip_conntrack --iptables ipt_limit --iptables ipt_multiport --iptables iptable_filter --iptables iptable_mangle --iptables ipt_TCPMSS --iptables ipt_tcpmss --iptables ipt_ttl --iptables ipt_length --iptables ipt_state --iptables iptable_nat --iptables ip_nat_ftp --save

    2) Adding Rules manually:

    Open the VPS configuration file which exists at /etc/vz/conf/veid.conf and paste following in the last line of the file.

    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"

    After adding rules reboot the VPS to apply/enable the modules.

    Web hosting comes in several different forms and packages. From the large-scale option of grid hosting, where a number of servers are clustered together with multiple nodes, it goes all the way down to home servers, where a consumer-owned machine hosts a site through an end-user Internet connection.

    However, the two most popular options for the consumer are Shared hosting - where hundreds or thousands of sites are hosted on the same server - and VPS hosting. VPS stands for "Virtual Private Server", which already shows you one major advantage the VPS has over shared hosting. Yes, I mean privacy.

    Several experts have compared shared hosting to living in an apartment block. You share a common staircase, elevator, passage, perhaps even a laundry room and chillout zone. This means that any safety threat to one person may end up affecting all the others - a computer virus, like a fire, does not discriminate between the intended target and the passers-by.

    VPS, on the other hand, is like a townhouse. More privacy, slightly higher cost, but more control or more responsibility - for example, over operating systems and installed programs. VPS hosting allows you control over configuration and firewalls, but within strict limits set by the owner of the server you are on. This means that the others sharing a server with you cannot harm you too easily.

    This is not to say that shared hosting is unviable and inherently sets you up for disaster. Quite otherwise - some people handle control well, while others do better with people to take over the headache for them. For technologically inept users who require only basic levels of bandwidth and disk space, shared hosting from a reliable service is a much more viable option than the hassles of a VPS host.

    SEnuke VPS

To Top

Start a New Topic » « Back to the zxtlfdutjwebokmprooy group