Originally Posted by norbert74
Hi, you could try this
# allow outgoing traffic
iptables -A OUTPUT -o eth0 -m state --state NEW,RELATED,ESTABLISHED -j ACCEPT
# allow responses
iptables -A INPUT -i eth0 -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables -A INPUT -i eth0 -m state --state NEW --protocol tcp --dport 8000 -j ACCEPT
If it still does not work add these lines at the bottom of your config:
iptables -A INPUT -j LOG --log-prefix="IPTABLES-INPUT: "
iptables -A OUTPUT -j LOG --log-prefix="IPTABLES-OUTPUT: "
iptables -A FORWARD -j LOG --log-prefix="IPTABLES-FORWARD: "
Then you will see in your logs what exactly is blocking your access and you can modify your rules accordingly.
i tried this but no luck, i also tried doing this as suggest by someone else
Remove all current rules
1. iptables -F
2. iptables -X
Allow all incoming traffic
1. iptables -P INPUT ACCEPT
if it works, you should reload the original firewall rules and add the following ones
iptables -A INPUT -p tcp --dport 20 -j ACCEPT
iptables -A INPUT -p tcp --dport 21 -j ACCEPT
it worked great, but when i re-applied rules and added 20 and 21 as suggested it still didnt work.