Apr 17, 2017
I read your article thought might ask you, i am have dom0 on with one eth0 on public ip, the xen vm is on private ip nat, all works okay. but when i try to to put prerouting rule for port 3389 to forward to vm from external it doesnt work. iptables - Wikipedia iptables is a user-space utility program that allows a system administrator to configure the IP packet filter rules of the Linux kernel firewall, implemented as different Netfilter modules. The filters are organized in different tables, which contain chains of rules for how to treat network traffic packets. Different kernel modules and programs are currently used for different protocols How To Set Up a Firewall Using Iptables on Ubuntu 14.04 May 06, 2014 25 Useful IPtable Firewall Rules Every Linux Administrator
iptables -A FORWARD -i eth0 -p tcp --dport 80 -d 172.31.0.23 -j ACCEPT This rule allows forwarding of incoming HTTP requests from the firewall to its intended destination of the Apache HTTP Server server behind the firewall.
Iptables Tutorial: Ultimate Guide to Linux Firewall Jan 28, 2020
How-To: Redirecting network traffic to a new IP using IPtables
# iptables -P INPUT DROP # iptables -P FORWARD DROP # iptables -P OUTPUT ACCEPT # iptables -L -v # iptables-save > /etc/sysconfig/iptables # Generated by iptables-save v1.4.7 on Tue Mar 13 11:36:16 2012 How-To Guide – Introduction to IPTables – Linux Academy