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
SSH to use two-factor authentication using Google Authenticator on Debian or Ubuntu Server November 19, 2023 A computer running Ubuntu 16.04 LTS or above A phone running Android or iOS A configured SSH connection You should understand the danger of stolen passwords. You don’t need to know what two-factor authentication is and how it works. 🙂 Installing and configuring required packages Start a terminal session and… Read More
Ubuntu Firewall – UFW useful commands May 17, 2020 Prerequisites To follow this tutorial, you will need one Debian 10 server with a sudo non-root user, which you can set up by following Steps 1-3 in the Initial Server Setup with Debian 10 tutorial. Step 1 – Installing UFW Debian does not install UFW by default. If you followed… Read More
PowerDNS: Rec Control September 11, 2011 make rec_control be more user friendly make wipe-cache accept non-dot terminated domain names make wipe-cache return count of wiped ('wopen'?) domains document best current practice when wiping (wipe more than www.domain, wipe domain as well) REC_CONTROL(1) ============== NAME —- rec_control – control pdns_recursor SYNOPSIS ——– 'rec_control' [–help] [–socket-dir] [–socket-pid] command… Read More