I never had issues with Debian 7 using iptables. However, with Debian 8, I cannot get iptables to work at all.
Simple script like this takes several minutes to load and can't access my portal page.
#!/bin/bash # Delete existing rules iptables -F # Set default chain policies iptables -P INPUT DROP iptables -P FORWARD DROP iptables -P OUTPUT DROP # Loopback iptables -A INPUT -i lo -j ACCEPT iptables -A OUTPUT -o lo -j ACCEPT # Outbound DNS iptables -A OUTPUT -p udp --dport 53 -j ACCEPT iptables -A INPUT -p udp --sport 53 -j ACCEPT # Portal iptables -A INPUT -p tcp --dport 8443 -j ACCEPT iptables -A OUTPUT -p tcp --sport 8443 -j ACCEPT # Logging iptables -N LOGGING iptables -A INPUT -j LOGGING iptables -A LOGGING -m limit --limit 12/min -j LOG --log-prefix "eh: " --log-level 7 iptables -A LOGGING - DROP
I get a bunch of iptable logs that can't access port 8443. I have 3 NIC's on the server, all virtual from ESXi 6.0. Without iptables, I can access the web, visit portal page, etc. No issues.
I tried specifying the eth0 in the iptables and that didn't help either.