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 / ganesh
iptables -A INPUT -s 172.168.0.1 -p tcp --dport 80 -j ACCEPT
AND
iptables -A INPUT -s 192.168.0.2 -p tcp --dport 80 -j REJECT
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is cat command in linux?
What does umask 077 mean?
How can you check the amount of lines in a file?
What is command to check ports running/used over local machine
How compile c++ program in cmd?
How does case sensitivity affect the way you use commands?
What does pwd mean in linux?
Who command in linux?
What is the difference between cd and cd in linux?
What is clang linux?
What is clang format?
What is a simple command?
What does the ps command do in linux?
What is filter command in unix?
Does linux cp command overwrite?