Tag

cloud

Browsing

IPTables is an application program that allows to set up, maintain, and inspect the tables of IP packet filter rules provided by the Linux kernel.

All IPTables rules are stored on /etc/iptables.rules
You can open/close any port from it and then restart the network by running “etc/init.d/networking restart”

Before opening or closing ports, we recommend to first verify if the port is open or closed and who is using the port. There a number of different commands:

Commands to verify ports:

nmap IP#
nmap localhost
netstat –ntulp

to verify the single port

netstat -nap | grep  <port #>

to list all current rules in iptables

iptables -L

For opening a TCP port:

iptables -A INPUT  -p tcp –dport <port #> -j ACCEPT

For opening a UDP port:

iptables -A INPUT -p udp –sport <port #>  -j ACCEPT

Save changes:

iptables-save > /etc/iptables.rules

If you need to disable the firewall temporarily, you can flush all the rules using:

iptables -F

————————————————————————————————————

ServerPronto offers the best affordable and secure hosting service in all dedicated server packages.

 

For more detailed information visit

Iptables Description by Ubuntu Manuals

Iptables How-To for Ubuntu by Ubuntu Manuals

Iptables How-To for Debian by wiki.debian.org

We recommend installing a software on your server to keep track of how much bandwidth you are using. There are many open source solutions available one of them is vnStat.

vnStat:

vnStat is a console-based network traffic monitor for Linux and BSD that keeps a log of network traffic for the selected interface. It uses the network interface statistics provided by the kernel as the information source. This means that vnStat won’t actually be sniffing any traffic and also ensures light use of system resources.

Install:

Ubuntu/ Debian:

cd /usr/local/src
wget http://humdi.net/vnstat/vnstat-1.10.tar.gz tar -zxvf vnstat-1.10.tar.gz cd vnstat-1.10 make && make install vnstat -u -i eth0 chmod 700 /usr/bin/vnstat chmod 700 /var/lib/vnstat/ -R

http://www.dotcomunderground.com/blogs/2010/03/05/install-vnstat-network-traffic-monitor-linux/

CentOS:

http://forums.serverbeach.com/showthread.php?7193-CentOS-Bandwidth-tool-vnstat-installation-walk-through

For more information on vnStat visit: http://humdi.net/vnstat/

 

ServerPronto offers the best affordable and secure hosting service in all dedicated server packages.

Do you have a website and want it to be hosted for free? Sign up and come to the cloud.

Your CPanel based hosting account will be hosted on our proven CloudPronto technology which includes an Energy Efficient Infrastructure, 99.9% Uptime Guarantee, Easy upgrading/downgrading of plans, Fault-Tolerant Cloud Infrastructure and Load-Balanced Cloud Architecture – And it’s FREE!

  • 1 FTP Account
  • 5 Email Accounts
  • 1 MySQL Database

http://www.cloudpronto.com/

ServerPronto offers the best affordable and secure hosting service in all dedicated server packages.