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 phony in makefile?
What is the bash in linux?
How do I check if my cpu is overclocked?
What is the use of finger command in linux?
How do I find previous commands in linux?
What is finger command in linux?
What commands are used to see all jobs running in the hadoop cluster and kill a job in linux?
What is command example?
How do I start ms dos?
Which command would you use to create a file system on a new hard drive?
How many commands are there in linux?
What is s in permission linux?
What does pwd mean in linux?
How do I run multiple commands in linux?
How do I clear my run history?