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


Please Help Members By Posting Answers For Below Questions

What is phony in makefile?

538


What is the bash in linux?

534


How do I check if my cpu is overclocked?

541


What is the use of finger command in linux?

515


How do I find previous commands in linux?

533






What is finger command in linux?

544


What commands are used to see all jobs running in the hadoop cluster and kill a job in linux?

548


What is command example?

557


How do I start ms dos?

525


Which command would you use to create a file system on a new hard drive?

572


How many commands are there in linux?

554


What is s in permission linux?

506


What does pwd mean in linux?

539


How do I run multiple commands in linux?

531


How do I clear my run history?

555