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 / sri krishna

iptables -t filter -I INPUT -s 192.168.0.2 -P tcp --dport 80
-J ACCEPT

Is This Answer Correct ?    2 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do I clear terminal command history?

568


What is the difference between rmdir and rm r?

620


Can I delete .bash history?

515


What is command line in unix?

509


How do you execute more than one command or program from a single command line entry?

558






What is lsof command in linux?

585


How do you check which file consuming more space in linux?

473


Which command is used to clear the screen?

544


What would be the result of the command paste -s dog cat?

535


What are the mv command options?

467


Which command will show you free/used memory? Does free memory exist on linux?

559


Which command is used to delete a group?

555


What is SFC command?

485


What is $@ in bash?

544


How do I find command history in linux?

489