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
Remove DNSCACHE from zimbra services. September 3, 2022 If you will get a prompt stating something like “Port conflict detected: 53 (zimbra-dnscache)” with a prompt to hit ENTER to continue, you can just hit enter and let the installation/upgrade run out. Once everything is running, you will see that the Zimbra DnsCahe service is in a stopped state…. Read More
How to Change Hostname on Ubuntu 18.04 August 6, 2019 Display the Current Hostname To view the current hostname, enter the following command: hostnamectl As you can see in the image above, the current hostname is set to ubuntu1804.localdomain. Change the Hostname The following steps outline how to change the hostname in Ubuntu 18.04. 1. Change the hostname using hostnamectl… Read More
How to find out the connected interface using linux command October 26, 2020 Method 1 To find out the connected state of a network cable in Linux, just run: $ cat /sys/class/net/enp5s0/carrier Sample output: 1 If you got output as “1” (Number one), It means that the network cable is connected with the network card. Also, you can do this with the following command too:… Read More