How To Setup Iptables Rules In Linux
Rootserver yum install iptables. You can learn more about SSH by reading our documentation. The Beginner S Guide To Iptables The Linux Firewall Sudo apt-get update sudo apt-get install iptables. How to setup iptables rules in linux . The IPtables Configuration File should be within etcfirewall and you need to enable configure Iptables on Ubuntu. Run the sudo iptables -L -v command to determine your current IPtables configuration. -C to check for a rule matching a chain. Where -t nat. Sudo apt-get update apt-get install iptables is the last execution in one. Iptables -A PREROUTING -t nat -i eth0 -p tcp --dport 80 -j DNAT --to 192168128080 iptables -A FORWARD -p tcp -d 19216812 --dport 8080 -j ACCEPT These two rules are straight forward. Next run the command below to update your servers package source cache. Iptables -A INPUT -p tcp -m tcp sport 80 -j ACCEPT iptables -A OUTPUT -p tcp -m tcp dport 80 -j ACCEPT If youd also like to allow access to secure websites thos