How to enable Port Forwarding in Iptables Rumi, April 17, 2015 Port forwarding allows remote computers, for example, computers on the Internet, to connect to a specific computer or service within a private local area network (LAN). Typical applications include the following: Running a public HTTP server within a private LAN Permitting Secure Shell access to a host on the private LAN from the Internet Permitting FTP access to a host on a private LAN from the Internet In Linux, you can configure port forwarding using iptables command. The below example is to enable the port forwarding of port 80 of the external ip address “83.229.64.2” to the port 80 of the computer inside the LAN with the ip address of “192.168.1.2”. iptables -t nat -A PREROUTING -i eth0 -d 83.229.64.1 -p tcp --dport 80 -j DNAT --to-destination 192.168.1.2:80 iptables -A FORWARD -p tcp --dport 80 -j ACCEPT Related Administrations Configurations (Linux) Networking iptablesNAT
Install transmission on Centos 7 August 22, 2023 Step 1. First, you need to enable the EPEL repository on your system. yum install epel-release yum -y update Step 2. Installing Transmission on CentOS 7. Just run the following command to install Transmission: yum install transmission-cli transmission-common transmission-daemon Once complete, you can verify Transmission is installed by running the… Read More
Install Varnish on CentOS/RedHat/SL 5 or 6 December 5, 2012December 5, 2012 Varnish Cache is a web application accelerator also known as a caching HTTP reverse proxy. It is installed in front of the web application and it speeds up the web application significantly. Since varnish is not available in CentOS repo, you have to add the EPEL repo. However Varnish suggests… Read More
How to clear the yum cache October 20, 2013 When a package is downloaded, installed and is removed there is a chance that the package may still be saved/stored in the yum’s cache. So to clean all the cached packages from the enabled repository cache directory, login as root and execute the following: yum clean packages To purge the… Read More