How to unblock outgoing HTTP and HTTPS traffic in iptables?

Posted by EApubs on Server Fault See other posts from Server Fault or by EApubs
Published on 2012-11-09T04:08:32Z Indexed on 2012/11/09 5:05 UTC
Read the original article Hit count: 408

Filed under:
|

With the following iptable rules, I was unable to do an apt update and ping a website. Whats wrong with the rules? How to fix it? What is the exact rule to fix it?

Chain INPUT (policy ACCEPT)
target     prot opt source               destination         
ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:325 
DROP       all  --  anywhere             anywhere            

Chain FORWARD (policy DROP)
target     prot opt source               destination         

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination 

© Server Fault or respective owner

Related posts about iptables

Related posts about firewall