ports – Internetblog.org.uk https://www.internetblog.org.uk Web hosting, Domain names, Dedicated servers Fri, 29 Jan 2016 11:05:52 +0000 en-US hourly 1 https://wordpress.org/?v=4.9.5 https://www.internetblog.org.uk/files/2016/01/cropped-favico-32x32.png ports – Internetblog.org.uk https://www.internetblog.org.uk 32 32 Server Networking Tips https://www.internetblog.org.uk/post/1570/server-networking-tips/ Mon, 26 Jul 2010 16:47:58 +0000 http://www.internetblog.org.uk/post/1570/server-networking-tips/ Cisco network switch
Over the past year, we have covered many networking tips for servers. Here is a brief summary of the most important networking tips you should keep in mind for your dedicated server.

1. Use both a router firewall and a software firewall
2. Your name servers should be hosted on at least two different servers
3. If you use content delivery services, make sure they have servers close to your primary users
4. Block all ports except the most essential (i.e. web server, ssh, ftp)
5. Use traceroute and dns lookups to test network connectivity issues
6. Be sure to follow Internet standards with your DNS records
7. Use SSH, SCP, SFTP, and other secure protocols whenever you need to connect to your server

Photo Source: Flickr

]]>
How to install Apache on a FreeBSD server https://www.internetblog.org.uk/post/902/how-to-install-apache-on-a-freebsd-server/ Tue, 19 Jan 2010 19:06:14 +0000 http://www.internetblog.org.uk/post/901/how-to-install-apache-on-a-freebsd-server/ FreeBSD poster
Continuing with our series this week on non-Linux operating system servers, today we will learn about FreeBSD. Its proponents (of BSD distributions in general) call it the most secure and reliable operating system for Internet-connected servers. It comes with several different versions of Apache. Here is a quick guide to getting the one you want installed.

1. Make sure your ports collection is up to date:

# portsnap fetch update

2. Using ports, install Apache (2.2 in this example):

# cd /usr/ports/www/apache22/
# make install clean

It will take a minute to go through the installation, but it will ask you configuration options. You will also need to configure the Apache httpd.conf file as you would on a Linux server. If you would like a more in-depth guide to the specifics of that configuration, see the nixCraft article on the subject.

Source: nixCraft
Photo: Flickr

]]>
Gain access to cPanel from anywhere with JAP https://www.internetblog.org.uk/post/747/gain-access-to-cpanel-from-anywhere-with-jap/ Thu, 03 Dec 2009 23:11:58 +0000 http://www.internetblog.org.uk/post/747/gain-access-to-cpanel-from-anywhere-with-jap/ cpanel screenshot
Many people who manage websites also have other jobs, and even those who do not frequently find themselves traveling and away from the comfort of their own home Internet connection. In such situations, users sometimes find themselves behind firewalls that prevent them from accessing certain services, including web hosting control panels like cPanel.

The reason for the restriction is usually not to prevent people from specifically accessing cPanel but rather just a general blocking of any “unnecessary” ports by the network’s firewall. JAP4CPANEL (or simply JAP) allows you to access cPanel, WebHostManager, and webmail all through port 80, acting as a proxy between your network and your server.

With JAP, you will be able to access cPanel no matter where you are. It is available for PHP4 and PHP5 and also requires cURL, which is installed on most active web servers. JAP is free and open source software, released under the LGPL.

Source: webhostingtalk.com
Photo: Flickr

]]>
How to open and close ports with iptables https://www.internetblog.org.uk/post/708/how-to-open-and-close-ports-with-iptables/ Tue, 24 Nov 2009 16:10:22 +0000 http://www.internetblog.org.uk/post/708/how-to-open-and-close-ports-with-iptables/ Fixing a cable
Question: How do I open and close ports with an iptables firewall setup?

Answer: You can easily open ports on a dedicated server with these simply commands. Depending on whether you need to open a UDP or TCP port, use one or both of the following:

iptables -A INUPT -p tcp –dport -j ACCEPT
iptables -A INUPT -p udp –dport -j ACCEPT

And to close a port, enter:

iptables -A INUPT -p tcp –dport -j DROP
iptables -A INUPT -p udp –dport -j DROP

Then, save and restart iptables:

service iptables save
service iptables restart

You can keep track of which ports have been opened and closed by viewing the /var/log/messages file.

Photo: Flickr

]]>
Which Programs Are Using Ports? https://www.internetblog.org.uk/post/581/which-programs-are-using-ports/ Thu, 15 Oct 2009 21:53:27 +0000 http://www.internetblog.org.uk/post/581/which-programs-are-using-ports/ Linux terminals
Question: How do I find out what Linux programs are using my ports?

Answer: Running a Linux dedicated server can be a big responsibility, so it is good to know shortcuts for some of the more sticky situations that arise. If you ever have a situation where you cannot start a critical service like Apache or MySQL because the port that it uses is being used by another application, there is a way to find out exactly what is going on.

To find out which processes are using which ports, login to your server through SSH and type:

netstat --nlp

This will bring up a list looking something like this:

tcp 0 0 0.0.0.0:631 0.0.0.0:* LISTEN 3941/cupsd
tcp6 0 0 :::22 :::* LISTEN 3158/sshd

The numbers after the colons tell you the port addresses being used. For example, CUPS printing service is using port 631, and SSHD is using port 22. Once you find out the rogue process, you can kill it and resume normal operation.

Photo Source: Flickr

]]>
Common Server Port Numbers https://www.internetblog.org.uk/post/559/559/ Thu, 08 Oct 2009 19:53:58 +0000 http://www.internetblog.org.uk/post/559/559/ network, firewall
Question: What are some common port numbers used in web hosting?

Answer: Most firewalls come configured with the essential port numbers open and the rest of them closed. Nevertheless, it is still important to know which ports do what, whether you are running a dedicated server or just one shared hosting website.

80 – Arguably the most essential port, it is the standard HTTP port on nearly all web servers, unless changed. It is the default port for Apache.

443 – This is the standard port for HTTPS. SSL encrypted sites will use this.

25 – SMTP uses this port for mail transport. Most mail servers, including Sendmail and Postfix use this by default. Some ISPs block port 25, so if you are unable to use your hosting account to send mail, this may be the cause.

110 – The standard port for POP3 incoming mail servers.

143 – The standard port for IMAP incoming mail servers.

3306 – The default port for MySQL databases. Unless you access databases using remote software, you can keep this port closed on your firewall.

21 – The standard port for FTP.

22 – The standard port for SSH

There are numerous other ports that might be of interest to you, depending on your setup. Read your web host’s knowledge base and your firewall’s documentation for more information.

Photo Source: Flickr

]]>