I want to built a fire wall using iptables. My condition is
" inbound to 192.168.0.2 with a port of 80 from
172.168.0.1 should accept"
Answer Posted / shailesh shinde
iptables -I INPUT -s 172.168.0.1 -p tcp --dport 80 -d
192.168.0.2 -j ACCEPT
iptables -A OUTPUT -m state --state Established,new,Related
-j accept
Both required
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How to root mirror in linux?
What is df -h command?
What is grep command in linux with examples?
What is the use of ls command?
How does mkdir work in linux?
How do you open a command prompt when issuing a command?
What does umask 022 mean?
Explain the ‘ls’ command in linux
How to write the output of a command to a file?
How to hide the partition in grub booting?
How can I check the exit status of my previous command in Linux operating system?
What is command grouping?
What is p in mkdir?
What are the commands in linux?
Why echo is used in linux?