Home > other >  Under the ubuntu iptables configuration
Under the ubuntu iptables configuration

Time:09-23

In the condition of open the firewall, how to use the iptables command browser access to the Internet;
I already open port 80:
Iptables -i INPUT -p TCP -- dport 80 -j ACCEPT
Iptables -i INPUT -p TCP -- sport 80 -j ACCEPT
Still, the browser can't surf the Internet ah,,,

CodePudding user response:

Your network connections with the what kind of? You open here is your local port, and you get to the Internet it doesn't matter

CodePudding user response:

This machine is the OUTPUT chain to Internet with

The iptables -i OUTPUT -p TCP -- dport 80 -j ACCEPT

CodePudding user response:

Now generally report is HTTPS, the 443 is also open to the OUTPUT
  • Related