I used an online tool to create an iptables firewall. Basically I just need port 22 and 1194 open to the outside world. But I noticed this bash script has input, forward and output chains as accept by default. Is it blocking all traffic but those two ports? Thanks.
I'm really new to networking and linux system. So please help me in this:
- I have my phone acted as the wireless access point, and other devices like all my LAPTOPs connected to it to create a LAN network. How can I use iptables to block (for example ping request, reply) from host to host.
P/s: I also try to block forward chain using
iptables -A FORWARD -j DROP
But it doesn't work.